Behat can't target property

Bug #1860941 reported by Rangi Daymond
6
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/code/behat/mahara/test/behat/features/user_content/copy_note_content.feature:17
      And I should see "Note page1 block 1 original" in the "Block title" property # /home/rdaymond/code/behat/mahara/test/behat/features/user_content/copy_note_content.feature:43
        "Note page1 block 1 original" text was not found in the "#instconf_title" element (Behat\Mink\Exception\ExpectationException)

Tags: behat-dev
Changed in mahara:
assignee: nobody → Rebecca Blundell (rjb-dev)
Revision history for this message
Rebecca Blundell (rjb-dev) wrote :

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.

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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.