Commit 4b88a513 authored by Robert Lyon's avatar Robert Lyon Committed by Aaron Wells
Browse files

Bug 1465462: fixing up behat tests in notifications section



For activity_type_messages.feature we need to add some emails first or
otherwise the form field is not present. To do: make this a direct add
to db step for faster testing

Change-Id: I4ddca6465bdba912b66298d0656867ed9d588606
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 73cd20aa
......@@ -8,11 +8,33 @@ Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | member |
Given I log in as "admin" with password "Password1"
And I follow "Administration"
And I follow "Users"
And I follow "Pete"
And I follow "Send message"
And I fill in the following:
| Subject | Hi there |
| Message | This is a test message |
And I press "Send message"
And I log out
Given I log in as "userA" with password "Password1"
When I follow "Inbox"
And I follow "Hi there"
And I wait "1" seconds
And I follow "Reply"
And I fill in the following:
| Reply | Hi yourself |
And I press "Reply"
And I log out
Scenario Outline: Selection options to filter messages as an admin (Bug 1433342)
# First make sure each user has a message
# Then test for activity types
Given I log in as "admin" with password "Password1"
When I follow "Inbox"
And I select "<types>" from "Activity type"
And I select "<types>" from "Activity type:"
Examples:
| types |
......
......@@ -17,5 +17,5 @@ Scenario: Clicking on the Inbox link on the dashboard page (Bug 1427019)
# Verifying that you do not see a page full of error messages
And I should not see "Call stack"
And I should see "Notifications"
And I should see "Reply"
And I should see "Compose"
@javascript @core @core_messages
Feature: message visible required fields astrix
In order to see astrix on some fields when sending a message
Feature: Asterix (*) on required fields on Send Message page
In order to see an asterix on the required fields when sending a message
As an admin
So I can know I am required to fill those fields in so i can send the message
So I can know I am required to fill those fields in so I can send the message
Scenario:
Given I log in as "admin" with password "Password1"
......
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