Skip to content

Commit 39ce8a8

Browse files
author
Igor Mucsicska
committed
Update tests
1 parent 627c3e7 commit 39ce8a8

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

packages/nightwatch-api/e2e-test-env/nightwatch.conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const path = require('path');
44

55
module.exports = {
66
silent: !process.env.NIGHTWATCH_VERBOSE,
7+
disable_colors: true,
78
src_folders: ['.'],
89
page_objects_path: path.resolve(__dirname, 'page-objects'),
910
globals_path: path.resolve(__dirname, 'globals/globals.json'),

packages/nightwatch-api/e2e-test/assertion.test.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ describe('Assertion features', () => {
9898
} catch (err) {
9999
errorMessage = err.message;
100100
}
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"');
104102
});
105103

106104
it('Handles nested page object expect.element failure', async () => {
@@ -116,9 +114,7 @@ describe('Assertion features', () => {
116114
} catch (err) {
117115
errorMessage = err.message;
118116
}
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"');
122118
});
123119

124120
it('Handles page object nested sections expect.element failure', async () => {
@@ -153,6 +149,6 @@ describe('Assertion features', () => {
153149
} catch (err) {
154150
errorMessage = err.message;
155151
}
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"');
157153
});
158154
});

0 commit comments

Comments
 (0)