plum-e2e 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/.prettierrc +15 -15
  2. package/README.md +5 -5
  3. package/backend/_scaffold/pages/LoginPage.js +22 -22
  4. package/backend/_scaffold/step_definitions/LoginSteps.js +9 -9
  5. package/backend/_scaffold/utils/constants.js +3 -3
  6. package/backend/_scaffold/utils/hooks.js +65 -65
  7. package/backend/_scaffold/utils/utils.js +10 -10
  8. package/backend/app.js +37 -37
  9. package/backend/config/scripts/create-settings.js +60 -60
  10. package/backend/config/scripts/generate-report.js +135 -135
  11. package/backend/config/scripts/run-tests.js +37 -37
  12. package/backend/cucumber.json +6 -6
  13. package/backend/package.json +29 -29
  14. package/backend/playwright.config.js +97 -97
  15. package/backend/routes/cron.routes.js +127 -127
  16. package/backend/routes/reports.routes.js +42 -42
  17. package/backend/routes/schedules.routes.js +32 -32
  18. package/backend/routes/tests.routes.js +33 -33
  19. package/backend/server.js +39 -39
  20. package/backend/services/cronService.js +127 -127
  21. package/backend/services/envService.js +43 -43
  22. package/backend/services/reportService.js +50 -50
  23. package/backend/services/scheduleService.js +34 -34
  24. package/backend/services/testService.js +70 -70
  25. package/backend/websockets/socketHandler.js +46 -46
  26. package/bin/plum.js +198 -198
  27. package/docker-compose.yml +41 -41
  28. package/frontend/jsconfig.json +13 -13
  29. package/frontend/package.json +26 -26
  30. package/frontend/postcss.config.js +23 -23
  31. package/frontend/src/app.css +35 -35
  32. package/frontend/src/app.html +28 -28
  33. package/frontend/src/lib/index.js +18 -18
  34. package/frontend/src/routes/+layout.svelte +34 -34
  35. package/frontend/src/routes/+page.svelte +188 -188
  36. package/frontend/src/routes/components/Navigation.svelte +53 -53
  37. package/frontend/src/routes/reports/+page.svelte +160 -160
  38. package/frontend/src/routes/scheduled-tests/+page.svelte +363 -363
  39. package/frontend/svelte.config.js +30 -30
  40. package/frontend/tailwind.config.js +44 -44
  41. package/frontend/vite.config.js +23 -23
  42. package/license-config.json +37 -37
  43. package/package.json +32 -28
@@ -1,135 +1,135 @@
1
- /*
2
- * This file is part of Plum.
3
- *
4
- * Plum is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
8
- *
9
- * Plum is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU General Public License
15
- * along with Plum. If not, see https://www.gnu.org/licenses/.
16
- */
17
-
18
- const reporter = require('cucumber-html-reporter');
19
- const fs = require('fs');
20
- const path = require('path');
21
- const { reportsHistory } = require('../settings.json');
22
-
23
- /* -----------------------------------------------------
24
- * Screenshot and Report Management
25
- *
26
- * Description:
27
- * To avoid reports and screenshots extract
28
- * status, tags, run name, and date.
29
- * ------------------------------------------------------ */
30
-
31
- const reportsDir = 'reports';
32
- const screenshotsDir = path.join(reportsDir, 'screenshots');
33
- const maxReports = reportsHistory;
34
-
35
- // Ensure the reports and screenshots directories exist
36
- if (!fs.existsSync(reportsDir)) {
37
- fs.mkdirSync(reportsDir, { recursive: true });
38
- }
39
-
40
- if (!fs.existsSync(screenshotsDir)) {
41
- fs.mkdirSync(screenshotsDir, { recursive: true });
42
- }
43
-
44
- // Remove the oldest report depending on maxReport
45
- const existingReports = fs
46
- .readdirSync(reportsDir)
47
- .filter((file) => file.startsWith('PASS_') || file.startsWith('FAIL_'))
48
- .sort(
49
- (a, b) =>
50
- fs.statSync(path.join(reportsDir, b)).mtime - fs.statSync(path.join(reportsDir, a)).mtime
51
- );
52
-
53
- while (existingReports.length >= maxReports) {
54
- const oldestReport = existingReports.pop();
55
- fs.unlinkSync(path.join(reportsDir, oldestReport));
56
- }
57
-
58
- // Remove the oldest screenshot depending on maxReport
59
- const existingScreenshots = fs
60
- .readdirSync(screenshotsDir)
61
- .filter((file) => file.endsWith('.png') || file.endsWith('.jpg'))
62
- .sort(
63
- (a, b) =>
64
- fs.statSync(path.join(screenshotsDir, b)).mtime -
65
- fs.statSync(path.join(screenshotsDir, a)).mtime
66
- );
67
-
68
- while (existingScreenshots.length >= maxReports) {
69
- const oldestScreenshot = existingScreenshots.pop();
70
- fs.unlinkSync(path.join(screenshotsDir, oldestScreenshot));
71
- }
72
-
73
- /* -----------------------------------------------------
74
- * Generate the report name
75
- *
76
- * Description:
77
- * This is where the reports page will
78
- * extract status, tags, run name, and date.
79
- * ------------------------------------------------------ */
80
-
81
- const jsonReportFile = path.join(reportsDir, 'cucumber_report.json');
82
- let status = 'PASS';
83
-
84
- if (fs.existsSync(jsonReportFile)) {
85
- const reportData = fs.readFileSync(jsonReportFile, 'utf8');
86
-
87
- // Ensure the JSON is not empty
88
- if (reportData) {
89
- const parsedData = JSON.parse(reportData);
90
-
91
- const hasFailures = parsedData.some((feature) =>
92
- feature.elements.some((scenario) =>
93
- scenario.steps.some((step) => step.result.status === 'failed')
94
- )
95
- );
96
-
97
- if (hasFailures) {
98
- status = 'FAIL';
99
- }
100
- } else {
101
- console.log('Report file is empty or malformed');
102
- }
103
- }
104
-
105
- let tag = process.env.TAG;
106
-
107
- if (!tag) {
108
- tag = '(@all-tests)';
109
- }
110
-
111
- if (tag && !tag.startsWith('(') && !tag.endsWith(')')) {
112
- tag = `(${tag})`;
113
- }
114
-
115
- const timestamp = new Date().toISOString().replace(/[-:.]/g, '_');
116
- const reportFileName = `${status}_cucumber_report_${process.env.TRIGGER}_${tag}_${timestamp}.html`;
117
-
118
- const options = {
119
- theme: 'bootstrap',
120
- jsonFile: jsonReportFile,
121
- output: path.join(reportsDir, reportFileName),
122
- reportSuiteAsScenarios: true,
123
- launchReport: true, // Automatically opens the report in a browser
124
- metadata: {
125
- 'App Name': 'Plum',
126
- 'Test Environment': 'Local',
127
- Browser: 'Chromium',
128
- Platform: 'Ubuntu',
129
- Parallel: 'Scenarios',
130
- Executed: 'Local'
131
- }
132
- };
133
-
134
- reporter.generate(options);
135
- console.log(`Generated report: ${reportFileName}`);
1
+ /*
2
+ * This file is part of Plum.
3
+ *
4
+ * Plum is free software: you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation, either version 3 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * Plum is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with Plum. If not, see https://www.gnu.org/licenses/.
16
+ */
17
+
18
+ const reporter = require('cucumber-html-reporter');
19
+ const fs = require('fs');
20
+ const path = require('path');
21
+ const { reportsHistory } = require('../settings.json');
22
+
23
+ /* -----------------------------------------------------
24
+ * Screenshot and Report Management
25
+ *
26
+ * Description:
27
+ * To avoid reports and screenshots extract
28
+ * status, tags, run name, and date.
29
+ * ------------------------------------------------------ */
30
+
31
+ const reportsDir = 'reports';
32
+ const screenshotsDir = path.join(reportsDir, 'screenshots');
33
+ const maxReports = reportsHistory;
34
+
35
+ // Ensure the reports and screenshots directories exist
36
+ if (!fs.existsSync(reportsDir)) {
37
+ fs.mkdirSync(reportsDir, { recursive: true });
38
+ }
39
+
40
+ if (!fs.existsSync(screenshotsDir)) {
41
+ fs.mkdirSync(screenshotsDir, { recursive: true });
42
+ }
43
+
44
+ // Remove the oldest report depending on maxReport
45
+ const existingReports = fs
46
+ .readdirSync(reportsDir)
47
+ .filter((file) => file.startsWith('PASS_') || file.startsWith('FAIL_'))
48
+ .sort(
49
+ (a, b) =>
50
+ fs.statSync(path.join(reportsDir, b)).mtime - fs.statSync(path.join(reportsDir, a)).mtime
51
+ );
52
+
53
+ while (existingReports.length >= maxReports) {
54
+ const oldestReport = existingReports.pop();
55
+ fs.unlinkSync(path.join(reportsDir, oldestReport));
56
+ }
57
+
58
+ // Remove the oldest screenshot depending on maxReport
59
+ const existingScreenshots = fs
60
+ .readdirSync(screenshotsDir)
61
+ .filter((file) => file.endsWith('.png') || file.endsWith('.jpg'))
62
+ .sort(
63
+ (a, b) =>
64
+ fs.statSync(path.join(screenshotsDir, b)).mtime -
65
+ fs.statSync(path.join(screenshotsDir, a)).mtime
66
+ );
67
+
68
+ while (existingScreenshots.length >= maxReports) {
69
+ const oldestScreenshot = existingScreenshots.pop();
70
+ fs.unlinkSync(path.join(screenshotsDir, oldestScreenshot));
71
+ }
72
+
73
+ /* -----------------------------------------------------
74
+ * Generate the report name
75
+ *
76
+ * Description:
77
+ * This is where the reports page will
78
+ * extract status, tags, run name, and date.
79
+ * ------------------------------------------------------ */
80
+
81
+ const jsonReportFile = path.join(reportsDir, 'cucumber_report.json');
82
+ let status = 'PASS';
83
+
84
+ if (fs.existsSync(jsonReportFile)) {
85
+ const reportData = fs.readFileSync(jsonReportFile, 'utf8');
86
+
87
+ // Ensure the JSON is not empty
88
+ if (reportData) {
89
+ const parsedData = JSON.parse(reportData);
90
+
91
+ const hasFailures = parsedData.some((feature) =>
92
+ feature.elements.some((scenario) =>
93
+ scenario.steps.some((step) => step.result.status === 'failed')
94
+ )
95
+ );
96
+
97
+ if (hasFailures) {
98
+ status = 'FAIL';
99
+ }
100
+ } else {
101
+ console.log('Report file is empty or malformed');
102
+ }
103
+ }
104
+
105
+ let tag = process.env.TAG;
106
+
107
+ if (!tag) {
108
+ tag = '(@all-tests)';
109
+ }
110
+
111
+ if (tag && !tag.startsWith('(') && !tag.endsWith(')')) {
112
+ tag = `(${tag})`;
113
+ }
114
+
115
+ const timestamp = new Date().toISOString().replace(/[-:.]/g, '_');
116
+ const reportFileName = `${status}_cucumber_report_${process.env.TRIGGER}_${tag}_${timestamp}.html`;
117
+
118
+ const options = {
119
+ theme: 'bootstrap',
120
+ jsonFile: jsonReportFile,
121
+ output: path.join(reportsDir, reportFileName),
122
+ reportSuiteAsScenarios: true,
123
+ launchReport: true, // Automatically opens the report in a browser
124
+ metadata: {
125
+ 'App Name': 'Plum',
126
+ 'Test Environment': 'Local',
127
+ Browser: 'Chromium',
128
+ Platform: 'Ubuntu',
129
+ Parallel: 'Scenarios',
130
+ Executed: 'Local'
131
+ }
132
+ };
133
+
134
+ reporter.generate(options);
135
+ console.log(`Generated report: ${reportFileName}`);
@@ -1,37 +1,37 @@
1
- /*
2
- * This file is part of Plum.
3
- *
4
- * Plum is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
8
- *
9
- * Plum is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU General Public License
15
- * along with Plum. If not, see https://www.gnu.org/licenses/.
16
- */
17
-
18
- const { execSync } = require('child_process');
19
- const tag = process.env.TAG; // Read the TAG environment variable
20
-
21
- try {
22
- // Run the tests with the tag filter, only if a tag is provided
23
- const cucumberCommand = tag
24
- ? `cucumber-js tests/features/**/*.feature --format json:reports/cucumber_report.json --tags "${tag}"`
25
- : `cucumber-js tests/features/**/*.feature --format json:reports/cucumber_report.json`;
26
-
27
- execSync(cucumberCommand, { stdio: 'inherit' });
28
- } catch (error) {
29
- console.error('Tests failed:', error.message);
30
- } finally {
31
- // Always run the report generation after tests (even if they fail)
32
- try {
33
- execSync('node config/scripts/generate-report.js', { stdio: 'inherit' });
34
- } catch (error) {
35
- console.error('Error running report generation:', error.message);
36
- }
37
- }
1
+ /*
2
+ * This file is part of Plum.
3
+ *
4
+ * Plum is free software: you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation, either version 3 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * Plum is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with Plum. If not, see https://www.gnu.org/licenses/.
16
+ */
17
+
18
+ const { execSync } = require('child_process');
19
+ const tag = process.env.TAG; // Read the TAG environment variable
20
+
21
+ try {
22
+ // Run the tests with the tag filter, only if a tag is provided
23
+ const cucumberCommand = tag
24
+ ? `cucumber-js tests/features/**/*.feature --format json:reports/cucumber_report.json --tags "${tag}"`
25
+ : `cucumber-js tests/features/**/*.feature --format json:reports/cucumber_report.json`;
26
+
27
+ execSync(cucumberCommand, { stdio: 'inherit' });
28
+ } catch (error) {
29
+ console.error('Tests failed:', error.message);
30
+ } finally {
31
+ // Always run the report generation after tests (even if they fail)
32
+ try {
33
+ execSync('node config/scripts/generate-report.js', { stdio: 'inherit' });
34
+ } catch (error) {
35
+ console.error('Error running report generation:', error.message);
36
+ }
37
+ }
@@ -1,6 +1,6 @@
1
- {
2
- "default": {
3
- "require": ["tests/step_definitions/*.js", "tests/utils/hooks.js"],
4
- "featurePaths": ["tests/features/**/*.feature"]
5
- }
6
- }
1
+ {
2
+ "default": {
3
+ "require": ["tests/step_definitions/*.js", "tests/utils/hooks.js"],
4
+ "featurePaths": ["tests/features/**/*.feature"]
5
+ }
6
+ }
@@ -1,29 +1,29 @@
1
- {
2
- "name": "plum-backend",
3
- "version": "1.0.0",
4
- "main": "index.js",
5
- "scripts": {
6
- "create-env": "node services/envService.js",
7
- "test": "node config/scripts/run-tests.js"
8
- },
9
- "keywords": [],
10
- "author": "",
11
- "license": "ISC",
12
- "devDependencies": {
13
- "@playwright/test": "^1.50.1",
14
- "@types/node": "^22.13.1",
15
- "cross-env": "^7.0.3",
16
- "cucumber-html-reporter": "^7.2.0"
17
- },
18
- "dependencies": {
19
- "@cucumber/cucumber": "^11.2.0",
20
- "chai": "^4.3.6",
21
- "chai-soft-assert": "^0.0.5",
22
- "cors": "^2.8.5",
23
- "dotenv": "^16.4.7",
24
- "express": "^4.21.2",
25
- "node-cron": "^3.0.3",
26
- "playwright": "^1.50.1",
27
- "socket.io": "^4.8.1"
28
- }
29
- }
1
+ {
2
+ "name": "plum-backend",
3
+ "version": "1.0.0",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "create-env": "node services/envService.js",
7
+ "test": "node config/scripts/run-tests.js"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "devDependencies": {
13
+ "@playwright/test": "^1.50.1",
14
+ "@types/node": "^22.13.1",
15
+ "cross-env": "^7.0.3",
16
+ "cucumber-html-reporter": "^7.2.0"
17
+ },
18
+ "dependencies": {
19
+ "@cucumber/cucumber": "^11.2.0",
20
+ "chai": "^4.3.6",
21
+ "chai-soft-assert": "^0.0.5",
22
+ "cors": "^2.8.5",
23
+ "dotenv": "^16.4.7",
24
+ "express": "^4.21.2",
25
+ "node-cron": "^3.0.3",
26
+ "playwright": "^1.50.1",
27
+ "socket.io": "^4.8.1"
28
+ }
29
+ }
@@ -1,97 +1,97 @@
1
- /*
2
- * This file is part of Plum.
3
- *
4
- * Plum is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
8
- *
9
- * Plum is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU General Public License
15
- * along with Plum. If not, see https://www.gnu.org/licenses/.
16
- */
17
-
18
- // @ts-check
19
- import { defineConfig, devices } from '@playwright/test';
20
-
21
- /**
22
- * Read environment variables from file.
23
- * https://github.com/motdotla/dotenv
24
- */
25
- // import dotenv from 'dotenv';
26
- // import path from 'path';
27
- // dotenv.config({ path: path.resolve(__dirname, '.env') });
28
-
29
- /**
30
- * @see https://playwright.dev/docs/test-configuration
31
- */
32
- export default defineConfig({
33
- testDir: './tests',
34
- /* Run tests in files in parallel */
35
- fullyParallel: true,
36
- /* Fail the build on CI if you accidentally left test.only in the source code. */
37
- forbidOnly: !!process.env.CI,
38
- /* Retry on CI only */
39
- retries: process.env.CI ? 2 : 0,
40
- /* Opt out of parallel tests on CI. */
41
- workers: process.env.CI ? 1 : undefined,
42
- /* Reporter to use. See https://playwright.dev/docs/test-reporters */
43
- reporter: 'html',
44
- /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
45
- use: {
46
- /* Base URL to use in actions like `await page.goto('/')`. */
47
- // baseURL: 'http://127.0.0.1:3000',
48
-
49
- /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
50
- trace: 'on-first-retry'
51
- },
52
-
53
- /* Configure projects for major browsers */
54
- projects: [
55
- {
56
- name: 'chromium',
57
- use: { ...devices['Desktop Chrome'] }
58
- },
59
-
60
- {
61
- name: 'firefox',
62
- use: { ...devices['Desktop Firefox'] }
63
- },
64
-
65
- {
66
- name: 'webkit',
67
- use: { ...devices['Desktop Safari'] }
68
- }
69
-
70
- /* Test against mobile viewports. */
71
- // {
72
- // name: 'Mobile Chrome',
73
- // use: { ...devices['Pixel 5'] },
74
- // },
75
- // {
76
- // name: 'Mobile Safari',
77
- // use: { ...devices['iPhone 12'] },
78
- // },
79
-
80
- /* Test against branded browsers. */
81
- // {
82
- // name: 'Microsoft Edge',
83
- // use: { ...devices['Desktop Edge'], channel: 'msedge' },
84
- // },
85
- // {
86
- // name: 'Google Chrome',
87
- // use: { ...devices['Desktop Chrome'], channel: 'chrome' },
88
- // },
89
- ]
90
-
91
- /* Run your local dev server before starting the tests */
92
- // webServer: {
93
- // command: 'npm run start',
94
- // url: 'http://127.0.0.1:3000',
95
- // reuseExistingServer: !process.env.CI,
96
- // },
97
- });
1
+ /*
2
+ * This file is part of Plum.
3
+ *
4
+ * Plum is free software: you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation, either version 3 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * Plum is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with Plum. If not, see https://www.gnu.org/licenses/.
16
+ */
17
+
18
+ // @ts-check
19
+ import { defineConfig, devices } from '@playwright/test';
20
+
21
+ /**
22
+ * Read environment variables from file.
23
+ * https://github.com/motdotla/dotenv
24
+ */
25
+ // import dotenv from 'dotenv';
26
+ // import path from 'path';
27
+ // dotenv.config({ path: path.resolve(__dirname, '.env') });
28
+
29
+ /**
30
+ * @see https://playwright.dev/docs/test-configuration
31
+ */
32
+ export default defineConfig({
33
+ testDir: './tests',
34
+ /* Run tests in files in parallel */
35
+ fullyParallel: true,
36
+ /* Fail the build on CI if you accidentally left test.only in the source code. */
37
+ forbidOnly: !!process.env.CI,
38
+ /* Retry on CI only */
39
+ retries: process.env.CI ? 2 : 0,
40
+ /* Opt out of parallel tests on CI. */
41
+ workers: process.env.CI ? 1 : undefined,
42
+ /* Reporter to use. See https://playwright.dev/docs/test-reporters */
43
+ reporter: 'html',
44
+ /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
45
+ use: {
46
+ /* Base URL to use in actions like `await page.goto('/')`. */
47
+ // baseURL: 'http://127.0.0.1:3000',
48
+
49
+ /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
50
+ trace: 'on-first-retry'
51
+ },
52
+
53
+ /* Configure projects for major browsers */
54
+ projects: [
55
+ {
56
+ name: 'chromium',
57
+ use: { ...devices['Desktop Chrome'] }
58
+ },
59
+
60
+ {
61
+ name: 'firefox',
62
+ use: { ...devices['Desktop Firefox'] }
63
+ },
64
+
65
+ {
66
+ name: 'webkit',
67
+ use: { ...devices['Desktop Safari'] }
68
+ }
69
+
70
+ /* Test against mobile viewports. */
71
+ // {
72
+ // name: 'Mobile Chrome',
73
+ // use: { ...devices['Pixel 5'] },
74
+ // },
75
+ // {
76
+ // name: 'Mobile Safari',
77
+ // use: { ...devices['iPhone 12'] },
78
+ // },
79
+
80
+ /* Test against branded browsers. */
81
+ // {
82
+ // name: 'Microsoft Edge',
83
+ // use: { ...devices['Desktop Edge'], channel: 'msedge' },
84
+ // },
85
+ // {
86
+ // name: 'Google Chrome',
87
+ // use: { ...devices['Desktop Chrome'], channel: 'chrome' },
88
+ // },
89
+ ]
90
+
91
+ /* Run your local dev server before starting the tests */
92
+ // webServer: {
93
+ // command: 'npm run start',
94
+ // url: 'http://127.0.0.1:3000',
95
+ // reuseExistingServer: !process.env.CI,
96
+ // },
97
+ });