Test redirection to Error Page given Tournament Code that is too long

Took 2 minutes
This commit is contained in:
Daniel Schädler 2018-12-11 15:14:04 +01:00
parent 941c04e760
commit d65eac62d1
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
Feature: Redirect to Tournament
Scenario: Given a way to long Code
When I navigate to "http://localhost:3000/index"
Then element having id "tournament-code-submit" should have text as "Turnier-Code öffnen"
Then I enter "18583874562345" into input field having name "code"
Then I click on element having id "tournament-code-submit" and text "Turnier-Code öffnen"
Then element having class "running-text" should have partial text as "Die aufgerufene Seite wurde leider nicht gefunden."
And element having class "running-text" should have partial text as "Wir empfehlen, die eingegebene Seite über die Startseite zu suchen."