Commit a2faec5e authored by Ivo Fokkema's avatar Ivo Fokkema

Phenotype creation test fails on all runs, completely clueless why. Random...

Phenotype creation test fails on all runs, completely clueless why. Random attempt to get it to work.
- Cannot find what code change might have affected this. Manual tests work just fine. Absolutely clueless.
parent 9eae471b
......@@ -15,7 +15,10 @@ class AddPhenotypeInfoToHealthyIndividualTest extends LOVDSeleniumWebdriverBaseT
$element = $this->driver->findElement(WebDriverBy::xpath("//div/table/tbody/tr/td/table/tbody/tr/td[2]/b"));
$element->click();
$this->assertTrue((bool)preg_match('/^[\s\S]*\/src\/phenotypes[\s\S]create&target=00000001$/', $this->driver->getCurrentURL()));
// $this->selectWindow("null");
// This page redirects once. To prevent problems, we'll wait until we get the form.
$this->waitUntil(WebDriverExpectedCondition::presenceOfElementLocated(WebDriverBy::xpath("//input[@value='Create phenotype information entry']")));
$this->enterValue(WebDriverBy::name("Phenotype/Age"), "35y");
$option = $this->driver->findElement(WebDriverBy::xpath('//select[@name="owned_by"]/option[text()="LOVD3 Admin (#00001)"]'));
$option->click();
......
......@@ -9,7 +9,6 @@ class MakeUserCollaboratorGJBTest extends LOVDSeleniumWebdriverBaseTestCase
public function testMakeUserCollaboratorGJB()
{
$this->driver->get(ROOT_URL . "/src/genes/GJB1?authorize");
// $this->selectWindow("null");
$element = $this->driver->findElement(WebDriverBy::linkText("Test Collaborator"));
$element->click();
// $this->uncheck("xpath=(//input[@name='allow_edit[]'])[2]");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment