Skip to content

Commit

Permalink
Fixed issue: Missing validation for start language in data entry
Browse files Browse the repository at this point in the history
Dev Fixed test
  • Loading branch information
c-schmitz committed Feb 18, 2022
1 parent e211f42 commit f85c39a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/functional/backend/SaveEditedReponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,12 @@ public function testQuestionEditor()
sleep(5);

$completedElement = $web->findElement(WebDriverBy::id('startlanguage'));
$completedElement->clear();
$completedElement->sendKeys("de");
$allOptions = $completedElement->findElement(WebDriverBy::tagName('option'));
foreach ($allOptions as $option) {
if ($option->getAttribute('value') == 'de') {
$option->click();
};
}

sleep(1);

Expand Down

0 comments on commit f85c39a

Please sign in to comment.