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

Fix conformance tests for @connectrpc/connect-web on Firefox #1186

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

timostamm
Copy link
Member

Following up on #1183, this updates our test setup to avoid an issue with the Firefox webdriver:

Instead of passing our script to FF's JS engine via WebdriverIO.Browser.executeScript, we serve a HTML document that embeds the script. This slightly complicates our test setup, but it's well worth it, since there could be similar other issues that we just haven't run into yet.

Signed-off-by: Timo Stamm <ts@timostamm.de>
@timostamm timostamm requested a review from smaye81 August 26, 2024 14:18
@@ -15,7 +15,7 @@
"attw": "attw --pack",
"conformance:client:chrome:promise": "connectconformance --mode client --conf ./conformance/conformance-web.yaml -v -- ./conformance/client.ts --browser chrome",
"conformance:client:chrome:callback": "connectconformance --mode client --conf ./conformance/conformance-web.yaml -v --known-failing @./conformance/known-failing-callback-client.txt -- ./conformance/client.ts --browser chrome --useCallbackClient",
"conformance:client:firefox:promise": "connectconformance --mode client --conf ./conformance/conformance-web.yaml -v --known-failing @./conformance/known-failing-promise-client-firefox.txt -- ./conformance/client.ts --browser firefox",
"conformance:client:firefox:promise": "connectconformance --mode client --conf ./conformance/conformance-web.yaml -v -- ./conformance/client.ts --browser firefox",
Copy link
Member Author

Choose a reason for hiding this comment

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

As a result, we do not need this known-failing list anymore.

@timostamm timostamm merged commit af9363f into main Aug 26, 2024
21 checks passed
@timostamm timostamm deleted the tstamm/ff-conformance branch August 26, 2024 15:24
smaye81 pushed a commit that referenced this pull request Aug 26, 2024
Signed-off-by: Timo Stamm <ts@timostamm.de>
Signed-off-by: Steve Ayers <sayers@buf.build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants