Skip to content

Commit

Permalink
Apply formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
billyvg authored and github-actions[bot] committed Jul 7, 2023
1 parent 5f0e539 commit 651f9aa
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions packages/rrweb/test/integration-sentry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ describe('record integration tests', function (this: ISuite) {
}
});

const snapshots = await page.evaluate('window.snapshots') as eventWithTime[];
const snapshots = (await page.evaluate(
'window.snapshots',
)) as eventWithTime[];
assertSnapshot(snapshots);

const lastMutationsLength = await page.evaluate(
Expand Down Expand Up @@ -120,7 +122,9 @@ describe('record integration tests', function (this: ISuite) {
await page.select('select', '1');
await page.type('#empty', 'test');

const snapshots = await page.evaluate('window.snapshots') as eventWithTime[];
const snapshots = (await page.evaluate(
'window.snapshots',
)) as eventWithTime[];
assertSnapshot(snapshots);
});

Expand Down Expand Up @@ -151,7 +155,9 @@ describe('record integration tests', function (this: ISuite) {
.forEach((el) => el.setAttribute('value', 'new value'));
});

const snapshots = await page.evaluate('window.snapshots') as eventWithTime[];
const snapshots = (await page.evaluate(
'window.snapshots',
)) as eventWithTime[];
assertSnapshot(snapshots);
});

Expand Down Expand Up @@ -303,7 +309,9 @@ describe('record integration tests', function (this: ISuite) {
await page.type('#password', 'XY');
await page.click('#show-password');

const snapshots = await page.evaluate('window.snapshots') as eventWithTime[];
const snapshots = (await page.evaluate(
'window.snapshots',
)) as eventWithTime[];
assertSnapshot(snapshots);
});

Expand All @@ -324,7 +332,9 @@ describe('record integration tests', function (this: ISuite) {
?.setAttribute('value', 'new value');
});

const snapshots = await page.evaluate('window.snapshots') as eventWithTime[];
const snapshots = (await page.evaluate(
'window.snapshots',
)) as eventWithTime[];
assertSnapshot(snapshots);
});

Expand Down Expand Up @@ -364,7 +374,9 @@ describe('record integration tests', function (this: ISuite) {
nextElement.parentNode!.insertBefore(el2, nextElement);
});

const snapshots = await page.evaluate('window.snapshots') as eventWithTime[];
const snapshots = (await page.evaluate(
'window.snapshots',
)) as eventWithTime[];
assertSnapshot(snapshots);
});

Expand All @@ -379,7 +391,9 @@ describe('record integration tests', function (this: ISuite) {
}),
);

const snapshots = await page.evaluate('window.snapshots') as eventWithTime[];
const snapshots = (await page.evaluate(
'window.snapshots',
)) as eventWithTime[];
assertSnapshot(snapshots);
});

Expand All @@ -394,7 +408,9 @@ describe('record integration tests', function (this: ISuite) {
}),
);

const snapshots = await page.evaluate('window.snapshots') as eventWithTime[];
const snapshots = (await page.evaluate(
'window.snapshots',
)) as eventWithTime[];
assertSnapshot(snapshots);
});

Expand All @@ -410,7 +426,9 @@ describe('record integration tests', function (this: ISuite) {
}),
);

const snapshots = await page.evaluate('window.snapshots') as eventWithTime[];
const snapshots = (await page.evaluate(
'window.snapshots',
)) as eventWithTime[];
assertSnapshot(snapshots);
});
});

0 comments on commit 651f9aa

Please sign in to comment.