Skip to content

Commit

Permalink
fix(test): fixed e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
heristop committed Jun 30, 2024
1 parent 8959c54 commit 7abbfe7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/components/UploadDownload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const resetConfiguration = () => {
size="sm"
class="w-full py-1"
:disabled="!store.configLoaded"
aria-label="Reset configuration"
@click="resetConfiguration"
>
Reset
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"dev": "nuxi dev",
"build": "nuxi build",
"start": "nuxi start",
"test": "playwright test",
"postinstall": "nuxt prepare",
"lint": "eslint ."
},
Expand Down
8 changes: 4 additions & 4 deletions tests/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ test.describe('TreePulse Page Tests', () => {
// Add assertions to verify the configuration is loaded
await expect(page.locator('html')).toHaveText(/ Catalog/, { timeout: 10000 })

const resetButton = page.locator('button[aria-label="reset"]')
const resetButton = page.locator('button[aria-label="Reset configuration"]')
await resetButton.click()
})

Expand All @@ -71,8 +71,8 @@ test.describe('TreePulse Page Tests', () => {
// Add assertions to verify the file is uploaded and configuration is loaded
await expect(page.locator('text=File Config')).toBeVisible({ timeout: 10000 });
const resetButton = page.locator('button[aria-label="reset"]');
await resetButton.click();
const resetButton = page.locator('button[aria-label="Reset configuration"]')
await resetButton.click()
*/
})

Expand All @@ -86,7 +86,7 @@ test.describe('TreePulse Page Tests', () => {
// This could include checking for specific text or elements that indicate the configuration has been loaded
await expect(page.locator('text=Project 1')).toBeVisible()

const resetButton = page.locator('button[aria-label="reset"]')
const resetButton = page.locator('button[aria-label="Reset configuration"]')
await resetButton.click()
})
})

0 comments on commit 7abbfe7

Please sign in to comment.