Skip to content

Commit

Permalink
chore: add playground e2e action
Browse files Browse the repository at this point in the history
  • Loading branch information
ditoglez committed Jun 6, 2024
1 parent 0e49f39 commit 03b080b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Playwright Tests
name: Playwright Tests (Playground)
on:
push:
branches: [ main ]
Expand All @@ -7,6 +7,7 @@ on:

jobs:
e2e:
environment: Playground
timeout-minutes: 60
runs-on: ubuntu-latest
defaults:
Expand All @@ -16,6 +17,7 @@ jobs:
BASE_URL: ${{secrets.IDOS_E2E_BASE_URL}}
WALLET_SEED_PHRASE: ${{ secrets.IDOS_E2E_WALLET_SEED_PHRASE }}
WALLET_PASSWORD: ${{ secrets.IDOS_E2E_WALLET_PASSWORD }}
GRANTS_BASE_URL: ${{ secrets.IDOS_E2E_GRANTS_BASE_URL }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
Expand Down
4 changes: 2 additions & 2 deletions apps/idos-sdk-e2e/tests/04-grants.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const test = testWithSynpress(metaMaskFixtures(basicSetup));
const { expect } = test;

test.beforeEach(async ({ context, page }) => {
test.setTimeout(120000);
test.setTimeout(500000);

await context.clearCookies();
await page.evaluate(() => window.localStorage.clear());
Expand All @@ -25,7 +25,7 @@ test("should create a grant successfully", async ({ context, page, metamaskPage,
// Get the credential ID that is going to be shared.
const credentialId = (await list.getByRole("listitem").first().getAttribute("id")) as string;

await page.goto("https://idos-example-dapp-playground.vercel.app/");
await page.goto(process.env.GRANTS_TEST_BASE_URL as string);
await context.clearCookies();
await page.evaluate(() => window.localStorage.clear());

Expand Down

0 comments on commit 03b080b

Please sign in to comment.