Skip to content
Repository.feature 4.91 KiB
Newer Older
pmaass's avatar
pmaass committed
Feature: Repository (English)
  this feature tests the general functions and availability of the Repository in ilias 5.3.
  it also tests every route

  Scenario: site available
    Given I am on "https://build53.invorbereitung.de/goto.php?target=root_1&client_id=build53&lang=en"
pmaass's avatar
pmaass committed
    Then I should see "Open Source eLearning"
    And I should see "Repository"
    And I should see "Categories"
    And I should see "Login"
    And I should not see "Error"

  @login
  Scenario: Category route
    Given I am on "https://build53.invorbereitung.de/repository.html"
    Then I should see "CATEGORIES"
    And I should see "Behat Kategorie"
    When I follow "Behat Kategorie"
    Then I should be on "https://build53.invorbereitung.de/repository/category/145.html"
    And I should see "Behat Kategorie"
    And I should not see "Error"

  @login
  Scenario: Studyprogramm Route
    Given I am on "https://build53.invorbereitung.de/repository.html"
    Then I should see "STUDY PROGRAMMES"
    And I should see "Behat Studienprogramm"
    When I follow "Behat Studienprogramm"
    Then I should be on "https://build53.invorbereitung.de/repository/studyprogramm/148.html"
    And I should see "Behat Studienprogramm"
    And I should not see "Error"

  @login
  Scenario: Course Route
    Given I am on "https://build53.invorbereitung.de/repository.html"
    Then I should see "COURSES"
    And I should see "Behat Kurs"
    When I follow "Behat Kurs"
    Then I should be on "https://build53.invorbereitung.de/repository/142.html"
    And I should see "Behat Kurs"
    And I should not see "Error"

  @login
  Scenario: Folder Route
    Given I am on "https://build53.invorbereitung.de/repository.html"
    Then I should see "COURSES"
    And I should see "Behat Kurs"
    When I follow "Behat Kurs"
    And I should see "Behat Ordner"
    When I follow "Behat Ordner"
    Then I should be on "https://build53.invorbereitung.de/repository/folder/143.html"
    And I should see "Behat Ordner"
    And I should not see "Error"

  @login
  Scenario: Group Route
    Given I am on "https://build53.invorbereitung.de/repository.html"
    Then I should see "GROUPS"
    And I should see "Behat Gruppe"
    When I follow "Behat Gruppe"
    Then I should be on "https://build53.invorbereitung.de/repository/144.html"
    And I should see "Behat Gruppe"
    And I should not see "Error"

  @login
  Scenario: Glossary Route
pmaass's avatar
pmaass committed
    Given I am on "https://build53.invorbereitung.de/repository.html"
    Then I should see "GLOSSARIES"
    And I should see "Behat Glossar"
    When I follow "Behat Glossar"
    Then I should be on "https://build53.invorbereitung.de/glossary/150.html"
    And I should see "Behat Glossar"
    And I should not see "Error"

  @login
  Scenario: Excerise Route
pmaass's avatar
pmaass committed
    Given I am on "https://build53.invorbereitung.de/repository.html"
    Then I should see "EXERCISES"
    And I should see "Behat Übung"
    When I follow "Behat Übung"
    Then I should be on "https://build53.invorbereitung.de/exercise/155.html"
    And I should see "Behat Übung"
    And I should not see "Error"

  @login
  Scenario: Test
    Given I am on "https://build53.invorbereitung.de/repository.html"
    Then I should see "Tests"
    And I should see "Behat Test"
    When I follow "Behat Test"
    Then I should be on "https://build53.invorbereitung.de/repository/test/154.html"
    And I should see "Behat Test"
    And I should not see "Error"

  @login
  Scenario: Survey Route
pmaass's avatar
pmaass committed
    Given I am on "https://build53.invorbereitung.de/repository.html"
    Then I should see "SURVEYS"
    And I should see "Behat Umfrage"
    When I follow "Behat Umfrage"
    Then I should be on "https://build53.invorbereitung.de/survey/159.html"
    And I should see "Behat Umfrage"
    And I should not see "Error"

  @login
  Scenario: Questionpool Route
    Given I am on "https://build53.invorbereitung.de/repository.html"
    Then I should see "QUESTION POOLS TEST"
    And I should see "Behat Fragenpool"
    When I follow "Behat Fragenpool"
    Then I should be on "https://build53.invorbereitung.de/questionpool/156.html"
pmaass's avatar
pmaass committed
    And I should see "Behat Fragenpool"
    And I should not see "Error"

  @login
  Scenario: survey-questionpool route
pmaass's avatar
pmaass committed
    Given I am on "https://build53.invorbereitung.de/repository.html"
    Then I should see "QUESTION POOLS SURVEY"
    And I should see "Behat Umfrage Fragenpool"
    When I follow "Behat Umfrage Fragenpool"
    Then I should be on "https://build53.invorbereitung.de/survey-questionpool/160.html"
    And I should see "Behat Umfrage Fragenpool"
    And I should not see "Error"

  @login
  Scenario: Portfoliotemplate Route
    Given I am on "https://build53.invorbereitung.de/repository.html"
    Then I should see "PORTFOLIO TEMPLATES"
    And I should see "Behat Portfoliovorlage"
    When I follow "Behat Portfoliovorlage"
    Then I should be on "https://build53.invorbereitung.de/repository/portfolio/161.html"
    And I should see "Behat Portfoliovorlage"
    And I should not see "Error"