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

e2e-test: use hot keys to focus variables in tests #6119

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

midleman
Copy link
Contributor

@midleman midleman commented Jan 24, 2025

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

Copy link

github-actions bot commented Jan 24, 2025

E2E Tests 🚀
This PR will run tests tagged with: @:critical @:data-explorer @:win @:web

readme  valid tags

@midleman midleman marked this pull request as ready for review January 24, 2025 16:49

await app.workbench.quickaccess.openDataFile(join(app.workspacePathOrFolder, 'data-files', '100x100', '100x100.parquet'));
await openDataFile('data-files/100x100/100x100.parquet');
Copy link
Contributor

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

Copy link
Contributor

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?

Copy link
Contributor Author

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".

Copy link
Contributor Author

@midleman midleman Jan 24, 2025

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));
	});
});
},

Copy link
Contributor

@jonvanausdeln jonvanausdeln left a 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.

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.

3 participants