Skip to content

sakaiproject/sakai-cypress-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published