For now, I recommend using Electron, the built-in Chromium based browser.
Clone this repository:
git clone https://github.com/psev/sakai-cypress-test
Move into the cloned repository:
cd sakai-cypress-test
Then, install dependencies:
npm install
To open Cypress, run:
npm run cypress:open
To run Cypress in headless mode and only for a specific version, run:
./node_modules/.bin/cypress-tags run -e TAGS='@sakai-20'
Feature: This is an example feature
@sakai-20
@site
Scenario: This is an example scenario
Given I am the instructor
Then go to the site
Then add the "announcements" tool
# Add other steps here.
Then logout@admin- Login as admin.
@site- Create a temporary site and its users.
@sakai-20- Uses
https://qa20-mysql.nightly.sakaiproject.org.
- Uses
- @site instructions:
GivenI am the instructorGivenI am the studentThengo to the site
GivenI am "<username>"Thencreate user "<username>" "<type:optional>"- type can be one of:
- registered (default)
- maintain
- type can be one of:
Thencreate site "<sitename>"Thenadd user "<username>" to site "<sitename>" "<type:optional>"- type can be one of:
- access (default)
- maintain
- type can be one of:
Thenadd the "<toolname>" toolThengo to site "<sitename>"Thendelete site "<sitename>"Thenremove user "<username>"Thenlogout