12 lines
227 B
TypeScript
12 lines
227 B
TypeScript
|
import {browser} from "protractor";
|
||
|
|
||
|
export class AbstractPage {
|
||
|
|
||
|
baseUrl: string = browser.baseUrl + '/';
|
||
|
|
||
|
validateCurrentUrl(urlEnding: string) {
|
||
|
expect(browser.getCurrentUrl()).toBe(this.baseUrl + urlEnding);
|
||
|
}
|
||
|
|
||
|
}
|