Behat Step required for verifying that text exists/not exists within an element

Bug #1837492 reported by Steven
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Confirmed
Wishlist
Unassigned

Bug Description

BUG SUMMARY: I am trying to verify that a Group is not displayed in the search results list on the "Groups" page if I do not own a group. If I just use And I should see "text" step. The script will pass because the group I do not own is a group that I am a member of. The text will display in the profile side block on the page
NOTE: Behat script is found here https://reviews.mahara.org/#/c/10181/

ACCEPTANCE CRITERIA:

1) Script should verify that text exists or does not exist within a specific part of a page (ie. in the search result table of the page)

******************************************************

Environment tested: Master
Browser tested: Chrome

PRECONDITIONS:
------------------------
1) Behat script can be found here https://reviews.mahara.org/#/c/10181/

TEST STEPS: # User selects Groups I own
------------------------
Given I log in as "UserC" with password "Kupuh1pa!"
When I choose "Groups" in "Engage" from main menu
When I select "Groups I own" from "Filter"
And I press "Search"
Then I should not see "GroupA"

EXPECTED RESULT: The search results do not display any groups and the test script should fail

ACTUAL RESULT: The search results do not display any groups and the test script passes - because the Text GroupA is displayed in the profile side block on the page

Tags: behat-dev
Changed in mahara:
status: New → Confirmed
importance: Undecided → Wishlist
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.