Skip to content

Commit

Permalink
Fix E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
somebody1234 committed Jan 8, 2025
1 parent 7cd1853 commit 76f7b7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 0 additions & 7 deletions app/gui/integration-test/dashboard/delete.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ test('delete and restore', ({ page }) =>
.contextMenu.restoreFromTrash()
.driveTable.expectTrashPlaceholderRow()
.goToCategory.cloud()
.expectStartModal()
.withStartModal(async (startModal) => {
await expect(startModal).toBeVisible()
})
.close()
.driveTable.withRows(async (rows) => {
await expect(rows).toHaveCount(1)
}))
Expand All @@ -50,8 +45,6 @@ test('delete and restore (keyboard)', ({ page }) =>
.press('Mod+R')
.driveTable.expectTrashPlaceholderRow()
.goToCategory.cloud()
.expectStartModal()
.close()
.driveTable.withRows(async (rows) => {
await expect(rows).toHaveCount(1)
}))
Expand Down
3 changes: 2 additions & 1 deletion app/gui/integration-test/dashboard/labelsPanel.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,13 @@ test('labels', ({ page }) =>
// Labels panel with one entry
await locateCreateButton(locateNewLabelModal(page)).click()
await expect(locateLabelsPanel(page)).toBeVisible()
expect(await locateLabelsPanelLabels(page).count()).toBe(1)

// Empty labels panel again, after deleting the only entry
await locateLabelsPanelLabels(page).first().hover()

const labelsPanel = locateLabelsPanel(page)
await labelsPanel.getByRole('button').and(labelsPanel.getByLabel(TEXT.delete)).click()
await page.getByRole('button', { name: TEXT.delete }).getByText(TEXT.delete).click()
expect(await locateLabelsPanelLabels(page).count()).toBeGreaterThanOrEqual(1)
expect(await locateLabelsPanelLabels(page).count()).toBe(0)
}))

0 comments on commit 76f7b7e

Please sign in to comment.