Skip to content

Fix API GraphiQL system spec for 0.26 with newer ChromeDriver#9556

Merged
andreslucena merged 3 commits intodecidim:release/0.26-stablefrom
mainio:fix/0.26/broken-graphiql-spec
Jul 11, 2022
Merged

Fix API GraphiQL system spec for 0.26 with newer ChromeDriver#9556
andreslucena merged 3 commits intodecidim:release/0.26-stablefrom
mainio:fix/0.26/broken-graphiql-spec

Conversation

@ahukkanen
Copy link
Copy Markdown
Contributor

🎩 What? Why?

This spec seems to be flaky at the release/0.26-stable branch with newer ChromeDriver versions.

The reason for the spec not working always is that the execute button is being clicked before the interface is listening to that click causing the query not to be executed.

This fixes the issue by waiting that the default query appears on the screen before clicking the execute button.

This is only fixed for 0.26 as this problem does not seem to exist at develop with the newer version of the GraphiQL interface.

Testing

Run the spec 20 times in a row and see that all runs should pass.

@ahukkanen ahukkanen added type: internal PRs that aren't necessary to add to the CHANGELOG for implementers module: api labels Jul 8, 2022
@ahukkanen
Copy link
Copy Markdown
Contributor Author

Note that some of the core specs will fail until #9553 is merged.

@ahukkanen ahukkanen requested a review from andreslucena July 8, 2022 13:32
@andreslucena
Copy link
Copy Markdown
Member

Note that some of the core specs will fail until #9553 is merged.

@ahukkanen that's already merged, you can merge/rebase so that's fixed, and we can merge this one

@ahukkanen
Copy link
Copy Markdown
Contributor Author

@ahukkanen that's already merged, you can merge/rebase so that's fixed, and we can merge this one

Done @andreslucena.

Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

👍🏽

@andreslucena andreslucena merged commit 568da95 into decidim:release/0.26-stable Jul 11, 2022
@ahukkanen ahukkanen deleted the fix/0.26/broken-graphiql-spec branch July 11, 2022 10:26
andreslucena pushed a commit that referenced this pull request Jul 13, 2022
* Fix the graphiql system spec for 0.26 with newer ChromeDriver

* Remove unnecessary expectation from the spec
ahukkanen added a commit to mainio/decidim that referenced this pull request Jul 31, 2022
…m#9556)

* Fix the graphiql system spec for 0.26 with newer ChromeDriver

* Remove unnecessary expectation from the spec
@alecslupu alecslupu added this to the 0.26.3 milestone Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: api type: internal PRs that aren't necessary to add to the CHANGELOG for implementers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants