File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ const path = require('path');
4
4
5
5
module . exports = {
6
6
silent : ! process . env . NIGHTWATCH_VERBOSE ,
7
+ disable_colors : true ,
7
8
src_folders : [ '.' ] ,
8
9
page_objects_path : path . resolve ( __dirname , 'page-objects' ) ,
9
10
globals_path : path . resolve ( __dirname , 'globals/globals.json' ) ,
Original file line number Diff line number Diff line change @@ -98,9 +98,7 @@ describe('Assertion features', () => {
98
98
} catch ( err ) {
99
99
errorMessage = err . message ;
100
100
}
101
- expect ( errorMessage ) . toContain (
102
- 'Expected element <Element [name=@result]> text to contain: "10"'
103
- ) ;
101
+ expect ( errorMessage ) . toContain ( 'Expected element <#result-value> text to contain: "10"' ) ;
104
102
} ) ;
105
103
106
104
it ( 'Handles nested page object expect.element failure' , async ( ) => {
@@ -116,9 +114,7 @@ describe('Assertion features', () => {
116
114
} catch ( err ) {
117
115
errorMessage = err . message ;
118
116
}
119
- expect ( errorMessage ) . toContain (
120
- 'Expected element <Element [name=@result]> text to contain: "10"'
121
- ) ;
117
+ expect ( errorMessage ) . toContain ( 'Expected element <#result-value> text to contain: "10"' ) ;
122
118
} ) ;
123
119
124
120
it ( 'Handles page object nested sections expect.element failure' , async ( ) => {
@@ -153,6 +149,6 @@ describe('Assertion features', () => {
153
149
} catch ( err ) {
154
150
errorMessage = err . message ;
155
151
}
156
- expect ( errorMessage ) . toContain ( 'Expected element <Element [name=@ result] > text to equal: "9"' ) ;
152
+ expect ( errorMessage ) . toContain ( 'Expected element <# result-value > text to equal: "9"' ) ;
157
153
} ) ;
158
154
} ) ;
You can’t perform that action at this time.
0 commit comments