blob: ea2a196200be00cae3c2a6e8eb37bb50848d5956 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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);
element(by.css('.data-passed-through')).getText()
.then(function(text) {
expect(text).toBe('Data passed through: from a service');
});
});
it('should define specific width through a property js', function() {
element(by.css('#js-width')).click();
expect(element(by.css('.ngdialog-content')).getCssValue('width')).toBe('650px');
});
it('should define custom height through a js property', function() {
element(by.css('#js-height')).click();
expect(element(by.css('.ngdialog-content')).getCssValue('height')).toBe('400px');
});
});
|