Skip to content

Commit c5bf691

Browse files
Try breaking persistence
1 parent ba18647 commit c5bf691

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/e2e/tests/metrics/errors.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,12 @@ describe('Sentry errors', function () {
803803
async ({ driver, mockedEndpoint }) => {
804804
await driver.navigate();
805805
await new LoginPage(driver).checkPageIsLoaded();
806+
807+
// Brick persistence to help simulate not initializing
808+
await driver.executeScript(
809+
`chrome.storage.local.get = () => { throw new Error("Failure") }`,
810+
);
811+
806812
// Erase `getSentryAppState` hook, simulating a "before initialization" state
807813
await driver.executeScript(
808814
'window.stateHooks.getSentryAppState = undefined',

0 commit comments

Comments
 (0)