Skip to content

Conversation

@lforst
Copy link
Contributor

@lforst lforst commented Feb 7, 2023

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
Copy link
Contributor Author

lforst commented Feb 7, 2023

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

@AbhiPrasad
Copy link
Member

AbhiPrasad commented Feb 7, 2023

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
Member

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

Copy link
Member

@Lms24 Lms24 left a comment

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.

4 participants