Skip to content

Commit d22b945

Browse files
committed
specs array
1 parent 18e7ec0 commit d22b945

5 files changed

Lines changed: 20 additions & 18 deletions

File tree

apps/E2E/wdio.conf.android.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const jasmineDefaultTimeout = 60000; // 60 seconds for Jasmine test timeout
66

77
exports.config = {
88
runner: 'local', // Where should your test be launched
9-
specs: ['src/**/specs/*.android.ts'],
9+
specs: [['src/**/specs/*.android.ts']],
1010
exclude: [],
1111

1212
maxInstances: 30,

apps/E2E/wdio.conf.ios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const jasmineDefaultTimeout = 60000; // 60 seconds for Jasmine test timeout
66

77
exports.config = {
88
runner: 'local', // Where should your test be launched
9-
specs: ['src/**/specs/*.ios.ts'],
9+
specs: [['src/**/specs/*.ios.ts']],
1010
exclude: [],
1111

1212
maxInstances: 30,

apps/E2E/wdio.conf.macos.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const jasmineDefaultTimeout = 60000; // 60 seconds for Jasmine test timeout
66

77
exports.config = {
88
runner: 'local', // Where should your test be launched
9-
specs: ['src/**/specs/*.macos.ts'],
9+
specs: [['src/**/specs/*.macos.ts']],
1010
exclude: [
1111
/* 'path/to/excluded/files' */
1212
],
@@ -156,7 +156,7 @@ exports.config = {
156156
*/
157157
afterTest: (test, context, results) => {
158158
const resultString = results.passed ? 'Passed' : 'Failed';
159-
console.log(`\nTest Case: "${test.description}".\nResult: "${resultString}".\nDuration: "${(results.duration/600).toFixed(2)}s". \n`);
159+
console.log(`\nTest Case: "${test.description}".\nResult: "${resultString}".\nDuration: "${(results.duration / 600).toFixed(2)}s". \n`);
160160

161161
// if test passed, ignore, else take and save screenshot. Unless it's the first test that boots the app,
162162
// it may be useful to have a screenshot of the app on load.

apps/E2E/wdio.conf.win32.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const jasmineDefaultTimeout = 60000; // 60 seconds for Jasmine test timeout
1212

1313
exports.config = {
1414
runner: 'local', // Where should your test be launched
15-
specs: ['../E2E/src/**/specs/*.win.ts'],
15+
specs: [['../E2E/src/**/specs/*.win.ts']],
1616
exclude: [],
1717

1818
capabilities: [

apps/E2E/wdio.conf.windows.js

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,20 @@ exports.config = {
99
/* UWP controls are a subset of the Win32 controls. Only some work on our UWP test app,
1010
so we must specify which ones we want to test here. */
1111
specs: [
12-
'src/ActivityIndicator/specs/*.win.ts',
13-
'src/ButtonLegacy/specs/*.win.ts',
14-
'src/CheckboxLegacy/specs/*.win.ts', // See spec file for more information
15-
'src/LinkLegacy/specs/*.win.ts',
16-
'src/PersonaCoin/specs/*.win.ts',
17-
'src/Pressable/specs/*.win.ts',
18-
'src/Separator/specs/*.win.ts',
19-
'src/TabsLegacy/specs/*.windows.ts', // See spec file for more information
20-
'src/TextLegacy/specs/*.win.ts',
21-
'src/TextV1/specs/*.win.ts',
22-
'src/Theme/specs/*.win.ts',
23-
'src/Tokens/specs/*.win.ts',
12+
[
13+
'src/ActivityIndicator/specs/*.win.ts',
14+
'src/ButtonLegacy/specs/*.win.ts',
15+
'src/CheckboxLegacy/specs/*.win.ts', // See spec file for more information
16+
'src/LinkLegacy/specs/*.win.ts',
17+
'src/PersonaCoin/specs/*.win.ts',
18+
'src/Pressable/specs/*.win.ts',
19+
'src/Separator/specs/*.win.ts',
20+
'src/TabsLegacy/specs/*.windows.ts', // See spec file for more information
21+
'src/TextLegacy/specs/*.win.ts',
22+
'src/TextV1/specs/*.win.ts',
23+
'src/Theme/specs/*.win.ts',
24+
'src/Tokens/specs/*.win.ts',
25+
],
2426
],
2527
exclude: [
2628
/* 'path/to/excluded/files' */
@@ -160,7 +162,7 @@ exports.config = {
160162
*/
161163
afterTest: (test, context, results) => {
162164
const resultString = results.passed ? 'Passed' : 'Failed';
163-
console.log(`\nTest Case: "${test.description}".\nResult: "${resultString}".\nDuration: "${(results.duration/600).toFixed(2)}s". \n`);
165+
console.log(`\nTest Case: "${test.description}".\nResult: "${resultString}".\nDuration: "${(results.duration / 600).toFixed(2)}s". \n`);
164166

165167
// if test passed, ignore, else take and save screenshot.
166168
if (results.passed) {

0 commit comments

Comments
 (0)