generator-ngx-rocket
Version:
Extensible Angular 13+ enterprise-grade project generator based on angular-cli with best practices from the community. Includes PWA/Cordova/Electron support, coding guides and more!
19 lines (16 loc) • 424 B
text/typescript
/*
* Use the Page Object pattern to define the page under test.
* See docs/coding-guide/e2e-tests.md for more info.
*/
export class HomePage {
url = '/home';
get welcomeText() {
<% if (props.ui === 'ionic') { -%>
return cy.get('app-root ion-card-title');
<% } else if (props.ui === 'material') { -%>
return cy.get('app-root mat-card-title');
<% } else { -%>
return cy.get('app-root h1');
<% } -%>
}
}