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

Upgrade wdio local-runner to to v9.9.3 #1610

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

berroar
Copy link
Contributor

@berroar berroar commented Feb 19, 2025

What is the context of this PR?

Upgrades the wdio local-runner library to v9.9.3 and bumps the other wdio libraries to their latest versions.

Previously we had to pin the wdio local-runner library because upgrading caused issues when we used .getHTML in our functional tests. This PR upgrades the libraries and fixes any broken tests
- Uses .getText() instead of getHTML() in some places where we weren't checking for html.
- Uses the includeSelectorTag param for the .getHTML method to fix some of the issues caused by the upgrade.
- Upgading caused some other tests to fail and highlighted other bugs .e.g. fixing issues where questionnaires were being opened multiple times and bumping timeouts to resolve flakiness.
- Updates the click method in helpers.js to resolve scroll into view warnings from the wdio log files.

How to review

Check the changes and ensure that the functional test suite is passing

Checklist

  • New static content marked up for translation
  • Newly defined schema content included in eq-translations repo

@berroar berroar force-pushed the upgrade-wdio-runner-to-v9 branch from 3e97627 to f4b75ac Compare February 20, 2025 14:50
@berroar berroar changed the title Upgrade wdio local-runner to v9.9.3 Upgrade wdio local-runner to to v9.9.3 Feb 21, 2025
Comment on lines -13 to -27
describe("Given the user starts on the 'do you live here' question", () => {
before("Load the survey", async () => {
await browser.openQuestionnaire("test_list_collector_primary_person.json");
});

it.skip("When the user says they do not live there, and changes their answer to yes, then the user can't navigate to the list collector", async () => {
await $(PrimaryPersonListCollectorPage.noLabel()).click();
await click(PrimaryPersonListCollectorPage.submit());
await $(PrimaryPersonListCollectorAddPage.previous()).click();
await $(PrimaryPersonListCollectorPage.yesLabel()).click();
await click(PrimaryPersonListCollectorPage.submit());
await browser.url("questionnaire/list-collector");
await expect(await $(PrimaryPersonListCollectorPage.questionText()).getText()).toBe("Do you live here");
});
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing as test is broken and has been set with it.skip for years.

@berroar berroar marked this pull request as ready for review February 21, 2025 09:31
@berroar berroar requested a review from a team as a code owner February 21, 2025 09:31
Copy link
Contributor

@VirajP1002 VirajP1002 left a comment

Choose a reason for hiding this comment

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

Functional tests passed for me and the changes look good 👍

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