diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 8b3c7a3..5b62a0e 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -23,7 +23,7 @@ jobs: - name: Run Playwright tests run: yarn test:playwright env: - PLAYWRIGHT_REPLAY_API_KEY: ${{ secrets.REPLAY_API_KEY }} + PLAYWRIGHT_REPLAY_API_KEY: ${{ secrets.PLAYWRIGHT_REPLAY_API_KEY }} REPLAY_PLAYWRIGHT_FIXTURE: ${{ secrets.REPLAY_PLAYWRIGHT_FIXTURE }} - uses: actions/upload-artifact@v4 if: always() diff --git a/packages/site/playwright-tests/overboard.spec.ts b/packages/site/playwright-tests/overboard.spec.ts index 21582a5..90d5593 100644 --- a/packages/site/playwright-tests/overboard.spec.ts +++ b/packages/site/playwright-tests/overboard.spec.ts @@ -1,4 +1,3 @@ -// import test, { expect } from "../testFixtureTestSuiteDashboard"; import { test, expect, Page } from '@playwright/test'; async function selectColor(page: Page, color: "blue" | "green" | "red") { @@ -14,21 +13,14 @@ async function verifyAddToCartDidNotFail(page) { await expect(errorElement).toHaveCount(0); } - - -// test.use({ testRunState: "SUCCESS_IN_MAIN_WITH_SOURCE" }); - -test('Playwright :: select color', async ({ page }) => { - // test('select color', async ({ pageWithMeta: { page } }) => { +test('select color', async ({ page }) => { await page.goto('http://localhost:3000'); await selectColor(page, "blue") await selectColor(page, "green") }); - -// test('can buy board', async ({ pageWithMeta: { page } }) => { -test('Playwright :: can buy board', async ({ page }) => { +test('can buy board', async ({ page }) => { await page.goto('http://localhost:3000'); await selectColor(page, "blue")