Registration page not allowing you to register - in behat

Bug #1438928 reported by Jinelle Foley-Barnes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Unassigned
15.04
Fix Released
Medium
Unassigned
15.10
Fix Released
Medium
Unassigned

Bug Description

Hi all,

When I am an admin and create an institution -> turn registration to be on ->log out -> follow the Registration link... type all the info into the fields (With a legit email address) then try press the Registration button it throws an error.

The error I get is telling me that some fields haven't had data entered correctly but it doens't tell me what the error is, or what required field the error is happening to.

I have uploaded a Behat test to test for this - If it's any help to use this to debug the issue and to attach your patch to when it's fixed :)

Cheers,
Jinelle

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/4559

Revision history for this message
Son Nguyen (ngson2000) wrote : Re: Registration page not allowing you to register

Hi Jinelle,

I can't reproduce the error after following the steps in your behat test.
What do you see in the log files?

Revision history for this message
Jinelle Foley-Barnes (jinelleb) wrote :

Here's the Jenkins output if it's any help :)

http://test.mahara.org/job/mahara-gerrit/1298/console

-Jinelle

Revision history for this message
Robert Lyon (robertl-9) wrote :

Ok, from what I can tell, this problem is not a problem in Mahara itself as I also can replicate when I follow the steps in the behat test manually, but probably a problem in behat itself when it sets up an institution.

I'd check that the behat way of setting up an institution is saving all the needed information.

I'll drop the severity to medium

Robert Lyon (robertl-9)
summary: - Registration page not allowing you to register
+ Registration page not allowing you to register - in behat
tags: added: behat has-behat
Revision history for this message
Robert Lyon (robertl-9) wrote :

Ok doing some more testing I believe the problem is either due to the antispam on the registration form and/or the fact the form is meant to email the admin but can't do that on "noreply@localhost:8000"

Revision history for this message
Robert Lyon (robertl-9) wrote :

Ah actually it's because behat fills in the form like a robot :)

just too fast

So we just need to delay the form submission a little bit

Revision history for this message
Robert Lyon (robertl-9) wrote :

Ok so now that the delaying by 2 seconds satisfies the spam trap we get an email error where we can't send to "noreply@localhost:8000"

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

Reviewed: https://reviews.mahara.org/4559
Committed: https://git.nzoss.org.nz/mahara/mahara/commit/c5895f82a20f742e1ce7cdd6ff225844a1c4ef17
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit c5895f82a20f742e1ce7cdd6ff225844a1c4ef17
Author: Jinelle Foley-Barnes <email address hidden>
Date: Wed Apr 1 10:33:02 2015 +1300

Behat Test: Registration process

This test needs a step the end to save the page, but seeing as there is a
bug when trying to register I cant see what the save button is called.

Check Bug 1438928 for more info on what this patches dependencies are.

Change-Id: If552c55dcbead2e37b4dbbd2b63d85bd843d51da

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "15.04_STABLE" branch: https://reviews.mahara.org/4944

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

Reviewed: https://reviews.mahara.org/4944
Committed: https://git.nzoss.org.nz/mahara/mahara/commit/61d3a17e1d99c80783c9e13ca8ba1fc93b7c1c92
Submitter: Aaron Wells (<email address hidden>)
Branch: 15.04_STABLE

commit 61d3a17e1d99c80783c9e13ca8ba1fc93b7c1c92
Author: Jinelle Foley-Barnes <email address hidden>
Date: Wed Apr 1 10:33:02 2015 +1300

Behat Test: Registration process

This test needs a step the end to save the page, but seeing as there is a
bug when trying to register I cant see what the save button is called.

Check Bug 1438928 for more info on what this patches dependencies are.

Change-Id: If552c55dcbead2e37b4dbbd2b63d85bd843d51da
(cherry picked from commit c5895f82a20f742e1ce7cdd6ff225844a1c4ef17)

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.