File tree Expand file tree Collapse file tree
javascript/node/selenium-webdriver/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ const fileServer = require('../lib/test/fileserver')
2323const { ignore, Pages, suite } = require ( '../lib/test' )
2424const { Key, Origin } = require ( '../lib/input' )
2525const { Browser, By, until } = require ( '..' )
26+ const io = require ( '../io' )
2627
2728suite ( function ( env ) {
2829 describe ( 'WebDriver.actions()' , function ( ) {
@@ -98,6 +99,8 @@ suite(function (env) {
9899 assert . strictEqual ( await box . getAttribute ( 'class' ) , '' )
99100
100101 await driver . actions ( ) . doubleClick ( box ) . perform ( )
102+ await driver . wait (
103+ async ( ) => await box . getAttribute ( 'class' ) === 'blue' , 5000 )
101104 assert . strictEqual ( await box . getAttribute ( 'class' ) , 'blue' )
102105 } )
103106
Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ test.suite(
3232 function ( env ) {
3333 let driver
3434
35- before ( async function ( ) {
35+ beforeEach ( async function ( ) {
3636 driver = await env
3737 . builder ( )
3838 . setChromeOptions ( new chrome . Options ( ) . headless ( ) )
3939 . build ( )
4040 } )
41- after ( async ( ) => await driver . quit ( ) )
41+ afterEach ( async ( ) => await driver . quit ( ) )
4242
4343 it ( 'can send commands to devtools' , async function ( ) {
4444 await driver . get ( test . Pages . ajaxyPage )
You can’t perform that action at this time.
0 commit comments