extending profile test

This commit is contained in:
balzack 2022-12-31 13:40:51 -08:00
parent a6b13a77c8
commit 2456a1f436

View File

@ -75,6 +75,24 @@ test('testing', async () => {
expect(screen.getByTestId('name').textContent).toBe("jester");
});
await act(async () => {
identity = { name: 'tester' };
await profileContext.actions.setRevision(2);
});
await waitFor(async () => {
expect(screen.getByTestId('name').textContent).toBe("tester");
});
await act(async () => {
await profileContext.actions.clearToken();
});
await waitFor(async () => {
expect(screen.getByTestId('name').textContent).toBe("");
});
});