diff --git a/.github/workflows/build-deploy-test.yaml b/.github/workflows/build-deploy-test.yaml index cb5fa4e..02ea1da 100644 --- a/.github/workflows/build-deploy-test.yaml +++ b/.github/workflows/build-deploy-test.yaml @@ -54,17 +54,17 @@ jobs: timeout-minutes: 60 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Install dependencies run: npm ci - name: Install Playwright Browsers run: npx playwright install --with-deps - name: Run Playwright tests run: npx playwright test - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: always() with: name: playwright-report diff --git a/tests/example.spec.ts b/tests/example.spec.ts index 1b67602..cac5169 100644 --- a/tests/example.spec.ts +++ b/tests/example.spec.ts @@ -20,7 +20,7 @@ test('check social buttons', async ({ page }) => { // Start waiting for new page before clicking. Note no await. const pagePromise = context.waitForEvent('page'); - await page.getByRole('button', { name: 'LinkedIn' }).click({ force: true }); + await page.getByRole('button', { name: 'LinkedIn' }).click(); const newPage = await pagePromise; await newPage.waitForLoadState(); await expect(newPage).toHaveURL(/www.linkedin.com/);