24 lines
663 B
TypeScript
24 lines
663 B
TypeScript
import { LoginPageObject } from './login.po';
|
|
|
|
describe('Login Page', () => {
|
|
let page: LoginPageObject;
|
|
|
|
beforeEach(() => {
|
|
page = new LoginPageObject();
|
|
page.navigateTo();
|
|
});
|
|
|
|
it('should have a header saying login', () => {
|
|
expect(page.getLoginHeaderText()).toEqual('Login');
|
|
});
|
|
|
|
it('should have a username box of type text', () => {
|
|
expect(page.isUsernameFieldPresent()).toBeTruthy();
|
|
expect(page.getUsernameFieldType()).toBe('text');
|
|
});
|
|
|
|
it('should have a password box of type password', () => {
|
|
expect(page.isPasswordFieldPresent()).toBeTruthy();
|
|
expect(page.getPasswordFieldType()).toBe('password');
|
|
});
|
|
});
|