mirror of
https://github.com/nasa/openmct.git
synced 2025-06-14 13:18:15 +00:00
[Tests] Separate out page launcher
WTD-1287
This commit is contained in:
@ -1,23 +1,19 @@
|
||||
//TODO Add filter for duplications/
|
||||
describe('Create Button', function() {
|
||||
beforeEach(function() {
|
||||
browser.ignoreSynchronization = true;
|
||||
browser.get('http://localhost:1984/warp/');
|
||||
browser.sleep(2000); // 10 seconds
|
||||
});
|
||||
beforeEach(require('../common/Launch'));
|
||||
//it('should hava title "My Items"', function(){
|
||||
// expect(browser.getTitle()).toEqual('My Items');
|
||||
//});
|
||||
it('should find create menu to be invisible', function(){
|
||||
expect(element(by.css('[ng-show="createController.isActive()"]')).isDisplayed()).toBeFalsy();
|
||||
expect(element(by.css('[ng-show="createController.isActive()"]')).isDisplayed()).toBeFalsy();
|
||||
});
|
||||
it('should find create menu only visable after the create button clicked', function(){
|
||||
element(by.css('[ng-click="createController.toggle()"]')).click();
|
||||
expect(element(by.css('[ng-show="createController.isActive()"]')).isDisplayed()).toBeTruthy();
|
||||
element(by.css('[ng-click="createController.toggle()"]')).click();
|
||||
expect(element(by.css('[ng-show="createController.isActive()"]')).isDisplayed()).toBeTruthy();
|
||||
});
|
||||
it('should find create menu only visable after the create button clicked', function(){
|
||||
element(by.css('[ng-click="createController.toggle()"]')).click();
|
||||
expect(element(by.css('[ng-show="createController.isActive()"]')).isDisplayed()).toBeTruthy();
|
||||
element(by.css('[ng-click="createController.toggle()"]')).click();
|
||||
expect(element(by.css('[ng-show="createController.isActive()"]')).isDisplayed()).toBeTruthy();
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user