angular4-testing/project-manager/e2e/page-object/abstract-page.po.ts

12 lines
227 B
TypeScript
Raw Normal View History

2017-04-14 03:57:42 +02:00
import {browser} from "protractor";
export class AbstractPage {
baseUrl: string = browser.baseUrl + '/';
validateCurrentUrl(urlEnding: string) {
expect(browser.getCurrentUrl()).toBe(this.baseUrl + urlEnding);
}
}