Skip to content

Commit 43ceda9

Browse files
author
Evgeny Barabanov
committed
Fix title element path
1 parent 13191bd commit 43ceda9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

e2e/native-strings.e2e-spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ chai.use(chaiAsPromised);
1010
function containsString(app: Application, str: string) {
1111
it(`Contains ${str}`,
1212
() => {
13-
return app.client.waitForExist('ul li h2').then(() => app.client.getText('ul li h2').then(list => {
13+
return app.client.waitForExist('ul li h2 a').then(() => app.client.getText('ul li h2 a').then(list => {
1414
const index = list.indexOf(str);
1515
return index > -1 ? list[index] : '';
1616
}).should.eventually.equal(str));
@@ -19,6 +19,6 @@ function containsString(app: Application, str: string) {
1919
}
2020

2121
SpectronUtils.describe('Native strings', app => {
22-
containsString(app, 'c++ .node string');
23-
containsString(app, 'c++ precompiled library string');
22+
containsString(app, 'The link is provided by Node addon (using nan)');
23+
containsString(app, 'The link is provided by precompiled native library (using ffi)');
2424
});

0 commit comments

Comments
 (0)