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

Infrastructure: Make 'npm run regression' run as headless by default #1888

Merged
merged 3 commits into from
Oct 29, 2021

Conversation

zcorpan
Copy link
Member

@zcorpan zcorpan commented May 5, 2021

Use 'DEBUG=1 npm run regression' to opt-in to non-headless.

Fixes #1885


These docs should be updated when merging this.

@zcorpan zcorpan requested a review from jesdaigle May 10, 2021 22:21
@zcorpan
Copy link
Member Author

zcorpan commented May 17, 2021

We could add a message when running npm run regression to inform about the DEBUG=1 flag, so it's more discoverable.

@zcorpan zcorpan force-pushed the bocoup/ava-headless branch from 4c0aa24 to dba7a53 Compare May 25, 2021 13:26
@zcorpan
Copy link
Member Author

zcorpan commented May 25, 2021

test/tests/menu-button_links.js failed in CI. I couldn't reproduce locally. I've now rebased this on latest main to see if it still fails.

@zcorpan
Copy link
Member Author

zcorpan commented May 26, 2021

Rebase this PR on main when #1921 is merged.

@zcorpan zcorpan force-pushed the bocoup/ava-headless branch from dba7a53 to dbfd4cd Compare June 7, 2021 20:02
@zcorpan
Copy link
Member Author

zcorpan commented Jun 7, 2021

Rebased.

@mcking65 mcking65 added the Infrastructure Related to maintaining task force and repo operations, processes, systems, documentation label Oct 18, 2021
@mcking65 mcking65 changed the title Make 'npm run regression' run as headless by default Infrastructure: Make 'npm run regression' run as headless by default Oct 18, 2021
@zcorpan zcorpan force-pushed the bocoup/ava-headless branch from dbfd4cd to 4ee5298 Compare October 29, 2021 14:40
@@ -9,7 +9,7 @@ const queryElement = require('./util/queryElement');
const queryElements = require('./util/queryElements');

let session, geckodriver;
const firefoxArgs = process.env.CI ? ['-headless'] : [];
const firefoxArgs = process.env.DEBUG ? [] : ['-headless'];
Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense! Should this get documented somewhere, or is that already done on the wiki?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not documented yet, but the OP says to change the wiki when merging.

(I think it would be better to have the documentation in the tree, so PRs like this one can update the documentation in the PR, and people can review the documentation changes...)

Copy link
Contributor

Choose a reason for hiding this comment

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

Right, it would be flipping the current instructions around CI=1 npm run regression

@jesdaigle jesdaigle merged commit 3b62c9c into main Oct 29, 2021
@jesdaigle jesdaigle deleted the bocoup/ava-headless branch October 29, 2021 20:21
@zcorpan
Copy link
Member Author

zcorpan commented Oct 29, 2021

Thanks @jesdaigle

I've updated the wiki and emailed public-aria-practices@

@mcking65
Copy link
Contributor

@zcorpan wrote:

@zcorpan wrote:>(I think it would be better to have the documentation in the tree, so PRs like this one can update the documentation in the PR, and people can review the documentation changes...)

This might fit into the redesign. Perhaps the about page in the redesign could be a collection of cards like the patterns and fundamentals page and we could have cards for various aspects of the contributor documentation that open to pages for topics, such as regression tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Related to maintaining task force and repo operations, processes, systems, documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default to running AVA as headless?
4 participants