/
test.js
46 lines (36 loc) · 1.84 KB
/
test.js
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
43
44
45
const expect = require('chai').expect;
describe('[Regression](GH-4558)', () => {
it('Should fail on click an element in invisible iframe', () => {
return runTests('./testcafe-fixtures/index.js', 'Button click', { skip: ['ie'], shouldFail: true })
.catch(err => {
expect(err[0]).contains('The element that matches the specified selector is not visible.');
});
});
it('Should press key in iframe document', () => {
return runTests('./testcafe-fixtures/index.js', 'Press key', { skip: ['ie'] });
});
it('Set files to upload and clear upload', () => {
return runTests('./testcafe-fixtures/index.js', 'Set files to upload and clear upload', { skip: ['ie'] });
});
it('Dispatch a Click event', () => {
return runTests('./testcafe-fixtures/index.js', 'Dispatch a Click event', { skip: ['ie'] });
});
it('Eval', () => {
return runTests('./testcafe-fixtures/index.js', 'Eval', { skip: ['ie'] });
});
it('Set native dialog handler and get common dialog history', () => {
return runTests('./testcafe-fixtures/index.js', 'Set native dialog handler and get common dialog history', { skip: ['ie'] });
});
it('Get browser console messages', () => {
return runTests('./testcafe-fixtures/index.js', 'Get browser console messages', { skip: ['ie'] });
});
it('Switch to inner iframe', () => {
return runTests('./testcafe-fixtures/index.js', 'Switch to inner iframe', { skip: ['ie'] });
});
it('Hidden by visibility style', () => {
return runTests('./testcafe-fixtures/index.js', 'Hidden by visibility style', { skip: ['ie'], shouldFail: true })
.catch(err => {
expect(err[0]).contains('The element that matches the specified selector is not visible.');
});
});
});