Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🏗 Remove --headless mode from gulp visual-diff task #18510

Merged

Conversation

danielrozenberg
Copy link
Member

Non-headless mode no longer works as expected with the introduction of parallelization in PR #17139, because all the tabs share the same viewport size in non-headless mode. If a specific test resizes its viewport, it affects other tests unexpectedly.

@@ -106,7 +106,6 @@ Command | Descri
`gulp todos:find-closed` | Find `TODO`s in code for issues that have been closed.
`gulp visual-diff` | Runs all visual diff tests on local Chrome. Requires `PERCY_PROJECT` and `PERCY_TOKEN` to be set as environment variables or passed to the task with `--percy_project` and `--percy_token`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... on a headless instance of local Chrome

@@ -255,11 +254,6 @@ Note that if you drop the `--nobuild` flag, `gulp visual-diff` will run `gulp bu

The build will use the Percy credentials set via environment variables in the previous step, and run the tests on your local install of Chrome. You can see the results at `https://percy.io/<org>/<project>`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... your local install of Chrome in headless mode

@danielrozenberg danielrozenberg merged commit ab14b78 into ampproject:master Oct 3, 2018
@danielrozenberg danielrozenberg deleted the visual-diff-no-headless branch October 3, 2018 14:51
torch2424 pushed a commit to torch2424/amphtml that referenced this pull request Oct 10, 2018
…8510)

* 🏗 Remove `--headless` mode from `gulp visual-diff` task

* Remove `--headless` when running visual diff tests in PR checks

* Update TESTING.md to remove references to `--headless`

* Address @rsimha's comments
Enriqe pushed a commit to Enriqe/amphtml that referenced this pull request Nov 28, 2018
…8510)

* 🏗 Remove `--headless` mode from `gulp visual-diff` task

* Remove `--headless` when running visual diff tests in PR checks

* Update TESTING.md to remove references to `--headless`

* Address @rsimha's comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants