diff --git a/.github/workflows/playwright.yaml b/.github/workflows/playwright.yaml index 18e7b45..aad82f9 100644 --- a/.github/workflows/playwright.yaml +++ b/.github/workflows/playwright.yaml @@ -10,11 +10,11 @@ jobs: strategy: matrix: tutorial: - # - "tests/erc20-paymaster.spec.ts" - # - "tests/how-to-test-contracts.spec.ts" - # - "tests/daily-spend-limit.spec.ts" - # - "tests/signing-txns-with-webauthn.spec.ts" - # - "tests/native-aa-multisig.spec.ts" + - "tests/erc20-paymaster.spec.ts" + - "tests/how-to-test-contracts.spec.ts" + - "tests/daily-spend-limit.spec.ts" + - "tests/signing-txns-with-webauthn.spec.ts" + - "tests/native-aa-multisig.spec.ts" - "frontend-paymaster" steps: diff --git a/tests/utils/button.ts b/tests/utils/button.ts index 0b4990e..c3ff8c1 100644 --- a/tests/utils/button.ts +++ b/tests/utils/button.ts @@ -1,10 +1,7 @@ import type { Page } from '@playwright/test'; export async function clickButtonByText(page: Page, selector: string | RegExp) { - const buttons = page.locator('button'); - const buttonByText = buttons.getByText(selector); - await buttonByText.click(); - await page.waitForTimeout(1000); + await page.locator('button').getByText(selector).click(); } export async function clickCopyButton(page: Page, id: string) {