Proper use of Given When Then

approved
(Bruce Becker) #1

Proper use of Given When Then

From 109bed1ff50f7d8c73f0a37be6a11e705b4f959f Mon Sep 17 00:00:00 2001
From: Bruce Becker <brucellino@gmail.com>
Date: Sun, 21 Oct 2018 11:33:52 +0200
Subject: [PATCH] Proper use of Given When Then


diff --git a/tests/cucumber/features/login.feature b/tests/cucumber/features/login.feature
index 94ae8a0..f208128 100644
--- a/tests/cucumber/features/login.feature
+++ b/tests/cucumber/features/login.feature
@@ -9,7 +9,8 @@ Feature: Log in with Check-In A person with an identity can log in with CheckIn
     Then it is present
 
   Scenario: A test user visits the forum to log in
-    Given I click on the login button
+    Given I visit the main page
+    When I click on the login button
     Then I am taken to EGI Check-In IdP discovery page
     Then I choose SSO
     And I add my credentials

GitHub