Behat can't target property
Bug #1860941 reported by
Rangi Daymond
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Triaged
|
Medium
|
Unassigned |
Bug Description
Need to look into why Behat can't see text in the block title field of the copy_note modal (refer patch for bug 1044878)
--- Failed steps:
001 Scenario: Page1 - create note with content then use it to create another note (via copy) # /home/rdaymond/
And I should see "Note page1 block 1 original" in the "Block title" property # /home/rdaymond/
"Note page1 block 1 original" text was not found in the "#instconf_title" element (Behat\
Changed in mahara: | |
assignee: | nobody → Rebecca Blundell (rjb-dev) |
summary: |
- Behat: can't target property + Behat can't target property |
Changed in mahara: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in mahara: | |
assignee: | Rebecca Blundell (rjb-dev) → nobody |
To post a comment you must log in.
At the time we are looking for the text "Note page1 block1 original title" in the modal title, the value of the title field, #instconf_title is "Placeholder", so Behat is unable to 'see' the title.
In the page source there are 6 instances of the title we are looking for, but none of those 6 are the one we want to target.
Once the modal has been saved and the data written back, it exists in the field and can be found be Behat if the configure modal is opened up again.
The question this raises is, if we can see it on the page, shouldn't the value of the field reflect what is displayed at the time?
As functionality is not affected, maybe we just label this "won't fix" and do the tests after the "Save" has happened.