Skip to content

Commit 6f85728

Browse files
committed
chore: more test failures
1 parent bd01659 commit 6f85728

File tree

2 files changed

+213
-154
lines changed

2 files changed

+213
-154
lines changed

src/lib/select/select.spec.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,6 +1431,15 @@ describe('MdSelect', () => {
14311431
// Scroll the select into view
14321432
setScrollTop(1700);
14331433

1434+
// In the iOS simulator (BrowserStack & SauceLabs), adding the content to the
1435+
// body causes karma's iframe for the test to stretch to fit that content once we attempt to
1436+
// scroll the page. Setting width / height / maxWidth / maxHeight on the iframe does not
1437+
// successfully constrain its size. As such, skip assertions in environments where the
1438+
// window size has changed since the start of the test.
1439+
if (window.innerHeight > startingWindowHeight) {
1440+
return;
1441+
}
1442+
14341443
trigger.click();
14351444
fixture.detectChanges();
14361445

@@ -1450,6 +1459,15 @@ describe('MdSelect', () => {
14501459
// Scroll the select into view
14511460
setScrollTop(1700);
14521461

1462+
// In the iOS simulator (BrowserStack & SauceLabs), adding the content to the
1463+
// body causes karma's iframe for the test to stretch to fit that content once we attempt to
1464+
// scroll the page. Setting width / height / maxWidth / maxHeight on the iframe does not
1465+
// successfully constrain its size. As such, skip assertions in environments where the
1466+
// window size has changed since the start of the test.
1467+
if (window.innerHeight > startingWindowHeight) {
1468+
return;
1469+
}
1470+
14531471
trigger.click();
14541472
fixture.detectChanges();
14551473

@@ -1522,6 +1540,15 @@ describe('MdSelect', () => {
15221540
// Scroll the select so that it has insufficient space to open above the trigger
15231541
setScrollTop(1950);
15241542

1543+
// In the iOS simulator (BrowserStack & SauceLabs), adding the content to the
1544+
// body causes karma's iframe for the test to stretch to fit that content once we attempt to
1545+
// scroll the page. Setting width / height / maxWidth / maxHeight on the iframe does not
1546+
// successfully constrain its size. As such, skip assertions in environments where the
1547+
// window size has changed since the start of the test.
1548+
if (window.innerHeight > startingWindowHeight) {
1549+
return;
1550+
}
1551+
15251552
trigger.click();
15261553
fixture.detectChanges();
15271554

0 commit comments

Comments
 (0)