Skip to content

Commit

Permalink
fix e2e test - use default wait
Browse files Browse the repository at this point in the history
can dynamically update items in related tab when item duplicated
  • Loading branch information
tomaskikutis committed Sep 19, 2023
1 parent f2c69eb commit efd80fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/client/specs/helpers/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ class GlobalSearch {

itemElem.click();

browser.wait(() => itemElem.getAttribute('class').then((classes) => classes.includes('active')), 500);
browser.wait(ECE.attributeContains(itemElem, 'class', 'active'));

browser.sleep(350); // there is timeout on click
};

Expand Down

0 comments on commit efd80fe

Please sign in to comment.