Commit c5895f82 authored by Jinelle Foley-Barnes's avatar Jinelle Foley-Barnes Committed by Robert Lyon
Browse files

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
parent 1d2828d3
@javascript @core @core_account
Feature: Registration procedure
In order to check that a person can register
As an admin
So people can have access to their Mahara
Scenario: Registering as a new student and checking swtich can flick back and forth (Bug 1431569)
Given I log in as "admin" with password "Password1"
And the following "institutions" exist:
| name | displayname | registerallowed | registerconfirm |
| instone | Institution One | ON | ON |
And I follow "Logout"
And I follow "Register"
And I fill in the following:
| First name | Lightening |
| Last name | McQueen |
| Email address | fakeymcfakey@gmail.com |
| Registration reason | I will absolutely make this institution more amazing!! |
# we wait a human amount of time so the spam trap is avoided
And I wait "4" seconds
And I press "Register"
And I follow "Login"
And I log in as "admin" with password "Password1"
And I follow "Administration"
And I choose "Pending registrations" in "Institutions"
And I follow "Approve"
# Checking switch matches the default value
And the following fields match these values:
| Institution staff | 0 |
# Turning it to the opposite
And I set the following fields to these values:
| Institution staff | 1 |
# Checking it can turn back to the default setting
And I set the following fields to these values:
| Institution staff | 0 |
And I press "Approve"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment