Skip to content

Commit

Permalink
More robust integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval authored Nov 16, 2023
1 parent 18cb50e commit 0589d8b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ui-tests/tests/merge-commit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ test.describe('Merge commit tests', () => {
.getByRole('tab', { name: 'hello-world.py' })
.waitFor({ state: 'visible' });

expect(page.waitForSelector('.jp-git-diff-root')).toBeTruthy();
await expect(page.locator('.jp-git-diff-root')).toBeVisible();
});

test('should revert merge commit', async ({ page }) => {
Expand All @@ -92,8 +92,6 @@ test.describe('Merge commit tests', () => {
.locator('#jp-git-sessions')
.getByText("Revert 'Merge branch 'sort-names''");

await revertMergeCommit.waitFor({ state: 'visible' });

expect(revertMergeCommit).toBeTruthy();
await expect(revertMergeCommit).toBeVisible();
});
});

0 comments on commit 0589d8b

Please sign in to comment.