public function selectOptionInChosenById($selectId, $option) {
$chosenSelectID = $selectId . '_chzn';
$I = $this;
$I->comment("I open the $chosenSelectID chosen selector");
$I->click(['xpath' => "//div[@id='$chosenSelectID']/a/div/b"]);
$I->comment("I select $option");
$I->click(['xpath' => "//div[@id='$chosenSelectID']//li[text()='$option']"]);
// Gives time to chosen to close
$I->wait(1);
}
If you have a look at the current mark up in joomla-cms you see this markup:
public function selectOptionInChosenById($selectId, $option)
{
$chosenSelectID = $selectId . "_chzn";
$I = $this;
$I->comment("I open the $chosenSelectID chosen selector");
$I->click(['xpath' => "//div[@id='$chosenSelectID']/a/span"]);
$I->comment("I select $option");
$I->click(['xpath' => "//div[@id='$chosenSelectID']//span[text()='$option']"]);
// Gives time to chosen to close
$I->wait(1);
}
So the selectors /div/b and li has to changed in span.
As we are now start to create a editor for gherkin we have to find a solution for this problem.
Steps to reproduce the issue
Run all tests
Expected result
All tests are successful.
Actual result
The test stopped on this line: https://github.com/joomla-projects/gsoc16_browser-automated-tests/blob/staging/tests/codeception/acceptance/category.feature#L77
Additional comments
The reason why this tests stops is the following: The mark up of the drop down changed.
At the moment the method
https://github.com/joomla-projects/gsoc16_browser-automated-tests/blob/staging/tests/codeception/_support/Step/Acceptance/Administrator/Category.php#L513
is starting the method
https://github.com/joomla-projects/gsoc16_browser-automated-tests/blob/staging/tests/codeception/_support/Page/Acceptance/Administrator/AdminPage.php#L261
and expects this markup:
If you have a look at the current mark up in joomla-cms you see this markup:
So the selectors /div/b and li has to changed in span.
As we are now start to create a editor for gherkin we have to find a solution for this problem.