-
Notifications
You must be signed in to change notification settings - Fork 294
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
E2E: fix test for WSL integration #5832
base: main
Are you sure you want to change the base?
Conversation
dc5053e
to
f53e4c5
Compare
Signed-off-by: Mark Yen <[email protected]>
This avoids assumptions about what is available inside the target distros (we no longer require /bin/sh and ln). Signed-off-by: Mark Yen <[email protected]>
Stop using mock-wsl, and use the real thing instead. Signed-off-by: Mark Yen <[email protected]>
Signed-off-by: Mark Yen <[email protected]>
f53e4c5
to
dafba72
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please pull the wsl-integraion-docker-plugin code into a separate PR.
And maybe all those changes that added a newline after the intial comment in
wsl-helper/cmd/*
should go into a separate trivial PR.
// Wait for the window to actually load (i.e. transition from | ||
// app://index.html/#/preferences to app://index.html/#/Preferences#general) | ||
await preferencesWindow.waitForURL(/Preferences#/i); | ||
expect(prefWin.wsl.tabIntegrations).toHaveCount(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing await
here?
return preferencesWindow; | ||
} | ||
|
||
test.beforeAll(({ wslError }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does the wslError
argument come from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fixture, from line 33. (Or, I guess, 26 if you want to talk types). I do need to update the PR to have a relevant comment here, though.
RD_MOCK_WSL_DATA: path.join(workdir, 'config.json'), | ||
}, | ||
function registerDistro(distro: string, files: Record<string, string> = {}, version = 2) { | ||
test.beforeAll(async() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So everytime you call registerDistro
you create a new before-hook?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, but that made more sense when I had it also call afterAll
after each distro. At this point that makes less sense, and I should probably reorganize this a bit.
FYI: Finally got the e2e test to run and partially pass, but:
|
(I'll still need to split this into multiple PRs first anyway) Do you have the logs from that run? Given that the received string is |
This depends on #5830