Commit f706c802 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Kristina Hoeppner
Browse files

Bug 1896346: Behat: replacing group creation with background step

Change-Id: I840c3fd2f43fc0f59c2edae95458569f30e0e1d2
parent dd781de2
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -8,14 +8,14 @@ Background:
Given the following "users" exist:
    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
And the following "groups" exist:
    | name    | owner | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | public |
    | Turtles | admin | standard | ON | ON | all | ON | ON | UserA | 1 |

Scenario: Turning on and off switches in the group forums tab (Bug 1431569)
    Given I log in as "admin" with password "Kupuh1pa!"
    And I choose "Groups" in "Engage" from main menu
    And I follow "Create group"
    And I set the following fields to these values:
    | Group name | Turtles |
    When I press "Save group"
    And I follow "Turtles"
    And I follow "Forums"
    And I follow "General discussion"
    And I follow "Edit forum"
@@ -51,10 +51,7 @@ Scenario: Turning on and off switches in the group forums tab (Bug 1431569)
# Person joins group and unsubscribes from Freshwater turtles forum
    Given I log in as "UserA" with password "Kupuh1pa!"
    And I choose "Groups" in "Engage" from main menu
    And I select "All groups" from "filter"
    And I press "Search"
    And I wait "1" seconds
    And I press "Join this group"
    And I follow "Turtles"
    And I follow "Forums (tab)"
    And I should see "Unsubscribe" in the "General discussion" row
    And I should see "Unsubscribe" in the "Freshwater turtles" row
+4 −4
Original line number Diff line number Diff line
@@ -18,6 +18,10 @@ Background:
    | UserD | Kupuh1pa! | UserD@example.org | Dave | UserD | insttwo | internal | member |
    | UserE | Kupuh1pa! | UserE@example.org | Earl | UserE | insttwo | internal | member |

    And the following "groups" exist:
    | name          | owner | grouptype | editroles |
    | The Avengers  | admin | standard  | all       |

    Given I log in as "UserA" with password "Kupuh1pa!"
    And I choose "People" in "Engage" from main menu
    When I click on "Send friend request" in "Bob UserB" row
@@ -62,10 +66,6 @@ Background:
Scenario: Turning on and off switches on Group Edit page (Bug 1431569)
    Given I log in as "admin" with password "Kupuh1pa!"
    And I choose "Groups" in "Engage" from main menu
    And I follow "Create group"
    And I set the following fields to these values:
    | Group name | The Avengers |
    And I press "Save group"
    And I follow "Edit \"The Avengers\" Settings"
    # Checking all the switches can all be changed
    And I set the following fields to these values:
+4 −10
Original line number Diff line number Diff line
@@ -10,17 +10,11 @@ Background:
    | UserA   | Kupuh1pa!   | UserA@example.org   | Angela   | User | mahara    | internal  | member    |
    | UserB   | Kupuh1pa!   | UserB@example.org   | Bob   | User | mahara    | internal  | member    |
 
    And the following "groups" exist:
    | name             | owner | grouptype | editroles |
    | Testing Group 1  | admin | course    | all       |

Scenario: Creating a group and adding members to it (Bug 1426983)
    # Log in as "Admin" user
    Given I log in as "admin" with password "Kupuh1pa!"
    # Creating Testing group 1
    And I choose "Groups" in "Engage" from main menu
    And I follow "Create group"
    And I fill in "Group name" with "Testing Group 1"
    And I select "Course: Member, Tutor, Admin" from "Roles"
    And I press "Save group"
    # Log out as "Admin user"
    And I log out
    # Log in as user 1
    And I log in as "UserA" with password "Kupuh1pa!"
    # Joining Testing group 1
+6 −4
Original line number Diff line number Diff line
@@ -4,15 +4,17 @@ Feature: Move posts between forums within groups
    As an admin create a group with a forum
    So I can create different posts and move them around

Background:
    And the following "groups" exist:
    | name             | owner | grouptype | editroles |
    | Testing Group 1  | admin | standard    | all       |

Scenario: Moving pages within a group (Bug 1426983)
    # Log in as "Admin" user
    Given I log in as "admin" with password "Kupuh1pa!"
    # Creating a group
    And I choose "Groups" in "Engage" from main menu
    And I follow "Create group"
    And I set the following fields to these values:
        | Group name    | Testing Group 1   |
    And I press "Save group"
    And I follow "Testing Group 1"
    # Creating a forum
    And I follow "Forums (tab)"
    And I follow "New forum"