summaryrefslogtreecommitdiffhomepage
path: root/gui/test
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2023-04-05 14:59:02 +0200
committerOskar Nyberg <oskar@mullvad.net>2023-04-05 14:59:02 +0200
commitb04dc2e451e093618af5c9d89a3852897c2d243f (patch)
treea29a5ab3bc416e6590954926fbd08660d998f23e /gui/test
parent0021d2618f845299a93a5c2e0bf9019746ccda91 (diff)
parent8df5baa67e530da50a35b39e7c8d89375a76efdb (diff)
downloadmullvadvpn-b04dc2e451e093618af5c9d89a3852897c2d243f.tar.xz
mullvadvpn-b04dc2e451e093618af5c9d89a3852897c2d243f.zip
Merge branch 'fix-windows-tests'
Diffstat (limited to 'gui/test')
-rw-r--r--gui/test/e2e/installed/playwright.config.ts10
-rw-r--r--gui/test/e2e/installed/state-dependent/login.spec.ts10
2 files changed, 11 insertions, 9 deletions
diff --git a/gui/test/e2e/installed/playwright.config.ts b/gui/test/e2e/installed/playwright.config.ts
new file mode 100644
index 0000000000..209838beb1
--- /dev/null
+++ b/gui/test/e2e/installed/playwright.config.ts
@@ -0,0 +1,10 @@
+import { defineConfig } from "@playwright/test";
+
+export default defineConfig({
+ testDir: process.cwd(),
+ timeout: 60_000,
+ workers: 1,
+ expect: {
+ timeout: 30_000,
+ },
+});
diff --git a/gui/test/e2e/installed/state-dependent/login.spec.ts b/gui/test/e2e/installed/state-dependent/login.spec.ts
index 4a4edeadf8..9b1642dbd4 100644
--- a/gui/test/e2e/installed/state-dependent/login.spec.ts
+++ b/gui/test/e2e/installed/state-dependent/login.spec.ts
@@ -37,12 +37,10 @@ test('App should fail to login', async () => {
await loginInput.fill('1234 1234 1324 1234');
await loginInput.press('Enter');
- await expect(title).toHaveText('Logging in...');
- await expect(subtitle).toHaveText('Checking account number');
await expect(title).toHaveText('Login failed');
await expect(subtitle).toHaveText('Invalid account number');
- loginInput.fill('');
+ await loginInput.fill('');
});
test('App should create account', async () => {
@@ -52,8 +50,6 @@ test('App should create account', async () => {
const subtitle = page.getByTestId('subtitle');
await page.getByText('Create account').click();
- await expect(title).toHaveText('Creating account...');
- await expect(subtitle).toHaveText('Please wait');
await expect(title).toHaveText('Account created');
await expect(subtitle).toHaveText('Logged in');
@@ -87,8 +83,6 @@ test('App should log in', async () => {
await loginInput.type(process.env.ACCOUNT_NUMBER!);
await loginInput.press('Enter');
- await expect(title).toHaveText('Logging in...');
- await expect(subtitle).toHaveText('Checking account number');
await expect(title).toHaveText('Logged in');
await expect(subtitle).toHaveText('Valid account number');
@@ -132,8 +126,6 @@ test('App should log in to expired account', async () => {
await loginInput.type(accountNumber);
await loginInput.press('Enter');
- await expect(title).toHaveText('Logging in...');
- await expect(subtitle).toHaveText('Checking account number');
await expect(title).toHaveText('Logged in');
await expect(subtitle).toHaveText('Valid account number');