Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonLaster committed Apr 4, 2024
1 parent 1ae6f5e commit ba09211
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
12 changes: 2 additions & 10 deletions packages/site/playwright-tests/overboard.spec.ts
Original file line number Diff line number Diff line change
@@ -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") {
Expand All @@ -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")
Expand Down

0 comments on commit ba09211

Please sign in to comment.