UNPKG

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 (15 loc) 443 B
/* * Use the Page Object pattern to define the page under test. * See docs/coding-guide/e2e-tests.md for more info. */ import { browser, element, by } from 'protractor'; export class AppSharedPage { async navigateAndSetLanguage() { // Forces default language await this.navigateTo(); await browser.executeScript(() => localStorage.setItem('language', 'en-US')); } async navigateTo() { await browser.get('/'); } }