AutorÃa | Ultima modificación | Ver Log |
@tool @tool_behatFeature: Use core page resolvers for the I am on the page stepsIn order to write tests correctlyAs a developerI need to have steps which take me straight to a pageScenario Outline: When I am on an instanceGiven the following "categories" exist:| name | category | idnumber || Cat 1 | 0 | CAT1 |And the following "course" exists:| fullname | Economics 101 || shortname | ECON101 || idnumber | 2021-econ101 |And the following "activity" exists:| course | ECON101 || activity | forum || name | Fundamentals of Economics || idnumber | fundamentalsofeconomics |And I log in as "admin"When I am on the <identifier> <type> pageThen I should see "<shouldsee>"Examples:| description | identifier | type | shouldsee || Course Category idnumber | CAT1 | category | Add a new course || Course Category name | "Cat 1" | Category | Add a new course || Course Full name | "Economics 101" | course | Fundamentals of Economics || Course Short name | ECON101 | COURSE | Fundamentals of Economics || Course idnumber | "2021-econ101" | Course | Fundamentals of Economics || Forum idnumber | fundamentalsofeconomics | Activity | Add discussion topic || Generic activity editing | fundamentalsofeconomics | "Activity editing" | Edit settings || Forum name | "Fundamentals of Economics" | "Forum activity" | Add discussion topic || Forum name editing | "Fundamentals of Economics" | "Forum activity editing" | Edit settings || Forum name permissions | "Fundamentals of Economics" | "Forum activity permissions" | Permissions in Forum: Fun || Forum name roles | "Fundamentals of Economics" | "Forum activity roles" | Assign roles in Forum: Fun |Scenario Outline: When I am on an instance logged in asGiven the following "categories" exist:| name | category | idnumber || Cat 1 | 0 | CAT1 |And the following "course" exists:| fullname | Economics 101 || shortname | ECON101 || idnumber | 2021-econ101 |And the following "activity" exists:| course | ECON101 || activity | forum || name | Fundamentals of Economics || idnumber | fundamentalsofeconomics |When I am on the <identifier> <type> page logged in as adminThen I should see "<shouldsee>"Examples:| description | identifier | type | shouldsee || Course Category idnumber | CAT1 | category | Add a new course || Course Category name | "Cat 1" | Category | Add a new course || Course Full name | "Economics 101" | course | Fundamentals of Economics || Course Short name | ECON101 | COURSE | Fundamentals of Economics || Course idnumber | "2021-econ101" | Course | Fundamentals of Economics || Forum idnumber | fundamentalsofeconomics | Activity | Add discussion topic || Generic activity editing | fundamentalsofeconomics | "Activity editing" | Edit settings || Forum name | "Fundamentals of Economics" | "Forum activity" | Add discussion topic || Forum name editing | "Fundamentals of Economics" | "Forum activity editing" | Edit settings || Forum name permissions | "Fundamentals of Economics" | "Forum activity permissions" | Permissions in Forum: Fun || Forum name roles | "Fundamentals of Economics" | "Forum activity roles" | Assign roles in Forum: Fun |Scenario Outline: When I am on a named pageGiven I log in as "admin"When I am on the <identifier> pageThen I should see "<shouldsee>"Examples:| description | identifier | shouldsee || Admin page | "Admin notifications" | Check for available updates || Home page | Homepage | Calendar |Scenario Outline: When I am on a named page logged in asWhen I am on the <identifier> page logged in as adminThen I should see "<shouldsee>"Examples:| description | identifier | shouldsee || Admin page | "Admin notifications" | Check for available updates || Home page | Homepage | Calendar |