-
Notifications
You must be signed in to change notification settings - Fork 92
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-test: use hot keys to focus variables in tests #6119
base: main
Are you sure you want to change the base?
Conversation
E2E Tests 🚀 |
|
||
await app.workbench.quickaccess.openDataFile(join(app.workspacePathOrFolder, 'data-files', '100x100', '100x100.parquet')); | ||
await openDataFile('data-files/100x100/100x100.parquet'); |
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.
This will be a problem on windows. You still need to use join
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.
I think... lol... did it somehow pass on windows?
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.
I did run it on windows (and it passed). :) It's a fixture and the fixture does the "join".
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.
fixture snippet:
openDataFile: async ({ app }, use) => {
await use(async (filePath: string) => {
await test.step(`Open data file: ${path.basename(filePath)}`, async () => {
await app.workbench.quickaccess.openDataFile(path.join(app.workspacePathOrFolder, filePath));
});
});
},
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.
LGTM! All tested passed on my windows box. Powershell generally can handle both path separators.. but I think the join is a good general practice regardless.
Summary
Updating tests to use hot keys to focus variables review instead of quick access because it's quicker and likely more reliable... and ensures they work as expected.
QA Notes
@:data-explorer @:win @:web