forked from DevExpress/testcafe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
23 lines (19 loc) · 1.27 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
describe('[Regression](GH-6949)', () => {
it('Should change checkbox state when clicking checkbox label', () => {
return runTests('./testcafe-fixtures/with-link.js', 'Click checkbox label');
});
it('Should NOT change checkbox state when clicking a LINK inside the checkbox label', () => {
return runTests('./testcafe-fixtures/with-link.js', 'Click link inside checkbox label');
});
it('Should change checkbox state when clicking a LINK without href attribute inside the checkbox label', () => {
//The behaviour in IE is different, so we should to exclude it from this test:
return runTests('./testcafe-fixtures/with-link-without-href.js', 'Click link without href inside checkbox label', { skip: 'ie' });
});
it('Should NOT change checkbox state when clicking a BUTTON inside the checkbox label', () => {
//The behaviour in IE is different, so we should to exclude it from this test:
return runTests('./testcafe-fixtures/with-button.js', 'Click button inside checkbox label', { skip: 'ie' });
});
it('Should change checkbox state when clicking a DIV with onclick handler inside the checkbox label', () => {
return runTests('./testcafe-fixtures/with-div.js', 'Click div inside checkbox label');
});
});