From 4139a83154d6afe138fed068065b3f590010964e Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Sat, 9 Sep 2023 20:45:08 +0800 Subject: [PATCH] MDL-78806 mod_assign: Use new Behat step for checking page title --- mod/assign/tests/behat/page_titles.feature | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mod/assign/tests/behat/page_titles.feature b/mod/assign/tests/behat/page_titles.feature index 53126e713e5..308adda14ef 100644 --- a/mod/assign/tests/behat/page_titles.feature +++ b/mod/assign/tests/behat/page_titles.feature @@ -21,14 +21,14 @@ Feature: In an assignment, page titles are informative Scenario: I view an assignment as a student and take an action When I am on the "History of ants" Activity page logged in as student1 - Then "title[text() = 'C1: History of ants']" "xpath_element" should exist in the "head" "css_element" + Then the page title should contain "C1: History of ants" And I press "Add submission" - And "title[text() = 'C1: History of ants - Edit submission']" "xpath_element" should exist in the "head" "css_element" + And the page title should contain "C1: History of ants - Edit submission" Scenario: I view an assignment as a teacher and take an action When I am on the "History of ants" Activity page logged in as teacher1 - Then "title[text() = 'C1: History of ants']" "xpath_element" should exist in the "head" "css_element" + Then the page title should contain "C1: History of ants" And I navigate to "View all submissions" in current page administration - And "title[text() = 'C1: History of ants - Grading']" "xpath_element" should exist in the "head" "css_element" + And the page title should contain "C1: History of ants - Grading" And I click on "Grade" "link" in the "Student 1" "table_row" - And "title[text() = 'C1: History of ants - Grading']" "xpath_element" should exist in the "head" "css_element" + And the page title should contain "C1: History of ants - Grading" -- 2.11.4.GIT