Skip to content

Commit

Permalink
Fix a flake on media change (#32945)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Voytenko committed Feb 26, 2021
1 parent bcee2d5 commit fe2d7dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/test-amp-img.js
Expand Up @@ -64,7 +64,7 @@ describe
);
});

it.skip('should respect media queries', async () => {
it('should respect media queries', async () => {
await fixture.awaitEvent(AmpEvents.LOAD_START, 3);
await new Promise((res) => setTimeout(res, 1));

Expand All @@ -83,7 +83,7 @@ describe
fixture.iframe.width = 600;
fixture.win.dispatchEvent(createCustomEvent(fixture.win, 'resize', null));

await fixture.awaitEvent(AmpEvents.LOAD_START, 4);
await largeScreen.whenLoaded();

expect(smallScreen.className).to.match(/i-amphtml-hidden-by-media-query/);
expect(largeScreen.className).to.not.match(
Expand Down

0 comments on commit fe2d7dd

Please sign in to comment.