The text boxes aren't being cleared before Behat puts the new text in.
Bug #1407847 reported by
Jinelle Foley-Barnes
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Son Nguyen | ||
15.04 |
Fix Released
|
Medium
|
Unassigned | ||
15.10 |
Fix Released
|
Medium
|
Son Nguyen |
Bug Description
Hi Sonn,
When you run a Behat test, some fields have default text in them and it's not being cleared so Behat can write the new text entry into that field.
For example when you add a text block the default text in the Block title is Text. If the Behat test says
And I fill in "Block title" with "Jabber" it will fill in the block with "TextJabber".
Therefore any steps after that are looking for the block title will fail, because it says "TextJabber" not "Jabber".
I have attached the first part of a test below that you can run. In this instance specifically, it is saving the first name as "test first namedmin" instead of "test first name".
Thanks,
Jinelle
Changed in mahara: | |
assignee: | nobody → Son Nguyen (ngson2000) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in mahara: | |
milestone: | 15.04.0 → 15.04.1 |
Changed in mahara: | |
milestone: | 15.04.1 → 15.10.0 |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is an issue of selenium driver reported here https:/ /github. com/minkphp/ MinkSelenium2Dr iver/issues/ 188 and https:/ /github. com/minkphp/ MinkSelenium2Dr iver/issues/ 198.
This issue will happen to all 'autofocus' input elements, like
<input type="text" class="form-control required text autofocus" id="profileform _firstname" name="firstname" size="30" tabindex="0" maxlength="50" value="Admin">
I will try to implement a work-around