mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
894c1c5f10
Apply prettier formatting to integration directories PR Close #54653
20 lines
444 B
TypeScript
20 lines
444 B
TypeScript
import {browser, by, element, protractor} from 'protractor';
|
|
|
|
export class AppPage {
|
|
navigateTo() {
|
|
return browser.get('/');
|
|
}
|
|
|
|
getParagraphText() {
|
|
return element(by.css('app-root h1')).getText();
|
|
}
|
|
|
|
getLazyLoadedText() {
|
|
const el = element(by.css('app-root lazy-component'));
|
|
return browser.wait(protractor.ExpectedConditions.presenceOf(el)).then(
|
|
() => el.getText(),
|
|
(err) => el.getText(),
|
|
);
|
|
}
|
|
}
|