mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore(e2e): update to latest protractor version (#2608)
* chore(e2e): update to latest protractor version * Updates to the latest Protractor version, which now uses Selenium V3 * The new types for Protractor v5 include the fix for the missing `chord` function (See https://github.com/DefinitelyTyped/DefinitelyTyped/commit/123690bb2e0f9dac2371084369a8ecf8976cbb34) * Methods like `innerHtml` have been removed in Protractor v5 (https://github.com/angular/protractor/blob/master/CHANGELOG.md) * Test later chromedriver version
This commit is contained in:
committed by
tinayuangao
parent
7727387755
commit
4ab6f30f50
@@ -102,6 +102,6 @@ describe('dialog', () => {
|
||||
|
||||
// TODO(crisbeto): should be moved to a common util. copied from the menu e2e setup.
|
||||
function expectFocusOn(el: any): void {
|
||||
expect(browser.driver.switchTo().activeElement().getInnerHtml()).toBe(el.getInnerHtml());
|
||||
expect(browser.driver.switchTo().activeElement().getId()).toBe(el.getId());
|
||||
}
|
||||
});
|
||||
|
||||
@@ -39,8 +39,7 @@ export class MenuPage {
|
||||
|
||||
// TODO(kara): move to common testing utility
|
||||
expectFocusOn(el: any): void {
|
||||
expect(browser.driver.switchTo().activeElement().getInnerHtml())
|
||||
.toBe(el.getInnerHtml());
|
||||
expect(browser.driver.switchTo().activeElement().getId()).toBe(el.getId());
|
||||
}
|
||||
|
||||
expectMenuPresent(expected: boolean) {
|
||||
|
||||
Reference in New Issue
Block a user