Skip to content

Commit 7dafa09

Browse files
committed
fix typings
1 parent dee02ff commit 7dafa09

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

e2e/components/fullscreen/fullscreen.e2e.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import {browser, by, element, Key, ProtractorBy} from 'protractor';
2+
13
describe('fullscreen', () => {
24
beforeEach(() => browser.get('/fullscreen'));
35

@@ -10,24 +12,24 @@ describe('fullscreen', () => {
1012
element(by.id('fullscreen')).click();
1113
element(by.id('dialog')).click();
1214

13-
overlayInFullscreen().then(isPresent => {
15+
overlayInFullscreen().then((isPresent: boolean) => {
1416
expect(isPresent).toBe(true);
1517
element(by.id('exitfullscreenindialog')).click();
16-
overlayInBody().then(isPresent => {
18+
overlayInBody().then((isPresent: boolean) => {
1719
expect(isPresent).toBe(true);
1820
});
1921
});
2022
});
2123

2224
it('should open a dialog inside the document body and move it to a fullscreen element', () => {
2325
element(by.id('dialog')).click();
24-
overlayInBody().then(isPresent => {
26+
overlayInBody().then((isPresent: boolean) => {
2527
expect(isPresent).toBe(true);
2628
element(by.id('fullscreenindialog')).click();
27-
overlayInFullscreen().then(isPresent => {
29+
overlayInFullscreen().then((isPresent: boolean) => {
2830
expect(isPresent).toBe(true);
2931
element(by.id('exitfullscreenindialog')).click();
30-
overlayInBody().then(isPresent => {
32+
overlayInBody().then((isPresent: boolean) => {
3133
expect(isPresent).toBe(true);
3234
});
3335
});

0 commit comments

Comments
 (0)