From dde883e613ab367dad102e67b9db37723036e1bc Mon Sep 17 00:00:00 2001 From: Yunus Date: Fri, 6 Dec 2024 07:06:54 +0700 Subject: [PATCH] asdf --- tests-e2e/switch-account.test.mts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests-e2e/switch-account.test.mts b/tests-e2e/switch-account.test.mts index 4b9033e..8f1835a 100644 --- a/tests-e2e/switch-account.test.mts +++ b/tests-e2e/switch-account.test.mts @@ -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