Skip to content

Instantly share code, notes, and snippets.

@PrashantBhatasana
Created April 22, 2019 17:20
Show Gist options
  • Save PrashantBhatasana/cdf396e041310c2e21b857c5a16e4788 to your computer and use it in GitHub Desktop.
Save PrashantBhatasana/cdf396e041310c2e21b857c5a16e4788 to your computer and use it in GitHub Desktop.
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/* global browser, By, element, expect, By, ptor, protractor, driver */
describe('Service Hub CMS', function () {
it('should find correct title', function () {
expect(browser.driver.getTitle()).toEqual('Home | Service Hub CMS');
});
it('Home', function () {
element(by.model('searchQuery')).sendKeys('leave').then(function () {
console.log('Search Box');
});
element(by.model('Mail.Sidebar')).click().then(function () {
console.log('Sidebar selection Successful');
browser.sleep(2000);
element(by.id('id-menu3')).click().then(function () {
console.log('Add leave screen');
browser.sleep(2000);
});
expect(browser.driver.getTitle()).toEqual('Leave | Service Hub CMS');
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment