Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Allow waitUntil param to take options #2382

Merged
merged 3 commits into from
Aug 23, 2022
Merged

Allow waitUntil param to take options #2382

merged 3 commits into from
Aug 23, 2022

Conversation

emiryy
Copy link
Contributor

@emiryy emiryy commented Aug 19, 2022

Description

Part of https://github.com/Shopify/web/issues/70453

Current flakiness of accessibility tests is due to network requests taking a long time and most of the time we test a loading state (which passes), but in reality, there is an actual error or violation on the fully complete state that the we only sometimes test (which ends up failing).

This PR allows for the waitUntil parameter to take in different options so that we can set it differently in web.

@emiryy emiryy requested a review from a team as a code owner August 19, 2022 18:03
@emiryy emiryy requested a review from CameronGorrie August 19, 2022 18:03
@emiryy emiryy marked this pull request as draft August 19, 2022 20:06
@emiryy emiryy changed the title change waitUntil param to take options Allow waitUntil param to take options Aug 22, 2022
@emiryy
Copy link
Contributor Author

emiryy commented Aug 22, 2022

/snapit

@github-actions
Copy link
Contributor

🫰✨ Thanks @emiryy! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/mime-types@0.0.0-snapshot-20220822163423
yarn add @shopify/react-graphql@0.0.0-snapshot-20220822163423
yarn add @shopify/react-graphql-universal-provider@0.0.0-snapshot-20220822163423
yarn add @shopify/storybook-a11y-test@0.0.0-snapshot-20220822163423

@emiryy emiryy marked this pull request as ready for review August 22, 2022 18:04
Copy link
Contributor

@CameronGorrie CameronGorrie left a comment

Choose a reason for hiding this comment

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

Makes sense to make this configurable 👍

Copy link
Member

@BPScott BPScott left a comment

Choose a reason for hiding this comment

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

Code looks good!

Remember to add documentation for this in the readme

@emiryy emiryy merged commit 80db754 into main Aug 23, 2022
@emiryy emiryy deleted the a11y-wait-until branch August 23, 2022 19:02
@github-actions github-actions bot mentioned this pull request Aug 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants