text: import initialize, {
    accountsPage,
    accountPage,
    app,
    modalPage,
    walletConnectPasteLinkModal,
    wcClientMock,
    wcConnectedPage,
  } from "../common.js";
  
  describe("WalletConnect", () => {
    initialize("walletconnect", {
      userData: "1AccountBTC1AccountETH",
    });
  
    it("goes to walletconnect modal", async () => {
      await accountsPage.goToAccounts();
      const firstAccountRow = await accountsPage.walletConnectGetEthereumAccount();
      await accountsPage.clickOnAccountRow(firstAccountRow);
      await app.client.pause(1000);
      await accountPage.openDropDown();
      await accountPage.openWalletConnect();
  
      expect(true).toBe(true);
    });
  
    it("walletconnect modal is opened", async () => {
      expect(await app.client.screenshot()).toMatchImageSnapshot({
        customSnapshotIdentifier: "wc-connect",
      });
    });
  
    it("goes to session confirmation", async () => {
      await walletConnectPasteLinkModal.pasteLink("coucou");
      await walletConnectPasteLinkModal.continue();
  
      wcClientMock("requestSession", []);
  
      expect(await app.client.screenshot()).toMatchImageSnapshot({
        customSnapshotIdentifier: "wc-connect-confirmation",
      });
    });
  
    it("confirms session and connect", async () => {
      await walletConnectPasteLinkModal.confirmContinue();
  
      await wcConnectedPage.waitForConnected();
  
      expect(await app.client.screenshot()).toMatchImageSnapshot({
        customSnapshotIdentifier: "wc-connect-connected",
      });
    });
  
    it("triggers a send transaction", async () => {
      wcClientMock("sendTransaction", []);
  
      expect(await app.client.screenshot()).toMatchImageSnapshot({
        customSnapshotIdentifier: "wc-connect-transaction-triggered",
      });
    });
  
    it("cancel and trigger a sign message", async () => {
      await modalPage.close();
  
      wcClientMock("signMessage", []);
  
      expect(await app.client.screenshot()).toMatchImageSnapshot({
        customSnapshotIdentifier: "wc-connect-signmessage-triggered",
      });
    });
  
    it("cancel and disconnects", async () => {
      await modalPage.close();
  
      await wcConnectedPage.disconnect();
  
      expect(await app.client.screenshot()).toMatchImageSnapshot({
        customSnapshotIdentifier: "wc-connect-end",
      });
    });
  });
  