Skip to content

Commit 6ea5551

Browse files
committed
add browser config to playwright
1 parent 38663a2 commit 6ea5551

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

playwright.config.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,24 @@ export default defineConfig({
1313
projects: [
1414
{
1515
name: "chromium",
16-
use: { ...devices["Desktop Chrome"] },
16+
use: devices["Desktop Chrome"],
17+
},
18+
{
19+
name: "webkit",
20+
use: devices["Desktop Safari"],
21+
},
22+
{
23+
name: "msedge",
24+
use: {
25+
...devices["Desktop Edge"],
26+
// Desktop Edge uses chromium by default
27+
// https://github.com/microsoft/playwright/blob/993546c1bc3267fb72eddaf8cf003cb2e1519598/packages/playwright-core/src/server/deviceDescriptorsSource.json#L1652
28+
channel: "msedge",
29+
},
30+
},
31+
{
32+
name: "firefox",
33+
use: devices["Desktop Firefox"],
1734
},
1835
],
1936
});

0 commit comments

Comments
 (0)