Skip to content

Commit

Permalink
fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
kongtiaowang committed Nov 5, 2024
1 parent 69f2321 commit 1d9b2cc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions modules/candidate_list/test/candidate_listTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,20 +309,22 @@ function testDataEntryAndOpenProfile()
$this->safeGet($this->url . "/candidate_list/");
//click open profile button
$btn = self::$openProfile;
$this->safeClick(WebDriverBy::cssSelector($btn),1);
$this->safeClick(WebDriverBy::cssSelector($btn), 1);
// input PSCID and DCCID
$dccid = 'input[name="CandID"]:nth-child(1)';
$pscid = 'input[name="PSCID"]:nth-child(1)';
// to do react input value
$this->safeFindElement(
WebDriverBy::cssSelector($dccid),1
WebDriverBy::cssSelector($dccid),
1
)->sendKeys('300001');
$this->safeFindElement(
WebDriverBy::cssSelector($pscid),1
WebDriverBy::cssSelector($pscid),
1
)->sendKeys('MTL001');
$btn = ".col-sm-12 > .row .btn";
//to do check the url
$this->safeClick(WebDriverBy::cssSelector($btn),1);
$this->safeClick(WebDriverBy::cssSelector($btn), 1);
sleep(2);
$URL = $this->webDriver->executeScript("return window.location.href;");
$this->assertStringContainsString("300001", $URL);
Expand Down

0 comments on commit 1d9b2cc

Please sign in to comment.