Skip to content

Commit

Permalink
chore: added mobile safari and desktop chrome to playwright test brow…
Browse files Browse the repository at this point in the history
…sers (#1133)
  • Loading branch information
JohnAllenTech authored Oct 16, 2024
1 parent 37e1080 commit 4c064e9
Showing 1 changed file with 17 additions and 26 deletions.
43 changes: 17 additions & 26 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,39 +43,30 @@ export default defineConfig({
},

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

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

/* Test against mobile viewports. */
{
name: "firefox",
use: {
...devices["Desktop Firefox"],
storageState: "playwright/.auth/browser.json",
},
dependencies: ["setup"],
},
{
name: "Mobile Chrome",
use: {
...devices["iPhone 15"],
...devices["Pixel 9"],
storageState: "playwright/.auth/browser.json",
},
dependencies: ["setup"],
},
{
name: "Mobile Safari",
use: {
...devices["iPhone 16"],
storageState: "playwright/.auth/browser.json",
},
dependencies: ["setup"],
},
// {
// name: 'Mobile Safari',
// use: { ...devices['iPhone 12'] },
// },

/* Test against branded browsers. */
// {
// name: 'Microsoft Edge',
// use: { ...devices['Desktop Edge'], channel: 'msedge' },
// },
// {
// name: 'Google Chrome',
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
// },
],

outputDir: "playwright-report",
Expand Down

0 comments on commit 4c064e9

Please sign in to comment.