Skip to content

Commit 5969066

Browse files
committed
Use driver.getUserSnapshot().
1 parent 1085d07 commit 5969066

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages-exp/auth-exp/test/integration/webdriver/persistence.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ browserDescribe('WebDriver persistence test', driver => {
169169
await driver.waitForAuthInit();
170170

171171
// User from localStorage should be picked up.
172-
const user = await driver.call<User>(CoreFunction.USER_SNAPSHOT);
172+
const user = await driver.getUserSnapshot();
173173
expect(user.uid).eql(persistedUser.uid);
174174

175175
// User should be migrated to indexedDB, and the key in localStorage should be deleted.
@@ -195,7 +195,7 @@ browserDescribe('WebDriver persistence test', driver => {
195195
await driver.waitForAuthInit();
196196

197197
// User from indexedDB should be picked up.
198-
const user = await driver.call<User>(CoreFunction.USER_SNAPSHOT);
198+
const user = await driver.getUserSnapshot();
199199
expect(user.uid).eql(uid);
200200

201201
// User should be migrated to localStorage, and the key in indexedDB should be deleted.
@@ -220,7 +220,7 @@ browserDescribe('WebDriver persistence test', driver => {
220220
await driver.waitForAuthInit();
221221

222222
// User from localStorage should be picked up.
223-
const user = await driver.call<User>(CoreFunction.USER_SNAPSHOT);
223+
const user = await driver.getUserSnapshot();
224224
expect(user.uid).eql(persistedUser.uid);
225225

226226
// Both storage should be cleared.

0 commit comments

Comments
 (0)