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:
parent
d89f238d48
commit
4d852b9e02
@ -168,6 +168,24 @@ describe("encourage user to update when sufficient time passed since update was
|
|||||||
jest.useRealTimers();
|
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();
|
||||||
|
})
|
||||||
|
})
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user