mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-37750 behat: Adding tests for the rest of the steps definitions
- Loading branch information
David Monllao
committed
Feb 8, 2013
1 parent
1f9ffbd
commit bf4fa29
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@tool_behat | ||
Feature: Page contents assertions | ||
In order to write good tests | ||
As a tests writer | ||
I need to check the page contents | ||
|
||
@javascript | ||
Scenario: Basic contents assertions | ||
Given I log in as "admin" | ||
And I am on homepage | ||
And I expand "Users" node | ||
And I follow "Groups" | ||
And I press "Create group" | ||
And I fill the moodle form with: | ||
| Group name | I'm the name | | ||
| Group description | I'm the description | | ||
And I press "Save changes" | ||
When I follow "Overview" | ||
And I wait until the page is ready | ||
And I wait "2" seconds | ||
And I hover ".region-content .generaltable td span" | ||
Then I should see "I'm the description" | ||
And I should see "Filter groups by" | ||
And I should not see "Filter groupssss by" | ||
And I should see "Group members" in the ".region-content table th.c1" element | ||
And I should not see "Group membersssss" in the ".region-content table th.c1" element | ||
And I follow "Groups" | ||
And the element "#groupeditform #showcreateorphangroupform" should be enabled | ||
And the element "#groupeditform #showeditgroupsettingsform" should be disabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@tool_behat @core_form | ||
Feature: Forms manipulation | ||
In order to interact with Moodle | ||
As a user | ||
I need to set forms values | ||
|
||
@javascript | ||
Scenario: Basic forms manipulation | ||
Given I log in as "admin" | ||
And I follow "Admin User" | ||
And I follow "Edit profile" | ||
When I fill in "First name" with "Field value" | ||
And I select "Use standard web forms" from "When editing text" | ||
And I check "Unmask" | ||
Then the "First name" field should match "Field value" value | ||
And the "When editing text" select box should contain "Use standard web forms" | ||
And the "Unmask" checkbox should be checked | ||
And I uncheck "Unmask" | ||
And the "Unmask" checkbox should not be checked | ||
And I press "Update profile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters