mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #57365
[Bug 1860941] Re: Behat: can't target property
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.
** Attachment added: "Screenshot from 2020-01-28 17-28-38.png"
https://bugs.launchpad.net/mahara/+bug/1860941/+attachment/5323434/+files/Screenshot%20from%202020-01-28%2017-28-38.png
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1860941
Title:
Behat: can't target property
Status in Mahara:
New
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1860941/+subscriptions
References