From ae8c220fd503bf9bfbbcd051736a6056dfdc03bf Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Thu, 3 Apr 2014 10:54:51 +0800 Subject: [PATCH] MDL-44832 behat: Fixed behat test --- mod/assign/tests/behat/prevent_submission_changes.feature | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/assign/tests/behat/prevent_submission_changes.feature b/mod/assign/tests/behat/prevent_submission_changes.feature index 5a39f634039..65cd54797e8 100644 --- a/mod/assign/tests/behat/prevent_submission_changes.feature +++ b/mod/assign/tests/behat/prevent_submission_changes.feature @@ -42,7 +42,7 @@ Feature: Prevent or allow assignment submission changes And I follow "Course 1" And I follow "Test assignment name" When I follow "View/grade all submissions" - And I click on "//tr[contains(., 'Student 1')]/descendant::td/descendant::img[@alt='Actions']/parent::a" "xpath_element" + And I click on "Edit" "link" in the "Student 1" "table_row" And I follow "Prevent submission changes" Then I should see "Submission changes not allowed" And I log out @@ -56,7 +56,7 @@ Feature: Prevent or allow assignment submission changes And I follow "Course 1" And I follow "Test assignment name" And I follow "View/grade all submissions" - And I click on "//tr[contains(., 'Student 1')]/descendant::td/descendant::img[@alt='Actions']/parent::a" "xpath_element" + And I click on "Edit" "link" in the "Student 1" "table_row" And I follow "Allow submission changes" And I should not see "Submission changes not allowed" And I log out