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:
Given
I am the instructorGiven
I am the studentThen
go to the site
Given
I am "<username>"Then
create user "<username>" "<type:optional>"- type can be one of:
- registered (default)
- maintain
- type can be one of:
Then
create site "<sitename>"Then
add user "<username>" to site "<sitename>" "<type:optional>"- type can be one of:
- access (default)
- maintain
- type can be one of:
Then
add the "<toolname>" toolThen
go to site "<sitename>"Then
delete site "<sitename>"Then
remove user "<username>"Then
logout