Skip to content

Commit 8c0259e

Browse files
Copilotkobenguyent
andcommitted
Changes before error encountered
Co-authored-by: kobenguyent <[email protected]>
1 parent 58bb205 commit 8c0259e

28 files changed

+486
-0
lines changed

test/data/sandbox/codecept.addt.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
exports.config = {
2+
tests: './*_test.addt.js',
3+
timeout: 10000,
4+
output: './output',
5+
helpers: {},
6+
include: {},
7+
bootstrap: false,
8+
mocha: {},
9+
name: 'sandbox',
10+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
const event = require('../../../lib/event')
2+
3+
exports.config = {
4+
tests: './*_test.js',
5+
timeout: 10000,
6+
output: './output',
7+
helpers: {
8+
FileSystem: {},
9+
},
10+
include: {},
11+
bootstrap: false,
12+
mocha: {},
13+
name: 'require test',
14+
multiple: {
15+
default: {
16+
browsers: ['chrome', { browser: 'firefox' }],
17+
},
18+
},
19+
bootstrapAll: async () => {
20+
await Promise.resolve('inside Promise').then(res => console.log(`Results: ${res}`))
21+
event.dispatcher.on(event.multiple.before, () => {
22+
console.log('"event.multiple.before" is called')
23+
})
24+
},
25+
teardownAll: async () => {
26+
console.log('"teardownAll" is called.')
27+
},
28+
}

test/data/sandbox/codecept.bdd.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
exports.config = {
2+
tests: './*_no_test.js',
3+
timeout: 10000,
4+
output: './output',
5+
helpers: {
6+
BDD: {
7+
require: './support/bdd_helper.js',
8+
},
9+
},
10+
gherkin: {
11+
features: './features/*.feature',
12+
steps: ['./features/step_definitions/my_steps.js', './features/step_definitions/my_other_steps.js'],
13+
},
14+
include: {},
15+
bootstrap: false,
16+
mocha: {},
17+
name: 'sandbox',
18+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
exports.config = {
2+
tests: './*test_before_failure.js',
3+
timeout: 10000,
4+
output: './output',
5+
helpers: {
6+
FileSystem: {},
7+
},
8+
include: {},
9+
bootstrap: false,
10+
mocha: {},
11+
name: 'sandbox',
12+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
exports.config = {
2+
tests: './*_test.js',
3+
timeout: 10000,
4+
output: './output',
5+
helpers: {
6+
FileSystem: {},
7+
},
8+
include: {},
9+
bootstrap: false,
10+
mocha: {},
11+
name: 'require test',
12+
multiple: {
13+
default: {
14+
browsers: ['chrome', { browser: 'firefox' }],
15+
},
16+
},
17+
bootstrapAll: () => console.log('"bootstrapAll" is called.'),
18+
teardownAll: () => console.log('"teardownAll" is called.'),
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
exports.config = {
2+
tests: './*_test.js',
3+
timeout: 10000,
4+
output: './output',
5+
helpers: {
6+
FileSystem: {},
7+
},
8+
include: {},
9+
bootstrap: false,
10+
mocha: {},
11+
name: 'require test',
12+
multiple: {
13+
default: {
14+
browsers: ['chrome', { browser: 'firefox' }],
15+
},
16+
},
17+
bootstrapAll: './bootstrapall.function.js',
18+
teardownAll: './teardownall.function.js',
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
exports.config = {
2+
tests: './*_test.js',
3+
timeout: 10000,
4+
output: './output',
5+
helpers: {
6+
FileSystem: {},
7+
},
8+
include: {},
9+
bootstrap: false,
10+
mocha: {},
11+
name: 'require test',
12+
multiple: {
13+
default: {
14+
browsers: ['chrome', { browser: 'firefox' }],
15+
},
16+
},
17+
bootstrapAll: './bootstrapall.object.js',
18+
teardownAll: './teardownall.object.js',
19+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
exports.config = {
2+
tests: './*.customLocator.js',
3+
timeout: 10000,
4+
output: './output',
5+
helpers: {
6+
Playwright: {
7+
url: 'http://localhost',
8+
show: true,
9+
browser: 'chromium',
10+
},
11+
},
12+
include: {},
13+
bootstrap: false,
14+
mocha: {},
15+
name: 'sandbox',
16+
plugins: {
17+
customLocator: {
18+
enabled: false,
19+
prefix: '$',
20+
attribute: 'data-testid',
21+
},
22+
},
23+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
exports.config = {
2+
tests: './custom-worker/*.js',
3+
timeout: 10000,
4+
output: './output',
5+
helpers: {
6+
FileSystem: {},
7+
Workers: {
8+
require: './workers_helper',
9+
},
10+
CustomWorkers: {
11+
require: './custom_worker_helper',
12+
},
13+
},
14+
include: {},
15+
bootstrap: async () => {
16+
process.stdout.write('bootstrap b1+')
17+
return new Promise(done => {
18+
setTimeout(() => {
19+
process.stdout.write('b2')
20+
done()
21+
}, 100)
22+
})
23+
},
24+
mocha: {},
25+
name: 'sandbox',
26+
}

test/data/sandbox/codecept.ddt.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
exports.config = {
2+
tests: './*_test.ddt.js',
3+
timeout: 10000,
4+
output: './output',
5+
helpers: {},
6+
include: {},
7+
bootstrap: false,
8+
mocha: {},
9+
name: 'sandbox',
10+
}

0 commit comments

Comments
 (0)