Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit e44cd8b

Browse files
committed
fix(e2e): fix integration tests
override webdriver-manager version of protractor - to a newer version that supports Chrome 78
1 parent a13fa83 commit e44cd8b

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

e2e/src/app.e2e-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ describe('workspace-project App', () => {
99

1010
it('should display welcome message', () => {
1111
page.navigateTo();
12-
expect(page.getParagraphText()).toEqual('Welcome to dev-demo!');
12+
expect(page.getParagraphText()).toEqual('DevIntent Demo App');
1313
});
1414
});

e2e/src/app.po.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ export class AppPage {
66
}
77

88
getParagraphText() {
9-
return element(by.css('dev-root h1')).getText();
9+
return element(by.css('dev-root .mat-toolbar a')).getText();
1010
}
1111
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"build:schematics": "tsc -p ./projects/schematics/tsconfig.json",
1919
"publish:lib": "npm run lint && npm run build:lib && npm publish ./dist/dev --access public",
2020
"publish:schematics": "npm run build:schematics && npm publish ./projects/schematics --access public",
21+
"postinstall": "cd ./node_modules/protractor && npm i webdriver-manager@latest",
2122
"deploy": "ng deploy",
2223
"test": "ng test && npm run test:schematics",
2324
"test:schematics": "npm run build:schematics && jasmine ./projects/schematics/src/**/*_spec.js",

0 commit comments

Comments
 (0)