From c0506d6ff0d99ba262efa623d5c218b44f182334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Castell=C3=B3n?= Date: Wed, 4 Mar 2020 11:19:27 +0100 Subject: [PATCH] Fix on course and glossary behats --- mod/course/tests/behat/app_basic_usage.feature | 4 ++-- mod/glossary/tests/behat/app_basic_usage.feature | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/mod/course/tests/behat/app_basic_usage.feature b/mod/course/tests/behat/app_basic_usage.feature index a42f3154b..c661d8822 100755 --- a/mod/course/tests/behat/app_basic_usage.feature +++ b/mod/course/tests/behat/app_basic_usage.feature @@ -495,7 +495,7 @@ Feature: Test basic usage of one course in app And I click on "Side panel" "button" And I follow "Add a block" And I follow "Activities" - And I click on "Actions menu" "icon" in the "#dropdown-0" "css_element" + And I click on "Actions menu" "icon" in the "#action-menu-toggle-0" "css_element" And I follow "Configure (new HTML block) block" And I set the field "HTML block title" to "HTML title test" And I set the field "Content" to "body test" @@ -544,7 +544,7 @@ Feature: Test basic usage of one course in app And I follow "HTML" And I follow "Add a block" And I follow "Activities" - And I click on "Actions menu" "icon" in the "#dropdown-0" "css_element" + And I click on "Actions menu" "icon" in the "#action-menu-toggle-0" "css_element" And I follow "Configure (new HTML block) block" And I set the field "HTML block title" to "HTML title test" And I set the field "Content" to "body test" diff --git a/mod/glossary/tests/behat/app_basic_usage.feature b/mod/glossary/tests/behat/app_basic_usage.feature index 285b878bb..3fedced35 100755 --- a/mod/glossary/tests/behat/app_basic_usage.feature +++ b/mod/glossary/tests/behat/app_basic_usage.feature @@ -83,15 +83,14 @@ Feature: Test basic usage of glossary in app And I should see "car" And I should see "mountain" And I should see "potato" - And I press "Browse entries" in the app And I press "Search" in the app And I set the field "Search query" to "something" in the app - And I press "search" in the app + And I press "search" near "No entries were found." in the app Then I should see "No entries were found." And I set the field "Search query" to "potato" in the app - And I press "search" in the app + And I press "search" near "No entries were found." in the app And I set the field "Search query" to " " in the app - And I press "potato" in the app + And I press "potato" near "glossary description" in the app Then I should see "potato" And I should see "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae."