Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { TypeOperationPage } from './typeoperations.po';
- import { browser, logging } from 'protractor';
- import { protractor } from 'protractor/built/ptor';
- describe('workspace-project App', () => {
- let page: TypeOperationPage;
- beforeEach(() => {
- page = new TypeOperationPage();
- });
- it('should display type operation name creation message error', () => {
- page.navigateTo();
- page.getCreateButton().click();
- page.getNameTextbox().sendKeys("")
- page.getAddButton().click();
- expect(page.getCreationMessage()).toEqual('Creation Error: Type Operation name can\'t be empty!');
- });
- it('should display type operation time creation message error', () => {
- page.navigateTo();
- page.getCreateButton().click();
- page.getNameTextbox().sendKeys("E2E Type Operation");
- page.getHourTextbox().sendKeys("-2");
- page.getMinuteTextbox().sendKeys("1");
- page.getAddButton().click();
- expect(page.getCreationMessage()).toEqual('Creation Error: Type Operation Hours can\'t be negative!');
- });
- it('should display type operation tool creation message error', () => {
- page.navigateTo();
- page.getCreateButton().click();
- page.getNameTextbox().sendKeys("E2E Type Operation");
- page.getHourTextbox().sendKeys("2");
- page.getMinuteTextbox().sendKeys("1");
- page.getAddButton().click();
- expect(page.getCreationMessage()).toEqual('Creation Error: Must select a Type Operation Tool!');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement