partial_example.feature 2 KB
Newer Older
1
2
3
4
5
6
7
@javascript @core @meta_test
Feature: Testing Behat's functionality
    In order to be able to use every functionality in Mahara is working correct
    As an admin I need to log in
    And test every link/file/button/checkbox etc. possible

Scenario: Meta test testing Behat's functionality (Bug #1387836)
Gregor Anzelj's avatar
Gregor Anzelj committed
8
    Given I log in as "admin" with password "Kupuh1pa!"
9
    And I am on homepage
10
    And I choose "Profile" in "Content" from main menu
11
    And I follow "About me"
12
13
14
15
    And I set the following fields to these values:
    | First name | test first name |
    | Last name | test last name |
    And I press "Save profile"
16
    And I choose "Pages and collections" in "Portfolio" from main menu
17
    # Creating a page
18
19
    And I follow "Add"
    And I click on "Page" in the dialog
20
    And I fill in "Page title" with "test page name 1"
21
22
23
24
    And I press "Save"
    # Verifying it saved
    And I should see "Page saved successfully"
    # Creating a collection
25
    And I choose "Pages and collections" in "Portfolio" from main menu
26
27
    And I follow "Add"
    And I click on "Collection" in the dialog
28
    And I fill in "Collection name" with "test collection name"
29
30
31
32
33
34
35
36
37
38
39
    And the "Page navigation bar" checkbox should be checked
    And I press "Next: Edit collection pages"
    # Adding pages to the collection
    And I press "Add pages"
    # Verifying it added
    And I should see "You need to select a page to add to the collection."
    And the checkbox "test page name 1" should be unchecked
    And I check "test page name 1"
    And the "test page name 1" checkbox should be checked
    And I press "Add pages"
    And I follow "Done"
40
41
    And I click on "test collection name" panel menu
    And I should see "Delete"
42
    And I go to the homepage
43
    And I choose "Export" in "Portfolio" from main menu
44
45
    And I move backward one page
    And I move forward one page
46
    And I choose "Profile" in "Content" from main menu
47
48
49
    And the "First name" field should not contain "Jinelle"
    And the "First name" field should contain "test first name"