diff options
Diffstat (limited to 'node_modules/ng-dialog/tests/protractor/close.js')
-rw-r--r-- | node_modules/ng-dialog/tests/protractor/close.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/node_modules/ng-dialog/tests/protractor/close.js b/node_modules/ng-dialog/tests/protractor/close.js new file mode 100644 index 0000000000..6fa282ed98 --- /dev/null +++ b/node_modules/ng-dialog/tests/protractor/close.js @@ -0,0 +1,18 @@ +describe('ngDialog open', function() { + beforeEach(function() { + browser.get('http://localhost:3000/example/index.html'); + }); + + it('should open from functions', function() { + element(by.css('#via-service')).click(); + + var EC = protractor.ExpectedConditions; + browser.wait(EC.visibilityOf(element(by.css('.ngdialog'))), 5000); + + var plot0 = element(by.css('.ngdialog-overlay')); + + element(by.css('.close-this-dialog')).click(); + + browser.wait(EC.not(EC.presenceOf(element(by.css('.ngdialog')))), 5000); + }); +}); |