Need a way to check popups in behat

Bug #1774274 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Unassigned

Bug Description

Currently we have a post step hook to deal with popups so we can check for existence or non-existence of a popup as they will always be closed.

We need a way to turn that functionality for a scenario/feature so we can test things correctly

I'm thinking of adding a tag called @allow_popups to the feature file so that popups stay open for the next step to check

Revision history for this message
Robert Lyon (robertl-9) wrote :
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/8887
Committed: https://git.mahara.org/mahara/mahara/commit/1eb72aa435352a100fd973fd19f2623ff16d7306
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 1eb72aa435352a100fd973fd19f2623ff16d7306
Author: Robert Lyon <email address hidden>
Date: Thu May 24 14:20:17 2018 +1200

Bug 1774274: Added scenarios that incorporate checking popups

To allow checking for a popup we need to stop the after_step hook
closing the popup before we check it.

To do this we need to add tag called @allow_popups to the feature file
so that popups stay open for the next step to check

To use with steps:
- And I should not see a popup
- And I accept the alert popup
- And I accept the confirm popup
- And I cancel the confirm popup
- And I should see "text" in popup

Change-Id: I5fa4827b12b355204141dd8b052bc4f5c77ae3a0
Signed-off-by: Robert Lyon <email address hidden>

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
tags: added: nominatedfeature
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
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.