1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Check for severe warning level

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-06-28 08:38:29 +03:00
parent d89f238d48
commit 4d852b9e02

View File

@ -168,6 +168,24 @@ describe("encourage user to update when sufficient time passed since update was
jest.useRealTimers();
})
})
describe("given just enough time passes for severe update encouragement", () => {
beforeAll(() => {
jest.useFakeTimers();
})
it("has severe emotional indication in the button", () => {
const button = rendered.getByTestId("update-button");
jest.advanceTimersByTime(daysToMilliseconds(26));
expect(button).toHaveAttribute("data-warning-level", "high")
})
afterAll(() => {
jest.useRealTimers();
})
})
});
});
});