I found it was not as easy as having those steps mentioned in comment #3 as often what happens is one step triggers the popup, eg deleting something or navigating to another page so the behat fails out as it doesn't fully do that step before getting to a possible 'I accept the alert' step in behat scenario.
That's why for 'I delete the block' step I added the code to accept the popup as part of that function. -- 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/1415252 Title: New Behat step: We need a step for dialogue boxes Status in Mahara: In Progress Status in Mahara 15.04 series: Confirmed Status in Mahara 15.10 series: In Progress Bug description: Hi, We need to implement a step that can click on the dialogue boxes when they pop up. I have attached a part of a test below, this should allow for a dialogue box to pop up so you can see it. I cant run it on my machine at the mo, but these are the steps that made the confirmation box to appear in 1.10. Thanks, Jinelle To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1415252/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp