@@ -57,18 +57,7 @@ export default defineConfig({
57
57
/* Run tests in files in parallel */
58
58
fullyParallel : true ,
59
59
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
60
- use : {
61
- actionTimeout : 0 ,
62
- /* Base URL to use in actions like `await page.goto('/')`. */
63
- // baseURL: testConfig[process.env.ENV],
64
- testIdAttribute : 'data-testid' ,
65
- headless : false ,
66
- viewport : { width : 1500 , height : 800 } ,
67
- ignoreHTTPSErrors : true ,
68
- screenshot : 'only-on-failure' ,
69
- video : `on` ,
70
- trace : `on` ,
71
- } ,
60
+
72
61
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
73
62
// reporter: 'html',
74
63
reporter : [
@@ -107,18 +96,33 @@ export default defineConfig({
107
96
] ,
108
97
] ,
109
98
/* Folder for test artifacts such as screenshots, videos, traces, etc. */
110
- outputDir : 'reports/test-artifacts/' ,
99
+ outputDir : envConfig . testArtifacts ,
100
+ use : {
101
+ actionTimeout : 0 ,
102
+ /* Base URL to use in actions like `await page.goto('/')`. */
103
+ // baseURL: testConfig[process.env.ENV],
104
+ testIdAttribute : 'data-testid' ,
105
+ headless : false ,
106
+ viewport : { width : 1400 , height : 800 } ,
107
+ ignoreHTTPSErrors : true ,
108
+ screenshot : 'only-on-failure' ,
109
+ video : 'retain-on-failure' ,
110
+ trace : `on` ,
111
+ } ,
111
112
/* Configure projects for major browsers */
112
113
projects : [
113
114
// {
114
115
// name: "Setup",
115
116
// testMatch: "global-setup.ts",
116
117
// },
117
118
{
118
- name : `Chrome` ,
119
+ name : `Chrome - UI` ,
120
+ grep : / @ e x a m p l e s / ,
119
121
use : {
120
122
browserName : `chromium` ,
121
123
// storageState: testConfig.ownerAuth,
124
+ // baseURL: ENV,
125
+ // headless: false,
122
126
channel : `chrome` ,
123
127
//Slows down execution by ms
124
128
launchOptions : {
@@ -130,12 +134,12 @@ export default defineConfig({
130
134
// {
131
135
// name: `Device`,
132
136
// use: {
133
- // // ...devices[`Pixel 4a (5G)`],
137
+ // ...devices[`Pixel 4a (5G)`],
134
138
// ...devices[`iPhone 11 Pro Max`],
135
139
// browserName: `chromium`,
136
140
// storageState: testConfig.ownerAuth,
137
141
// channel: `chrome`,
138
- // // Slows down execution by ms
142
+ //Slows down execution by ms
139
143
// launchOptions: {
140
144
// slowMo: 0
141
145
// }
@@ -145,12 +149,12 @@ export default defineConfig({
145
149
// {
146
150
// name: `Chrome`,
147
151
// use: {
148
- // // Configure the browser to use.
152
+ // Configure the browser to use.
149
153
// browserName: `chromium`,
150
154
// storageState: testConfig.adminAuth,
151
- // // Chrome Browser Config
155
+ //Chrome Browser Config
152
156
// channel: `chrome`,
153
- // // Slows down execution by ms
157
+ //Slows down execution by ms
154
158
// launchOptions: {
155
159
// slowMo: 0
156
160
// }
0 commit comments