Skip to content

Commit

Permalink
stabilize e2e test by waiting for condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaskikutis committed Sep 19, 2023
1 parent 796b873 commit f2c69eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/client/specs/monitoring_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,6 @@ describe('monitoring', () => {
monitoring.saveSettings();

monitoring.openMonitoring();
browser.sleep(3000); // wait for monitoring groups to load

expect(monitoring.getTextItem(1, 2)).toBe('item6');

Expand All @@ -792,7 +791,8 @@ describe('monitoring', () => {

monitoring.actionOnItemSubmenu('Publishing actions', 'Correct item', 0, 0);
authoring.send_correction_button.click();
expect(element(by.id('multi-select-count')).isPresent()).toBeFalsy();

browser.wait(ECE.stalenessOf(element(by.id('multi-select-count'))));
});

it('can view published duplicated item in duplicate tab of non-published original item', () => {
Expand Down

0 comments on commit f2c69eb

Please sign in to comment.