style: show all back links the same way above the page title
This commit is contained in:
1 parent
3c19401d8b
commit
e9b0de44f1
14 files changed
+34
-64
No files matched your search
@@ -51,7 +51,7 @@ class DetailControllerTest extends WebTestCase
|
||||
$this->assertSame(Response::HTTP_OK, $this->client->getResponse()->getStatusCode());
|
||||
|
||||
// "zurück" goes where the reviewer came from.
|
||||
$this->assertSame(self::LIST_URL, $crawler->filter('a.btn')->first()->attr('href'));
|
||||
$this->assertSame(self::LIST_URL, $crawler->filter('[data-qa-back-link]')->attr('href'));
|
||||
|
||||
foreach (['send-receipt', 'send-follow-up'] as $action) {
|
||||
$button = $crawler->filter(sprintf('button[hx-get*="%s"]', $action));
|
||||
@@ -77,7 +77,7 @@ class DetailControllerTest extends WebTestCase
|
||||
$this->assertSame(Response::HTTP_OK, $this->client->getResponse()->getStatusCode());
|
||||
// Dropped rather than emitted empty, so the controllers fall back to the list route.
|
||||
$this->assertStringNotContainsString('r=', $crawler->filter('button[hx-get*="send-receipt"]')->attr('hx-get'));
|
||||
$this->assertSame(self::LIST_URL, $crawler->filter('a.btn')->first()->attr('href'));
|
||||
$this->assertSame(self::LIST_URL, $crawler->filter('[data-qa-back-link]')->attr('href'));
|
||||
}
|
||||
|
||||
private function submission(): ApplicationFormSubmission
|
||||
|
||||
Reference in new issue
Block a user