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

  Scenario: site available
pmaass's avatar
pmaass committed
    Given I am on "https://build53.invorbereitung.de/goto.php?target=root_1&client_id=build53"
    Then I should see "Open Source eLearning"
    And I should see "Repository"
    And I should see "Categories"
    And I should see "Login"
pmaass's avatar
pmaass committed
    And I should not see "Error"
pmaass's avatar
pmaass committed
  @login
pmaass's avatar
pmaass committed
    Given I am on "https://build53.invorbereitung.de"
    Then I should see "Kategorien"
    And I should see "Behat Kategorie"
    When I follow "Behat Kategorie"
pmaass's avatar
pmaass committed
    Then I should be on "https://build53.invorbereitung.de/repo/category/145.html"
    And I should see "Behat Kategorie"
pmaass's avatar
pmaass committed
    And I should not see "Error"

  @login
  Scenario: Studyprogramm Route
    Given I am on "https://build53.invorbereitung.de"
    Then I should see "Studienprogramme"
    And I should see "Behat Studienprogramm"
    When I follow "Behat Studienprogramm"
    Then I should be on "https://build53.invorbereitung.de/repo/studyprogramm/148.html"
    And I should see "Behat Studienprogramm"
    And I should not see "Error"
pmaass's avatar
pmaass committed

  @login
pmaass's avatar
pmaass committed
    Given I am on "https://build53.invorbereitung.de"
    Then I should see "Kurse"
    And I should see "Behat Kurs"
    When I follow "Behat Kurs"
    Then I should be on "https://build53.invorbereitung.de/repo/142.html"
    And I should see "Behat Kurs"
pmaass's avatar
pmaass committed
    And I should not see "Error"
pmaass's avatar
pmaass committed

  @login
pmaass's avatar
pmaass committed
    Given I am on "https://build53.invorbereitung.de/repo.html?ref_id=142"
    Then I should see "Behat Kurs"
    And I should see "Behat Ordner"
    When I follow "Behat Ordner"
pmaass's avatar
pmaass committed
    Then I should be on "https://build53.invorbereitung.de/repo/folder/143.html"
    And I should see "Behat Ordner"
pmaass's avatar
pmaass committed
    And I should not see "Error"
pmaass's avatar
pmaass committed

  @login
pmaass's avatar
pmaass committed
    Given I am on "https://build53.invorbereitung.de"
    Then I should see "Gruppen"
    And I should see "Behat Gruppe"
    When I follow "Behat Gruppe"
    Then I should be on "https://build53.invorbereitung.de/repo/144.html"
    And I should see "Behat Gruppe"
pmaass's avatar
pmaass committed
    And I should not see "Error"
pmaass's avatar
pmaass committed

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

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

  @login
  Scenario: Test
    Given I am on "https://build53.invorbereitung.de"
    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/repo/test/154.html"
pmaass's avatar
pmaass committed
    And I should see "Behat Test"
    And I should not see "Error"

  @login
pmaass's avatar
pmaass committed
    Given I am on "https://build53.invorbereitung.de"
    Then I should see "Umfragen"
    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"
    Then I should see "Fragenpools für Tests"
    And I should see "Behat Fragenpool"
    When I follow "Behat Fragenpool"
    Then I should be on "https://build53.invorbereitung.de/repo/questionpool/156.html"
pmaass's avatar
pmaass committed
    And I should see "Behat Fragenpool"
    And I should not see "Error"

  @login
  Scenario: Umfrage Fragenpool
    Given I am on "https://build53.invorbereitung.de"
    Then I should see "Fragenpools für Umfragen"
    And I should see "Behat Umfrage Fragenpool"
    When I follow "Behat Umfrage Fragenpool"
    Then I should be on "https://build53.invorbereitung.de/s-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"
    Then I should see "Portfoliovorlagen"
    And I should see "Behat Portfoliovorlage"
    When I follow "Behat Portfoliovorlage"
    Then I should be on "https://build53.invorbereitung.de/repo/portfolio/161.html"
    And I should see "Behat Portfoliovorlage"
    And I should not see "Error"