openmct/protractor/create/CreateButton.js

20 lines
975 B
JavaScript
Raw Normal View History

2015-07-29 19:55:15 +00:00
//TODO Add filter for duplications/
describe('Create Button', function() {
beforeEach(require('../common/Launch'));
2015-07-29 19:55:15 +00:00
//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();
2015-07-29 19:55:15 +00:00
});
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();
2015-07-29 19:55:15 +00:00
});
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();
2015-07-29 19:55:15 +00:00
});
2015-07-29 19:55:15 +00:00
});