From b72780bcbf22f898837746f88b3df3ddac6964e1 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Fri, 3 May 2019 15:42:39 +0800 Subject: [PATCH] MDL-65475 forum: Fix discussion locking behat test --- mod/forum/tests/behat/discussion_lock.feature | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mod/forum/tests/behat/discussion_lock.feature b/mod/forum/tests/behat/discussion_lock.feature index 8e2c550494b..b434c141afd 100644 --- a/mod/forum/tests/behat/discussion_lock.feature +++ b/mod/forum/tests/behat/discussion_lock.feature @@ -35,12 +35,12 @@ Feature: As a teacher, you can manually lock individual discussions when viewing And I am on "Course 1" course homepage And I navigate to post "Discussion 1" in "Test forum name" forum And I press "Settings" - Then "Lock" "link" should be visible - And I follow "Lock" + Then "Lock this discussion" "link" should be visible + And I follow "Lock this discussion" Then I should see "This discussion has been locked so you can no longer reply to it." And I press "Settings" - Then "a[@title='Lock']" "css_element" should not be visible - Then "Locked" "link" should be visible + Then "Lock this discussion" "link" should not be visible + Then "Unlock this discussion" "link" should be visible And I press "Settings" And I follow "Discussion 2" Then I should not see "This discussion has been locked so you can no longer reply to it." -- 2.43.0