Skip to content

Commit

Permalink
Update the candidate Test
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Feb 28, 2024
1 parent 3cd3888 commit adcd615
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions modules/candidate_profile/test/candidate_profileTest.php
Expand Up @@ -98,12 +98,14 @@ function testCandidateProfileWithoutProjectPermissions()
*/
function testCandidateProfileInstrumentLink()
{
$this->setupPermissions(['superuser']);
$this->setupPermissions(['superuser']);

$this->safeGet($this->url . "/candidate_profile/115788/");
$this->safeClick( WebDriverBy::cssSelector( '#card0 > div > div > div > dl > div:nth-child(9) > dd > div > a:nth-child(1)' ) );
$this->safeGet($this->url . "/candidate_profile/115788/");
$this->safeClick( WebDriverBy::cssSelector( '#card0 > div > div > div > dl > div:nth-child(9) > dd > div > a:nth-child(1)' ) );

$bodyText = $this->safeFindElement(WebDriverBy::cssSelector("body"))->getText();
$bodyText
= $this->safeFindElement(WebDriverBy::cssSelector("body"))
->getText();
$this->assertStringContainsString(
"Behavioural Battery of Instruments",
$bodyText
Expand Down

0 comments on commit adcd615

Please sign in to comment.