Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Remove copy test from SeedAddress spec
Sebastian Martinez committed 4 years ago
commit 57a3a1c7b764900e7ed456e01395e00dd7839758
parent 88364df10cca63e5abda2686456e260cd1a737aa
2 files changed +1 -11
modified src/SeedAddress.spec.ts
@@ -14,15 +14,5 @@ describe('SeedAddress', function () {
      }
    }, styles);
    cy.findByText("seed.cloudhead.io").should("exist").should("have.attr", "href", "/seeds/seed.cloudhead.io");
-
    cy.findByText("Copy").should("exist");
-
  });
-

-
  it("Copies seed address correctly", () => {
-
    cy.findByText("Copy").click().should("exist");
-
    cy.findByText("Copy ✓").should("have.attr", "disabled");
-
    // We invoke the cy.window here since doing the clipboard action in the runner window, would throw an error
-
    cy.window().its("navigator.clipboard").invoke("readText").should("equal", "seed.cloudhead.io");
-
    cy.wait(4000);
-
    cy.findByText("Copy").click().should("exist").should("not.have.attr", "disabled");
  });
});
modified src/SeedAddress.svelte
@@ -36,6 +36,6 @@
      <span><a href="/seeds/{seed.host}" class="link">{seed.host}</a></span>
    {/if}
  </div>
-
  <Clipboard text={full ? formatSeedAddress(seed.id, seed.host, port) : seed.host } />
+
  <Clipboard text={full ? formatSeedAddress(seed.id, seed.host, port) : seed.host} />
</div>
<div class="desktop"/>