File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 1- import Locator from '../../locator.js'
21/**
32 * Uses to throw readable element not found error
43 * Stringify object's locators
@@ -12,7 +11,7 @@ class ElementNotFound {
1211 if ( typeof locator === 'object' ) {
1312 locator = JSON . stringify ( locator ) ;
1413 }
15- throw new Error ( `${ prefixMessage } "${ ( new Locator ( locator ) ) } " ${ postfixMessage } ` ) ;
14+ throw new Error ( `${ prefixMessage } "${ locator } " ${ postfixMessage } ` ) ;
1615 }
1716}
1817
Original file line number Diff line number Diff line change @@ -5,12 +5,10 @@ const { expect } = chai
55
66
77
8- import FileSystem from '../../../ lib/helper/FileSystem.js'
8+ import FileSystem from '../../lib/helper/FileSystem.js'
99
1010const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
1111global . codecept_dir = path . join ( __dirname , '/..' )
12- import * as codeceptjs from '../../../lib/index.js'
13- global . codeceptjs = codeceptjs
1412
1513let fs
1614
Original file line number Diff line number Diff line change 11
2- import ElementNotFound from '../../../ lib/helper/errors/ElementNotFound.js'
2+ import ElementNotFound from '../../lib/helper/errors/ElementNotFound.js'
33import chai from 'chai'
44const { expect } = chai
55
You can’t perform that action at this time.
0 commit comments