Skip to content

Latest commit

 

History

History
80 lines (56 loc) · 1.56 KB

README.md

File metadata and controls

80 lines (56 loc) · 1.56 KB

Sakai Automated QA

For now, I recommend using Electron, the built-in Chromium based browser.

Installation

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

Running

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'

Testing

Basic Example

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

Tags

General

  • @admin
    • Login as admin.
  • @site
    • Create a temporary site and its users.

Versions

  • @sakai-20
    • Uses https://qa20-mysql.nightly.sakaiproject.org.

Instructions

  • @site instructions:
    • Given I am the instructor
    • Given I am the student
    • Then go to the site
  • Given I am "<username>"
  • Then create user "<username>" "<type:optional>"
    • type can be one of:
      • registered (default)
      • maintain
  • Then create site "<sitename>"
  • Then add user "<username>" to site "<sitename>" "<type:optional>"
    • type can be one of:
      • access (default)
      • maintain
  • Then add the "<toolname>" tool
  • Then go to site "<sitename>"
  • Then delete site "<sitename>"
  • Then remove user "<username>"
  • Then logout