From b35dd1ca432849719f2c4a35fa8388d606e62a02 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Tue, 29 Oct 2024 15:24:30 +0000 Subject: [PATCH] small alert signup test fixes --- tests/AlertsPageTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/AlertsPageTest.php b/tests/AlertsPageTest.php index 6d62a781a7..720f6f3a0c 100644 --- a/tests/AlertsPageTest.php +++ b/tests/AlertsPageTest.php @@ -22,12 +22,13 @@ public function testFetchPage() { public function testKeywordOnly() { $page = $this->fetch_page([ 'alertsearch' => 'elephant']); - $this->assertStringContainsString('Receive alerts when [elephant] is mentioned', $page); + $this->assertStringContainsString('What word or phrase would you like to recieve alerts about', $page); + $this->assertStringContainsString('fetch_page([ 'alertsearch' => 'SE17 3HE']); - $this->assertStringContainsString('when Mrs Test Current-MP', $page); + $this->assertStringContainsString('Mrs Test Current-MP', $page); } public function testPostCodeWithKeyWord() {