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