We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27b7191 commit 0791b1dCopy full SHA for 0791b1d
tests/e2e/objects/views/View.ts
@@ -128,6 +128,9 @@ export class SearchableView extends View {
128
await expect(itemLocator, {
129
message: `should check if '${label}' is visible before searching`,
130
}).toBeVisible({ timeout: 1000 });
131
+ // item is in the DOM but may be partially out of view, so we may need to scroll to
132
+ // it before any other actions can happen
133
+ await itemLocator.scrollIntoViewIfNeeded();
134
return itemLocator;
135
} catch {
136
// item not found, try searching for it
0 commit comments