mirror of
https://github.com/nasa/openmct.git
synced 2025-03-11 06:54:01 +00:00
24 lines
1.1 KiB
JavaScript
24 lines
1.1 KiB
JavaScript
|
//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
|
||
|
});
|
||
|
//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();
|
||
|
});
|
||
|
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();
|
||
|
});
|
||
|
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();
|
||
|
});
|
||
|
|
||
|
});
|