Skip to content

Instantly share code, notes, and snippets.

@dmonllao
Created February 7, 2013 03:27
Show Gist options
  • Select an option

  • Save dmonllao/4728164 to your computer and use it in GitHub Desktop.

Select an option

Save dmonllao/4728164 to your computer and use it in GitHub Desktop.
Nonsense feature to check that MDL-37750 does not provoke any regression
@MDL-37750
Feature: Wait ALWAYS for the page to be loaded
In order to avoid false failures
As a moodle developer
I need to check that this patch works
@javascript
Scenario: Big tests to run all the modified steps
Given the following "courses" exists:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And I log in as "admin"
And I log out
And I log in as "admin"
And I expand "Site pages" node
And I follow "Course 1"
And I turn editing mode on
And I add a "Chat" to section "3" and I fill the form with:
| Name of this chat room | Test chat |
| Introduction text | Test introduction |
And I should not see "Required"
And I should see "Add an activity or resource"
And I fill in "Search" with "Whatever"
And I follow "Grades"
And I select "Edit" from "Grade report"
And I should see "Override site defaults" in the "#page-content #gradeletters #fitem_id_override" element
And I should not see "ASD" in the "#page-content #gradeletters #fitem_id_override" element
And I select "Full view" from "Grade report"
And the "Grade report" select box should contain "Full view"
And the "Grade report" select box should not contain "Alluete view"
When I check "Aggregate only non-empty grades"
And the "Aggregate only non-empty grades" checkbox should be checked
And I uncheck "Aggregate only non-empty grades"
And the "Aggregate only non-empty grades" checkbox should not be checked
And I press "Save changes"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment