mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-04 03:00:32 +08:00
Remove connect integration test
Since this is a really flaky test, it depends on a lot of hardcoded values in the MockExtensionProvider and doesn't provide much value. I decided to remove it for now. Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
/// <reference types="cypress" />
|
||||
import { MockExtensionProvider } from "../support/e2e";
|
||||
|
||||
describe("MetaMask", () => {
|
||||
it("Lets user connect with Metamask provider", () => {
|
||||
cy.visit("/faucet", {
|
||||
onBeforeLoad(win) {
|
||||
win.ethereum = new MockExtensionProvider("rinkeby", "0x3256a804085C24f3451cAb2C98a37e16DEEc5721");
|
||||
}
|
||||
});
|
||||
cy.intercept("POST", "https://api.thegraph.com/subgraphs/name/radicle-dev/radicle-orgs-rinkeby", { data: { safe: null } } );
|
||||
cy.intercept("https://gateway.ceramic.network/api/v0/streams", { fixture: "ceramicStream.json" });
|
||||
cy.get("button.connect").should("have.text", "Connect").click();
|
||||
cy.get("button.secondary").should("have.text", "Connect with Metamask").click();
|
||||
cy.get("button.address").should("contain", "3256 – 5721");
|
||||
cy.window().then((win) => {
|
||||
win.ethereum.changeAccount("0xd3b5586D15140B6f793b260fd90588A0dAefc5B6");
|
||||
});
|
||||
cy.get("button.address").should("contain", "d3b5 – c5B6");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user