Skip to content

Commit

Permalink
small alert signup test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Oct 29, 2024
1 parent 9b7b253 commit b35dd1c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/AlertsPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('<input type="text" id="words0" name="words[]" aria-required="true" value="fire"', $page);
}

public function testPostCodeOnly() {
$page = $this->fetch_page([ 'alertsearch' => 'SE17 3HE']);
$this->assertStringContainsString('when Mrs Test Current-MP', $page);
$this->assertStringContainsString('Mrs Test Current-MP', $page);
}

public function testPostCodeWithKeyWord() {
Expand Down

0 comments on commit b35dd1c

Please sign in to comment.