Skip to content

Commit 9dab05b

Browse files
committed
fix tests
1 parent e1b0715 commit 9dab05b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

e2e/components/fullscreen/fullscreen.e2e.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@ describe('fullscreen', () => {
1010
element(by.id('fullscreen')).click();
1111
element(by.id('dialog')).click();
1212

13-
overlayInFullscreen.then(isPresent => {
13+
overlayInFullscreen().then(isPresent => {
1414
expect(isPresent).toBe(true);
1515
element(by.id('exitfullscreenindialog')).click();
16-
overlayInBody.then(isPresent => {
16+
overlayInBody().then(isPresent => {
1717
expect(isPresent).toBe(true);
1818
});
1919
});
2020
});
2121

2222
it('should open a dialog inside the document body and move it to a fullscreen element', () => {
2323
element(by.id('dialog')).click();
24-
overlayInBody.then(isPresent => {
24+
overlayInBody().then(isPresent => {
2525
expect(isPresent).toBe(true);
2626
element(by.id('fullscreenindialog')).click();
27-
overlayInFullscreen.then(isPresent => {
27+
overlayInFullscreen().then(isPresent => {
2828
expect(isPresent).toBe(true);
2929
element(by.id('exitfullscreenindialog')).click();
30-
browser.isElementPresent(by.css('body > .md-overlay-container')).then(isPresent => {
30+
overlayInBody().then(isPresent => {
3131
expect(isPresent).toBe(true);
3232
});
3333
});

0 commit comments

Comments
 (0)