openmct/protractor/create/CreateButton.js
2015-07-30 12:29:02 -07:00

20 lines
975 B
JavaScript

//TODO Add filter for duplications/
describe('Create Button', function() {
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();
});
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();
});
});