Skip to content

Add testing with multiple services#39

Merged
olivierwilkinson merged 3 commits intomainfrom
add-testing-with-multiple-services
Sep 22, 2022
Merged

Add testing with multiple services#39
olivierwilkinson merged 3 commits intomainfrom
add-testing-with-multiple-services

Conversation

@olivierwilkinson
Copy link
Copy Markdown
Collaborator

@olivierwilkinson olivierwilkinson commented Sep 21, 2022

This PR adds failing test cases that reproduce the issue found in #29

Currently we are only testing using the selenium-standalone service.

Since other services interact with the browser differently we must run
the tests using those services to check we are compatible with them.

Update the test setup so that we check: Puppeteer (default wdio
behaviour), Chromedriver, Geckodriver and Selenium Standalone.
When using Puppeteer to drive the browser it adds extra attributes to
identify the element. This breaks the test for refetching elements as we
are checking the stringified elements are the same, however the
element identifier added by Puppeteer has changed.

Check that the refetched element has the correct text instead.
When testing a production React application Puppeteer is unable to
serialise the elements due to circular references from React Fiber.

The tests include a basic `getByText` test and another for checking
refetching after a key change. The later is important as key changes are
common in React.

Skip the tests until they pass with Puppeteer as well.
@olivierwilkinson olivierwilkinson force-pushed the add-testing-with-multiple-services branch from 8523704 to 16a7be6 Compare September 21, 2022 21:41
@olivierwilkinson olivierwilkinson merged commit 7f46755 into main Sep 22, 2022
@olivierwilkinson olivierwilkinson deleted the add-testing-with-multiple-services branch September 22, 2022 00:44
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 3, 2022

🎉 This PR is included in version 3.0.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant