Skip to content

Commit

Permalink
Fix failed e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusefendi52 committed Dec 4, 2024
1 parent f71ae13 commit b1df358
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# user=password:user=password;
NUXT_LOCAL_AUTHS=usertest1=a5756f781e0e433986364b82de545c3b:usertest2=963a71f1868248df912e7488e02233f0
NUXT_PUBLIC_LOCAL_AUTH_ENABLED=true
NUXT_APP_ENABLE_DRIZZLE_LOGGING=true
NUXT_APP_ENABLE_DRIZZLE_LOGGING=false
NUXT_DB_URL=http://localhost:8888
NUXT_DB_AUTH_TOKEN=basic:c3FsZDppOHJ3ZXlzNzBkN2Zh
NUXT_S3_ENDPOINT=http://localhost:9000
Expand Down
2 changes: 1 addition & 1 deletion pages/apps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const upperCase = (value: string | null | undefined) => {
orgName: orgNameParam?.toString() ?? '',
},
}" v-if="isOrg">
<Button icon="pi pi-cog" outlined aria-label="Settings" />
<Button icon="pi pi-cog" outlined aria-label="Settings" data-testid="settings_btn" />
</NuxtLink>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion tests-e2e/apps.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ test('Apps test', async ({ page, goto, context }) => {

await test.step('User admin can delete org', async () => {
await page.getByTestId('a_menus').getByText(orgName).click()
await page.getByLabel('Settings').click()
await page.getByTestId('settings_btn').click()
await page.getByText('Danger').click()
const orgId = await page.getByTestId('org_name_span').textContent()
await page.getByTestId('orgName').fill(orgId!)
Expand Down

0 comments on commit b1df358

Please sign in to comment.