2015-10-13 03:29:13 -04:00
|
|
|
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
|
2015-05-04 21:34:06 -04:00
|
|
|
|
2015-05-29 17:33:54 -04:00
|
|
|
describe('md-dialog', function() {
|
2015-10-09 18:25:17 -04:00
|
|
|
var url = 'playground/src/material/dialog/index.html';
|
2015-05-04 21:34:06 -04:00
|
|
|
|
|
|
|
beforeEach(() => { browser.get(url); });
|
2015-05-29 17:33:54 -04:00
|
|
|
afterEach(verifyNoBrowserErrors);
|
2015-05-04 21:34:06 -04:00
|
|
|
|
2016-02-17 19:17:56 -05:00
|
|
|
xit('should open a dialog', function() {
|
2015-05-04 21:34:06 -04:00
|
|
|
var openButton = element(by.id('open'));
|
|
|
|
openButton.click();
|
|
|
|
|
|
|
|
var dialog = element(by.css('.md-dialog'));
|
2015-09-01 11:52:54 -04:00
|
|
|
|
|
|
|
expect(dialog.isPresent()).toEqual(true);
|
|
|
|
|
2015-05-04 21:34:06 -04:00
|
|
|
dialog.sendKeys(protractor.Key.ESCAPE);
|
|
|
|
|
2015-05-29 17:33:54 -04:00
|
|
|
expect(element(by.css('.md-dialog')).isPresent()).toEqual(false);
|
2015-05-04 21:34:06 -04:00
|
|
|
});
|
|
|
|
});
|