Skip to content

Commit

Permalink
Fixing flaky test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
snake14 committed Sep 29, 2024
1 parent 8e50a5f commit e9a226a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions tests/UI/ContainerTag_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@ describe("ContainerTag", function () {
await page.evaluate(() => $('.modal.open').scrollTop($('.modal.open').height()+500));
await page.waitForTimeout(100);
const content = await page.$('.modal.open');
await page.waitForNetworkIdle();

// Hide the last few rows since they are causing the test to be flaky
await page.evaluate(() => $('div.versionChanges tbody tr:nth-child(3) ~ tr').hide());

expect(await content.screenshot()).to.matchImage('paused_publish_new_version_list');
});

Expand Down Expand Up @@ -267,6 +272,11 @@ describe("ContainerTag", function () {
await page.evaluate(() => $('.modal.open').scrollTop($('.modal.open').height()+500));
await page.waitForTimeout(100);
const content = await page.$('.modal.open');
await page.waitForNetworkIdle();

// Hide the last few rows since they are causing the test to be flaky
await page.evaluate(() => $('div.versionChanges tbody tr:nth-child(3) ~ tr').hide());

expect(await content.screenshot()).to.matchImage('resume_publish_new_version_list');
});

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e9a226a

Please sign in to comment.