summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2023-04-03 19:12:24 +0200
committerOskar Nyberg <oskar@mullvad.net>2023-04-05 14:58:54 +0200
commita061a0b0c322ae021b98b5577feca61bcac503a9 (patch)
treea6079422802f3b24e2f6dbd79f3adc98153b8368
parentcc5d6f7f444a2f4a9899b73c23b0e91191ddbabc (diff)
downloadmullvadvpn-a061a0b0c322ae021b98b5577feca61bcac503a9.tar.xz
mullvadvpn-a061a0b0c322ae021b98b5577feca61bcac503a9.zip
Remove expects for intermediate states during login
These are better suited in a test with a mocked daemon/main process.
-rw-r--r--gui/test/e2e/installed/state-dependent/login.spec.ts8
1 files changed, 0 insertions, 8 deletions
diff --git a/gui/test/e2e/installed/state-dependent/login.spec.ts b/gui/test/e2e/installed/state-dependent/login.spec.ts
index 4a4edeadf8..d2065f3101 100644
--- a/gui/test/e2e/installed/state-dependent/login.spec.ts
+++ b/gui/test/e2e/installed/state-dependent/login.spec.ts
@@ -37,8 +37,6 @@ 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');
@@ -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');