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

test(e2e): onboarding tests #162

Merged
merged 4 commits into from
Jan 7, 2025
Merged

test(e2e): onboarding tests #162

merged 4 commits into from
Jan 7, 2025

Conversation

QZera
Copy link
Collaborator

@QZera QZera commented Nov 11, 2024

Prerequisite #169

Closes #163

  • Tests the welcome screen shown if the rad binary isn't found (e.g. before Radicle is installed)
    • Radicle not being installed is simulated by moving the .radicle from it's default location
  • Removes browser.pause (used on some flaky tests) in favour of using browser.waitUntil (asynchronous assertions). This should reduce overall flakiness when adding new tests to the suite.
  • Extracts some common helper functions to separate files

@QZera QZera self-assigned this Nov 11, 2024
@QZera QZera force-pushed the feat/onboarding-e2e-tests branch 20 times, most recently from 269a5cd to aa7d5f2 Compare November 11, 2024 15:11
@QZera QZera force-pushed the feat/onboarding-e2e-tests branch 9 times, most recently from 8c5fb69 to adfd2d2 Compare December 1, 2024 12:04
@QZera QZera force-pushed the feat/onboarding-e2e-tests branch 12 times, most recently from 304e9c9 to bec020b Compare December 27, 2024 06:32
test/e2e/helpers/assertions.ts Outdated Show resolved Hide resolved
@QZera QZera marked this pull request as ready for review December 27, 2024 06:51
@QZera QZera requested a review from maninak December 27, 2024 06:51
@QZera QZera force-pushed the feat/onboarding-e2e-tests branch from bec020b to ba33585 Compare December 28, 2024 18:19
Signed-off-by: Zacharias Fragkiadakis <zacfragkiadakis@gmail.com>
- Refactors some tests in onboarding.spec.ts using `browser.waitUntil` to reduce flakiness
  - These assertions will now poll for the result instead of failing immediately
- Simulates Radicle installation in the onboarding process by renaming the node home directory
- Extracts common queries, actions, and assertions to helper files

Signed-off-by: Zacharias Fragkiadakis <zacfragkiadakis@gmail.com>
Signed-off-by: Zacharias Fragkiadakis <zacfragkiadakis@gmail.com>
@QZera QZera force-pushed the feat/onboarding-e2e-tests branch from 983019b to adf2a6d Compare December 31, 2024 09:19
@QZera QZera changed the title feat: onboarding e2e tests test(e2e): onboarding e2e tests Jan 6, 2025
@QZera QZera changed the title test(e2e): onboarding e2e tests test(e2e): onboarding tests Jan 6, 2025
Copy link
Collaborator

@maninak maninak left a comment

Choose a reason for hiding this comment

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

Please let me know if the single comment-assumption I've made is inaccurate and I'll insta-approve.

In general, and from a reader's perspective, I like how the testing architecture is shaping up, well done!

Naturally, I'll be able to form a more thorough verdict after I write a few tests of my own.

test/e2e/specs/onboarding.spec.ts Outdated Show resolved Hide resolved
- Uses wdio's `onWorkerStart` hook to move the radicle directory before launching vscode
  - This is only done on the onboarding suite worker

Signed-off-by: Zacharias Fragkiadakis <zacfragkiadakis@gmail.com>
@QZera QZera force-pushed the feat/onboarding-e2e-tests branch from 9142baf to cf74866 Compare January 7, 2025 19:08
@QZera QZera requested a review from maninak January 7, 2025 19:18
Copy link
Collaborator

@maninak maninak left a comment

Choose a reason for hiding this comment

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

Well done, zac, and thank you!

@QZera QZera merged commit c5ae6a5 into main Jan 7, 2025
10 checks passed
@QZera QZera deleted the feat/onboarding-e2e-tests branch January 7, 2025 20:31
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.

Add e2e tests for onboarding flows
2 participants