Skip to content

Commit

Permalink
e2e: another desperate attempt to make e2e tests working
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillzyusko committed Dec 31, 2024
1 parent 1218efe commit e20ba8f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions e2e/kit/helpers/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,10 @@ export const scrollUpUntilElementIsBarelyVisible = async (
elementId: string,
threshold = 10,
): Promise<void> => {
// wait for all interactions to be completed to get precise layout metrics
await delay(500);
// scroll a little bit to update the frame, otherwise
// we may read out of date frame on Android
await element(by.id(scrollViewId)).scroll(1, "up", 0.01, 0.5);
await element(by.id(scrollViewId)).scroll(1, "up", 0.01, 0.5);
const preference = getDevicePreference();
const { frame } = (await element(by.id(elementId)).getAttributes()) as {
frame: Frame;
Expand Down

0 comments on commit e20ba8f

Please sign in to comment.