Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 8611dce

Browse files
committed
chore(test): move handling_spec off of the control flow
1 parent 5900571 commit 8611dce

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

spec/basic/handling_spec.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
2-
describe('handling timeout errors', function() {
3-
4-
it('should call error handler on a timeout', function() {
5-
browser.get('http://dummyUrl', 1).then(function() {
1+
describe('handling timeout errors', () => {
2+
it('should call error handler on a timeout', async () => {
3+
try {
4+
await browser.get('http://dummyUrl', 1);
65
throw 'did not handle error';
7-
}, function(err) {
6+
} catch (err) {
87
expect(err instanceof Error).toBeTruthy();
9-
});
8+
}
109
});
1110
});

spec/basicConf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ exports.config = {
1010
// Spec patterns are relative to this directory.
1111
specs: [
1212
'basic/elements_spec.js',
13-
'basic/lib_spec.js'
13+
'basic/lib_spec.js',
14+
'basic/handling_spec.js'
1415
],
1516

1617
// Exclude patterns are relative to this directory.

spec/ciFullConf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ exports.config = {
1111
// TODO(selenium4): revert back to basic/*_spec.js
1212
specs: [
1313
'basic/elements_spec.js',
14-
'basic/lib_spec.js'
14+
'basic/lib_spec.js',
15+
'basic/handling_spec.js'
1516
],
1617

1718
// Exclude patterns are relative to this directory.

0 commit comments

Comments
 (0)