Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusefendi52 committed Dec 6, 2024
1 parent eda2052 commit dde883e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests-e2e/switch-account.test.mts
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
import { expect, test } from '@nuxt/test-utils/playwright'

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

test('Add and switch account', async ({ page, goto, context }) => {
await goto('/')
await page.getByText('Get Started').click()

await page.locator('[name="username"]').fill('usertest1')
await page.locator('[name="password"]').fill('a5756f781e0e433986364b82de545c3b')
await page.getByTestId('sign_in_btn').click()

await page.getByText('Go To Apps').click()

await page.getByTestId('b_more_btn').click()
// await expect(page.getByText('(Current)')).toContainText("usertest1")
await expect(page.getByText('(Current)')).toContainText("usertest1")
await page.getByText('Add Account').click()

// Try to login with other account
Expand Down

0 comments on commit dde883e

Please sign in to comment.