Skip to content

Commit

Permalink
Fix linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
onurtemizkan committed Sep 19, 2023
1 parent a7096cc commit 69d57ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,7 @@ sentryTest(
// // -----------------------------------------------------------------------------------------
// // And just to finish this off, let's go back to the index page

const [, req8] = await Promise.all([
page.click('a'),
reqPromise8
]);
const [, req8] = await Promise.all([page.click('a'), reqPromise8]);

const replayEvent8 = getReplayEvent(req8);
const recording8 = getReplayRecordingContent(req8);
Expand All @@ -287,10 +284,7 @@ sentryTest(
expect(normalize(recording8.fullSnapshots)).toMatchSnapshot('seg-8-snap-full');
expect(recording8.incrementalSnapshots.length).toEqual(0);

const [, req9] = await Promise.all([
page.click('#go-background'),
reqPromise9
]);
const [, req9] = await Promise.all([page.click('#go-background'), reqPromise9]);

const replayEvent9 = getReplayEvent(req9);
const recording9 = getReplayRecordingContent(req9);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,13 @@ sentryTest('replay recording should contain XHR request span', async ({ getLocal
const reqPromise0 = waitForReplayRequest(page, 0);
const reqPromise1 = waitForReplayRequest(page, 1);


const url = await getLocalTestPath({ testDir: __dirname });

const [, req0] = await Promise.all([Promise.all([page.goto(url), page.click('#go-background')]), reqPromise0]);

const { performanceSpans: spans0 } = getReplayRecordingContent(req0);

await Promise.all([page.click('#xhr'), page.waitForResponse('https://example.com')])
await Promise.all([page.click('#xhr'), page.waitForResponse('https://example.com')]);

const { performanceSpans: spans1 } = getReplayRecordingContent(await reqPromise1);

Expand Down

0 comments on commit 69d57ad

Please sign in to comment.