Skip to content

Commit

Permalink
fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
quanterion committed Dec 20, 2016
1 parent f1daea3 commit 29f6dc6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions e2e/components/fullscreen/fullscreen.e2e.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {browser, by, element, Key, ProtractorBy} from 'protractor';

describe('fullscreen', () => {
beforeEach(() => browser.get('/fullscreen'));

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

overlayInFullscreen().then(isPresent => {
overlayInFullscreen().then((isPresent: boolean) => {
expect(isPresent).toBe(true);
element(by.id('exitfullscreenindialog')).click();
overlayInBody().then(isPresent => {
overlayInBody().then((isPresent: boolean) => {
expect(isPresent).toBe(true);
});
});
});

it('should open a dialog inside the document body and move it to a fullscreen element', () => {
element(by.id('dialog')).click();
overlayInBody().then(isPresent => {
overlayInBody().then((isPresent: boolean) => {
expect(isPresent).toBe(true);
element(by.id('fullscreenindialog')).click();
overlayInFullscreen().then(isPresent => {
overlayInFullscreen().then((isPresent: boolean) => {
expect(isPresent).toBe(true);
element(by.id('exitfullscreenindialog')).click();
overlayInBody().then(isPresent => {
overlayInBody().then((isPresent: boolean) => {
expect(isPresent).toBe(true);
});
});
Expand Down

0 comments on commit 29f6dc6

Please sign in to comment.