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: Positron editors POM #5845

Merged
merged 2 commits into from
Dec 21, 2024
Merged

E2E test: Positron editors POM #5845

merged 2 commits into from
Dec 21, 2024

Conversation

testlabauto
Copy link
Contributor

Replace MS editors POM with one based solely on Playwright

QA Notes

All tests should pass.

Copy link

github-actions bot commented Dec 20, 2024

E2E Tests 🚀  ?
This PR will run tests tagged with: @critical

jonvanausdeln
jonvanausdeln previously approved these changes Dec 20, 2024
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!

if (process.platform === 'darwin') {
await this.code.driver.page.keyboard.press('Meta+N');
} else {
await this.code.dispatchKeybinding('Control+N');
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you miss this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops. yup


let error: unknown | undefined = undefined;
let retries = 0;
while (retries < 10) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could this be the "expect" toPass() instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, i do like that the basic loops can capture the error and surface it, but this could definitely be a toPass(). i could go either way. it is a little annoying that toPass blocks always just fail on a timeout.

Copy link
Contributor Author

@testlabauto testlabauto Dec 20, 2024

Choose a reason for hiding this comment

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

i will go ahead and convert.... toPass is more concise

@testlabauto testlabauto merged commit bdc131e into main Dec 21, 2024
12 checks passed
@testlabauto testlabauto deleted the cmead/editors-pom branch December 21, 2024 02:41
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants