@@ -26,9 +26,9 @@ if (process.env['WEB_TEST_METADATA'] === undefined) {
26
26
process . exit ( 1 ) ;
27
27
}
28
28
29
- const webTestMetadata : WebTestMetadata = require ( runfiles . resolve (
30
- process . env [ 'WEB_TEST_METADATA' ] ,
31
- ) ) ;
29
+ const webTestMetadata : WebTestMetadata = require (
30
+ runfiles . resolve ( process . env [ 'WEB_TEST_METADATA' ] ) ,
31
+ ) ;
32
32
const port = process . env [ 'TEST_SERVER_PORT' ] ;
33
33
34
34
// Kagekiri is available globally in the browser. We declare it here so we can use it in the
@@ -60,6 +60,7 @@ describe('WebDriverHarnessEnvironment', () => {
60
60
. usingServer ( process . env [ 'WEB_TEST_WEBDRIVER_SERVER' ] ! )
61
61
. withCapabilities ( webTestMetadata . capabilities )
62
62
. build ( ) ;
63
+ await wd . manage ( ) . timeouts ( ) . implicitlyWait ( 0 ) ;
63
64
} ) ;
64
65
65
66
afterAll ( async ( ) => {
@@ -87,9 +88,8 @@ describe('WebDriverHarnessEnvironment', () => {
87
88
let harness : MainComponentHarness ;
88
89
89
90
beforeEach ( async ( ) => {
90
- harness = await SeleniumWebDriverHarnessEnvironment . loader ( wd ) . getHarness (
91
- MainComponentHarness ,
92
- ) ;
91
+ harness =
92
+ await SeleniumWebDriverHarnessEnvironment . loader ( wd ) . getHarness ( MainComponentHarness ) ;
93
93
} ) ;
94
94
95
95
it ( 'can get elements outside of host' , async ( ) => {
@@ -113,9 +113,8 @@ describe('WebDriverHarnessEnvironment', () => {
113
113
114
114
describe ( 'shadow DOM interaction' , ( ) => {
115
115
it ( 'should not pierce shadow boundary by default' , async ( ) => {
116
- const harness = await SeleniumWebDriverHarnessEnvironment . loader ( wd ) . getHarness (
117
- MainComponentHarness ,
118
- ) ;
116
+ const harness =
117
+ await SeleniumWebDriverHarnessEnvironment . loader ( wd ) . getHarness ( MainComponentHarness ) ;
119
118
expect ( await harness . shadows ( ) ) . toEqual ( [ ] ) ;
120
119
} ) ;
121
120
0 commit comments