Skip to content

Commit 95dd383

Browse files
committed
Fix: tests
1 parent 0244cc1 commit 95dd383

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

tests/Integration/Auth/LoginTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ public function testLoginPageFormFieldsAreVisible(): void
3434
$this->assertSelectorTextContains('label[for="password"]', 'Password');
3535
$this->assertSelectorExists('button[type="submit"]');
3636
$this->assertSelectorTextContains('button[type="submit"]', 'Sign In');
37-
$this->assertSelectorExists('.login-container');
38-
$this->assertSelectorExists('#vue-app');
3937

4038
$this->assertSelectorTextContains('h4', 'Sign in to your account');
4139
}
@@ -54,6 +52,6 @@ public function testLoginFormSubmission(): void
5452
]);
5553

5654
$this->assertPageTitleContains('Login');
57-
$this->assertSelectorExists('.alert.alert-danger');
55+
$this->assertSelectorExists('.bg-red-50.border-red-200.text-red-600');
5856
}
5957
}

tests/System/ApplicationBundle/PhpListApplicationBundleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function testHomepageReturnsSuccess(): void
4141

4242
self::assertSame(200, $response->getStatusCode());
4343
self::assertStringContainsString(
44-
'This page has been intentionally left empty.',
44+
'Access is restricted to authorised administrators only.',
4545
$response->getBody()->getContents()
4646
);
4747
}

tests/Unit/Controller/AuthControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function testLoginWithPostRequestSuccess(): void
125125
$response = $this->controller->login($request);
126126

127127
$this->assertInstanceOf(RedirectResponse::class, $response);
128-
$this->assertStringContainsString('empty_start_page', $response->getTargetUrl());
128+
$this->assertStringContainsString('mocked-route-to-home', $response->getTargetUrl());
129129
}
130130

131131
public function testLoginWithPostRequestFailure(): void
@@ -172,7 +172,7 @@ public function testLoginWithExistingSession(): void
172172
$response = $this->controller->login($request);
173173

174174
$this->assertInstanceOf(RedirectResponse::class, $response);
175-
$this->assertStringContainsString('empty_start_page', $response->getTargetUrl());
175+
$this->assertStringContainsString('/', $response->getTargetUrl());
176176
}
177177

178178
public function testLogout(): void

0 commit comments

Comments
 (0)