Group full E2E slices by browser device and role

This commit is contained in:
Jeppe Bundgaard
2026-06-15 12:19:15 +02:00
parent e607ac8232
commit 7f347b6c90
6 changed files with 164 additions and 37 deletions
+6 -6
View File
@@ -19,7 +19,7 @@ const reporter =
: [["list"], ["html", { open: "never", outputFolder: htmlReportOutputFolder }]];
function buildProject(name: string, browserName: "chromium" | "firefox" | "webkit", deviceName: keyof typeof devices) {
const { defaultBrowserType, ...device } = devices[deviceName];
const { defaultBrowserType: _defaultBrowserType, ...device } = devices[deviceName];
const use = {
browserName,
...device,
@@ -62,14 +62,14 @@ export default defineConfig({
video: "retain-on-failure",
},
projects: [
buildProject("chromium-mobile", "chromium", "Pixel 5"),
buildProject("chromium-desktop", "chromium", "Desktop Chrome"),
buildProject("chromium-tablet", "chromium", "iPad Mini"),
buildProject("chromium-mobile", "chromium", "Pixel 5"),
buildProject("firefox-desktop", "firefox", "Desktop Firefox"),
buildProject("firefox-tablet", "firefox", "iPad Mini"),
buildProject("firefox-mobile", "firefox", "Pixel 5"),
buildProject("webkit-mobile", "webkit", "iPhone 12"),
buildProject("webkit-desktop", "webkit", "Desktop Safari"),
buildProject("webkit-tablet", "webkit", "iPad Mini"),
buildProject("webkit-mobile", "webkit", "iPhone 12"),
buildProject("firefox-mobile", "firefox", "Pixel 5"),
buildProject("firefox-desktop", "firefox", "Desktop Firefox"),
buildProject("firefox-tablet", "firefox", "iPad Mini"),
],
});