Skip to content

Commit 0d75b20

Browse files
committed
e2e: make tests more robust
1 parent f093dd3 commit 0d75b20

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

e2e/kit/014-keyboard-background-view.e2e.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ describe("`KeyboardBackgroundView` specification", () => {
2020
it("should have expected state when keyboard is opened", async () => {
2121
await waitAndTap("shared_transition_input");
2222
await waitForExpect(async () => {
23-
await expectBitmapsToBeEqual("KeyboardBGViewKeyboardIsShown");
23+
// 0.25 because on iOS Home indicator sometimes may have different colors per different runs
24+
await expectBitmapsToBeEqual("KeyboardBGViewKeyboardIsShown", 0.25);
2425
});
2526
});
2627

2728
it("should have expected state when keyboard is closed", async () => {
2829
await closeKeyboard("shared_transition_input");
2930
await waitForExpect(async () => {
30-
await expectBitmapsToBeEqual("KeyboardBGViewKeyboardIsHidden");
31+
// 0.25 because on iOS Home indicator sometimes may have different colors per different runs
32+
await expectBitmapsToBeEqual("KeyboardBGViewKeyboardIsHidden", 0.25);
3133
});
3234
});
3335
});

0 commit comments

Comments
 (0)