-
-
Notifications
You must be signed in to change notification settings - Fork 750
Expand file tree
/
Copy pathedge-cases_test.js
More file actions
42 lines (35 loc) · 1.12 KB
/
edge-cases_test.js
File metadata and controls
42 lines (35 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Feature('HTML Reporter Edge Cases')
Scenario('test with special characters <>&"\'', ({ I }) => {
I.amInPath('.')
I.seeFile('package.json')
})
Scenario('test with very long name that should be handled properly without breaking the layout or causing any rendering issues in the HTML report', ({ I }) => {
I.amInPath('.')
I.seeFile('codecept.conf.js')
})
Scenario('test with unicode characters 测试 🎉 ñoño', ({ I }) => {
I.amInPath('.')
I.seeFile('package.json')
})
Scenario('@tag1 @tag2 @critical test with multiple tags', ({ I }) => {
I.amInPath('.')
I.seeFile('codecept.conf.js')
})
Scenario('test with metadata', ({ I }) => {
I.amInPath('.')
I.seeFile('package.json')
}).tag('@smoke').tag('@regression')
Scenario('test that takes longer to execute', async ({ I }) => {
I.amInPath('.')
await new Promise(resolve => setTimeout(resolve, 500))
I.seeFile('package.json')
})
Scenario('test with nested error', ({ I }) => {
I.amInPath('.')
try {
throw new Error('Nested error with <html> tags & special chars')
} catch (e) {
// This will fail
I.seeFile('non-existent-file-with-error.txt')
}
})