Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusefendi52 committed Dec 5, 2024
1 parent fa44d4a commit e0cd598
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 8 additions & 0 deletions tests-e2e/home-not-signed.test.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { expect, test } from '@nuxt/test-utils/playwright'

test.use({ storageState: { cookies: [], origins: [] } });

test('Can open distapp and show get started', async ({ page, goto, context }) => {
await goto('/')
await expect(page.getByText('Get Started')).toHaveCount(1)
})
6 changes: 0 additions & 6 deletions tests-e2e/home.test.mts
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import { expect, test } from '@nuxt/test-utils/playwright'

test('Can open distapp and show get started', async ({ page, goto, context }) => {
await context.clearCookies()
await goto('/')
await expect(page.getByText('Get Started')).toHaveCount(1)
})

test('Logged in user open distapp and show go to apps', async ({ page, goto, context }) => {
await goto('/')
await expect(page.getByText('Go To Apps')).toHaveCount(1)
Expand Down

0 comments on commit e0cd598

Please sign in to comment.