Skip to content

Ensure Stories preview in e2e tests meets minimum viewport requirements.#3797

Merged
westonruter merged 1 commit intodevelopfrom
fix/stories-e2e-test-failures
Nov 20, 2019
Merged

Ensure Stories preview in e2e tests meets minimum viewport requirements.#3797
westonruter merged 1 commit intodevelopfrom
fix/stories-e2e-test-failures

Conversation

@kopepasah
Copy link
Copy Markdown
Contributor

When running the e2e tests interactively, there was a consistent failure of the amp-story preview page which seems to be causing an issue with the testing suite.

In short, when AMP detects that the screen is of a specific larger size, it uses the desktop version of Stories, which requires a minimum width of 1024px and height of 550px. When this viewport requirement is not met, AMP displays an notice to the user to adjust the size of the viewport, which may have been causing those errors.

This pull request sets the Stories preview to the minimum AMP requirements (for desktop).

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Signed the Google CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants