1- import webdriver from 'selenium-webdriver'
1+ import { By , until } from 'selenium-webdriver'
22import phantomDriver from './customPhantomDriver'
3- import test from 'selenium-webdriver/testing/'
3+ import { describe , before , after , it } from 'selenium-webdriver/testing/'
44import assert from 'selenium-webdriver/testing/assert.js'
55import config from './config.js'
6- import until from 'selenium-webdriver/lib/until'
7-
8- let By = webdriver . By
9-
106import { executeFunctionInPage , waitUntilMapReady } from './testUtils'
117
128// globals in browser
@@ -24,22 +20,22 @@ function waitUntilSetFeatureLayers (driver, featureLayers) {
2420 . then ( waitUntilMapReady ( driver ) )
2521}
2622
27- test . describe ( 'LayerSelector' , function ( ) {
23+ describe ( 'LayerSelector' , function ( ) {
2824 this . timeout ( config . mochaTimeout )
2925 let driver
3026
31- test . before ( function ( ) {
27+ before ( function ( ) {
3228 driver = phantomDriver ( )
3329 driver . manage ( ) . window ( ) . setSize ( 1200 , 800 )
3430 driver . manage ( ) . timeouts ( ) . implicitlyWait ( config . seleniumTimeout )
3531 driver . manage ( ) . timeouts ( ) . pageLoadTimeout ( config . seleniumTimeout )
3632 } )
3733
38- test . after ( function ( ) {
34+ after ( function ( ) {
3935 driver . quit ( )
4036 } )
4137
42- test . it ( 'should show a layerSelector' , function ( done ) {
38+ it ( 'should show a layerSelector' , function ( done ) {
4339 driver . get ( config . testClient ) . then (
4440 waitUntilMapReady ( driver )
4541 ) . then (
@@ -62,7 +58,7 @@ test.describe('LayerSelector', function () {
6258 )
6359 } )
6460
65- test . it ( 'should show a category button' , function ( done ) {
61+ it ( 'should show a category button' , function ( done ) {
6662 driver . get ( config . testClient ) . then (
6763 waitUntilMapReady ( driver )
6864 ) . then (
0 commit comments