Created
April 22, 2019 17:20
-
-
Save PrashantBhatasana/cdf396e041310c2e21b857c5a16e4788 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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