/** * Tests that, create a timepoint and test the success link * * * @return void */ function testCreateTimepointSuccessLink() { $this->_createTimepoint('900000', 'Experimental', 'V9'); $this->safeClick(WebDriverBy::LinkText("Click here to continue.")); $bodyText = $this->webDriver->findElement(WebDriverBy::cssSelector("body"))->getText(); $this->assertContains("Could not select Candidate data from the database (DCCID: )", $bodyText); }
/** * Does one of two things: either accesses the My Preferences page of the * current user of the user account page for the user whose ID is passed * as argument. * * @param string $page either 'user_accounts' or 'user_accounts/my_preferences' * @param string $userId ID of the user whose page should be accessed. * * @return void. */ function _accessUser($page, $userId) { $this->safeGet($this->url . "/{$page}/"); if ($page == 'user_accounts') { $this->safeClick(WebDriverBy::LinkText($userId)); } }