Skip to content

Commit

Permalink
Merge branch 'feat/update-e2e-btn-names' of github.com:idos-network/i…
Browse files Browse the repository at this point in the history
…dos-sdk-js into playground
  • Loading branch information
Mohammed-Mamoun98 committed Nov 20, 2024
2 parents 5ece7fe + ec6ed69 commit 7ad87ba
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions apps/idos-sdk-e2e/tests/01-evm-auth.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test("should login successfully with an EVM wallet", async ({
}) => {
const metamask = new MetaMask(context, metamaskPage, basicSetup.walletPassword, extensionId);
await page.getByRole("button", { name: "Connect a wallet" }).click();
await page.getByRole("button", { name: "MetaMask installed" }).click();
await page.getByRole("button", { name: "MetaMask" }).first().click();
await metamask.connectToDapp(["Pristine"]);
await page.waitForTimeout(2000);
await expect(page.locator("#disconnect-wallet-btn")).toBeVisible();
Expand All @@ -33,7 +33,7 @@ test("should set successfully an EVM signer", async ({
}) => {
const metamask = new MetaMask(context, metamaskPage, basicSetup.walletPassword, extensionId);
await page.getByRole("button", { name: "Connect a wallet" }).click();
await page.getByRole("button", { name: "MetaMask installed" }).click();
await page.getByRole("button", { name: "MetaMask" }).first().click();
await metamask.switchAccount("Account 1");
await metamask.connectToDapp(["Account 1"]);
await page.waitForTimeout(2000);
Expand Down
6 changes: 3 additions & 3 deletions apps/idos-sdk-e2e/tests/02-data.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test("should fetch credentials successfully", async ({
}) => {
const metamask = new MetaMask(context, metamaskPage, basicSetup.walletPassword, extensionId);
await page.getByRole("button", { name: "Connect a wallet" }).click();
await page.getByRole("button", { name: "MetaMask installed" }).click();
await page.getByRole("button", { name: "MetaMask" }).first().click();
await metamask.switchAccount("Account 1");
await metamask.connectToDapp(["Account 1"]);
await page.waitForTimeout(2000);
Expand All @@ -35,7 +35,7 @@ test("should fetch wallets successfully", async ({ context, page, metamaskPage,
await page.goto("/wallets");
const metamask = new MetaMask(context, metamaskPage, basicSetup.walletPassword, extensionId);
await page.getByRole("button", { name: "Connect a wallet" }).click();
await page.getByRole("button", { name: "MetaMask installed" }).click();
await page.getByRole("button", { name: "MetaMask" }).first().click();
await metamask.switchAccount("Account 1");
await metamask.connectToDapp(["Account 1"]);
await page.waitForTimeout(3000);
Expand All @@ -57,7 +57,7 @@ test("should add / delete a wallet successfully", async ({
await page.goto("/wallets");
const metamask = new MetaMask(context, metamaskPage, basicSetup.walletPassword, extensionId);
await page.getByRole("button", { name: "Connect a wallet" }).click();
await page.getByRole("button", { name: "MetaMask installed" }).click();
await page.getByRole("button", { name: "MetaMask" }).first().click();
await metamask.switchAccount("Account 1");
await metamask.connectToDapp(["Account 1"]);
await page.waitForTimeout(3000);
Expand Down
4 changes: 2 additions & 2 deletions apps/idos-sdk-e2e/tests/03-enclave.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test("should decrypt a credential successfully", async ({
}) => {
const metamask = new MetaMask(context, metamaskPage, basicSetup.walletPassword, extensionId);
await page.getByRole("button", { name: "Connect a wallet" }).click();
await page.getByRole("button", { name: "MetaMask installed" }).click();
await page.getByRole("button", { name: "MetaMask" }).first().click();
await metamask.switchAccount("Account 1");
await metamask.connectToDapp(["Account 1"]);
await page.waitForTimeout(2000);
Expand Down Expand Up @@ -52,7 +52,7 @@ test("should filter credentials by country successfully", async ({
await page.goto("e2e/credential-filtering-by-country");

await page.getByRole("button", { name: "Connect a wallet" }).click();
await page.getByRole("button", { name: "MetaMask installed" }).click();
await page.getByRole("button", { name: "MetaMask" }).first().click();
await metamask.switchAccount("Account 1");
await metamask.connectToDapp(["Account 1"]);
await page.waitForTimeout(2000);
Expand Down
6 changes: 3 additions & 3 deletions apps/idos-sdk-e2e/tests/04-grants.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test.beforeEach(async ({ context, page }) => {
test("should create a grant successfully", async ({ context, page, metamaskPage, extensionId }) => {
const metamask = new MetaMask(context, metamaskPage, basicSetup.walletPassword, extensionId);
await page.getByRole("button", { name: "Connect a wallet" }).click();
await page.getByRole("button", { name: "MetaMask installed" }).click();
await page.getByRole("button", { name: "MetaMask" }).first().click();
await metamask.switchAccount("Account 1");
await metamask.connectToDapp(["Account 1"]);
await page.waitForTimeout(2000);
Expand Down Expand Up @@ -81,7 +81,7 @@ test("should revoke a grant successfully", async ({ context, page, metamaskPage,
await page.waitForTimeout(50000);
const metamask = new MetaMask(context, metamaskPage, basicSetup.walletPassword, extensionId);
await page.getByRole("button", { name: "Connect a wallet" }).click();
await page.getByRole("button", { name: "MetaMask installed" }).click();
await page.getByRole("button", { name: "MetaMask" }).first().click();

await metamask.switchAccount("Account 1");
await metamask.connectToDapp(["Account 1"]);
Expand Down Expand Up @@ -117,7 +117,7 @@ test("should share a matching credential successfully", async ({
await page.goto("/e2e/credential-filtering");
const metamask = new MetaMask(context, metamaskPage, basicSetup.walletPassword, extensionId);
await page.getByRole("button", { name: "Connect a wallet" }).click();
await page.getByRole("button", { name: "MetaMask installed" }).click();
await page.getByRole("button", { name: "MetaMask" }).first().click();
await metamask.switchAccount("Account 1");
await metamask.connectToDapp(["Account 1"]);
await page.waitForTimeout(3000);
Expand Down

0 comments on commit 7ad87ba

Please sign in to comment.