Skip to content

Commit

Permalink
feat: enable safari and firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
fspoettel committed Jun 24, 2024
1 parent 1c247aa commit da7a935
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ jobs:
with:
name: playwright-report
path: playwright-report/
retention-days: 30
2 changes: 1 addition & 1 deletion e2e/settings-taboo.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test("settings (taboo)", async ({ page }) => {
await expect(page.getByTestId("card-text").first()).toContainText(
"Mutated. After you succeed at a skill test by 2 or more while investigating: Discover 1 clue at your location. (Limit once per round.)",
);
await expect(page.getByTestId("card-taboo")).toContainText(
await expect(page.getByTestId("card-taboo").first()).toContainText(
"Taboo List Mutated",
);
});
18 changes: 9 additions & 9 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default defineConfig({
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: "http://localhost:3000",
baseURL: process.env.E2E_BASE_URL ?? "http://localhost:3000",

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: "on-first-retry",
Expand All @@ -38,15 +38,15 @@ export default defineConfig({
use: { ...devices["Desktop Chrome"] },
},

// {
// name: "firefox",
// use: { ...devices["Desktop Firefox"] },
// },
{
name: "firefox",
use: { ...devices["Desktop Firefox"] },
},

// {
// name: 'webkit',
// use: { ...devices['Desktop Safari'] },
// },
{
name: "webkit",
use: { ...devices["Desktop Safari"] },
},

/* Test against mobile viewports. */
// {
Expand Down

0 comments on commit da7a935

Please sign in to comment.