mirror of
https://github.com/nasa/openmct.git
synced 2025-06-13 04:38:15 +00:00
[Tests] Separate out page launcher
WTD-1287
This commit is contained in:
@ -8,21 +8,17 @@ describe('Create Activity', function() {
|
||||
var ITEM_TYPE = "activity";
|
||||
var ITEM_MENU_GLYPH = 'a\nActivity';
|
||||
var ITEM_GRID_SELECT = 'P\na\nActivity\n0 Items';
|
||||
beforeEach(function() {
|
||||
browser.ignoreSynchronization = true;
|
||||
browser.get('http://localhost:1984/warp/');
|
||||
browser.sleep(2000); // 2 seconds
|
||||
});
|
||||
beforeEach(require('../common/Launch'));
|
||||
it('should Create new Activity', function(){
|
||||
//button.click()
|
||||
browser.wait(function() {
|
||||
createClass.createButton().click();
|
||||
return true;
|
||||
createClass.createButton().click();
|
||||
return true;
|
||||
}).then(function (){
|
||||
var folder = createClass.selectNewItem(ITEM_TYPE)
|
||||
expect(folder.getText()).toEqual([ ITEM_MENU_GLYPH ]);
|
||||
browser.sleep(1000);
|
||||
folder.click()
|
||||
folder.click()
|
||||
}).then(function() {
|
||||
browser.wait(function () {
|
||||
return element.all(by.model('ngModel[field]')).isDisplayed();
|
||||
@ -34,7 +30,7 @@ describe('Create Activity', function() {
|
||||
var item = editItemClass.SelectItem(ITEM_GRID_SELECT);
|
||||
expect(item.count()).toBe(1);
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user