Skip to content

test: Fix flaky replay DSC test #7973

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

Merged
merged 1 commit into from
Apr 26, 2023
Merged

test: Fix flaky replay DSC test #7973

merged 1 commit into from
Apr 26, 2023

Conversation

mydea
Copy link
Member

@mydea mydea commented Apr 26, 2023

Also one test was actually incorrect.

Also extending browser integration test max. time a bit as I had a few times where we exceeded 15min, sadly.

Also one test was actually incorrect.
@mydea mydea requested review from billyvg and AbhiPrasad April 26, 2023 13:31
@mydea mydea self-assigned this Apr 26, 2023
@@ -74,12 +81,13 @@ sentryTest(
});
});

const envHeader = await getFirstSentryEnvelopeRequest<EventEnvelopeHeaders>(page, url, envelopeHeaderRequestParser);
Copy link
Member Author

Choose a reason for hiding this comment

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

This actually does page.goto(url) under the hood, so we were reloading the page, re-initializing replay.

const replay = await getReplaySnapshot(page);

expect(replay.session?.id).toBeDefined();
Copy link
Member Author

Choose a reason for hiding this comment

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

This was just incorrect, we expect this to be undefined now 😅

@mydea mydea merged commit ec1a441 into develop Apr 26, 2023
@mydea mydea deleted the fn/fix-flaky-test branch April 26, 2023 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants