Skip to content

Commit 407f4a1

Browse files
committed
Add message for xpectations.
1 parent df75bc1 commit 407f4a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

e2e/components/fullscreen/fullscreen.e2e.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ describe('fullscreen', () => {
2727

2828
/** Expects the overlay container to be inside of the body element. */
2929
function expectOverlayInBody() {
30-
expect(browser.isElementPresent(by.css('body > .cdk-overlay-container'))).toBe(true);
30+
expect(browser.isElementPresent(by.css('body > .cdk-overlay-container')))
31+
.toBe(true, 'Expected the overlay container to be inside of the body.');
3132
}
3233

3334
/** Expects the overlay container to be in fullscreen mode. */
3435
function expectOverlayInFullscreen() {
3536
expect(browser.isElementPresent(by.css('#fullscreen-pane > .cdk-overlay-container')))
36-
.toBe(true);
37+
.toBe(true, 'Expected the overlay container to be in fullscreen mode.');
3738
}
3839

3940
});

0 commit comments

Comments
 (0)