From 2ec1efe77ceb76cfb47075f03be723c825a95a13 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Wed, 23 Sep 2020 08:56:29 +0200 Subject: [PATCH] Internal - Add/Fix behat test --- .travis.yml | 2 +- tests/behat/features/profile.feature | 6 +++--- tests/behat/features/sessionAccess.feature | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8e4cd2e5a9..0a65b09e8e 100755 --- a/.travis.yml +++ b/.travis.yml @@ -118,7 +118,7 @@ script: - ../../vendor/behat/behat/bin/behat features/createUser.feature -vvv - ../../vendor/behat/behat/bin/behat features/createUserViaCSV.feature -v - ../../vendor/behat/behat/bin/behat features/extraFieldUser.feature -v -# - ../../vendor/behat/behat/bin/behat features/profile.feature -v + - ../../vendor/behat/behat/bin/behat features/profile.feature -v - ../../vendor/behat/behat/bin/behat features/promotion.feature -v # - ../../vendor/behat/behat/bin/behat features/registration.feature -v - ../../vendor/behat/behat/bin/behat features/sessionAccess.feature -vvv diff --git a/tests/behat/features/profile.feature b/tests/behat/features/profile.feature index eaf8a4aef2..ce184d0b9a 100644 --- a/tests/behat/features/profile.feature +++ b/tests/behat/features/profile.feature @@ -4,7 +4,7 @@ Feature: Profile page Background: Given I am a student - Scenario: Update profile with first name Andrew then restore Andrea + Scenario: Change user first name with Andrew then restore to Andrea Given I am on "/account/home" Then I should see "Profile" Then I follow "Edit profile" @@ -19,6 +19,6 @@ Feature: Profile page Then I fill in the following: | profile_firstname | Andrea | And I press "update_profile" + And wait for the page to be loaded Then I should see "Updated" - Then I am on "/main/social/home.php" - Then I should see "Andrea" \ No newline at end of file + And I should see "Andrea" \ No newline at end of file diff --git a/tests/behat/features/sessionAccess.feature b/tests/behat/features/sessionAccess.feature index dc15c7c89b..5108e2c7cb 100644 --- a/tests/behat/features/sessionAccess.feature +++ b/tests/behat/features/sessionAccess.feature @@ -19,13 +19,13 @@ Feature: Session access Then I should see "Subscribe users to this session" Then I follow "Multiple registration" And wait the page to be loaded when ready - Then I select "3" from "nosessionUsersList[]" + Then I select "Apple Maggart Fiona (fapple)" from "nosessionUsersList[]" And I press "add_user" And I press "next" And wait very long for the page to be loaded Then I should see "Session1" Then I should see "TEMPPRIVATE" - Then I should see "ywarnier" + Then I should see "fapple" @javascript Scenario: Create session 2