Skip to content

test(integration-tests): Unflake some tests - #7076

Merged
lforst merged 2 commits into
developfrom
lforst-go-background-flake
Feb 8, 2023
Merged

test(integration-tests): Unflake some tests#7076
lforst merged 2 commits into
developfrom
lforst-go-background-flake

Conversation

@lforst

@lforst lforst commented Feb 7, 2023

Copy link
Copy Markdown
Contributor

Dunno if the changes to the backgroundtab changes actually do something but Id say it is worth a try.

@lforst lforst changed the title test(integration-tests): Unflake backgroundtab-pageload test(integration-tests): Unflake some tests Feb 7, 2023
@lforst
lforst marked this pull request as ready for review February 7, 2023 15:16
@lforst
lforst requested a review from AbhiPrasad February 7, 2023 15:16
@lforst

lforst commented Feb 7, 2023

Copy link
Copy Markdown
Contributor Author

Gonna re-run this a bunch of times to see if it worked

@AbhiPrasad

AbhiPrasad commented Feb 7, 2023

Copy link
Copy Markdown
Contributor

image

image

I'll make a flaky test issue! Edit: #7079

Comment on lines +14 to +16
await page.click('#go-background');

const pageloadTransaction = await pageloadTransactionPromise;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we just Promise.all (kicking off the page click first?)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That is inherently gonna produce the race condition again that I want to remove with this change. Listen first -> then the interaction -> wait for interaction outcome. Mixing step 1 and 2 is dangerous.

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Desperately need this, thanks 🙏

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