diff --git a/repository/tests/behat/cancel_add_file.feature b/repository/tests/behat/cancel_add_file.feature index 2742d5798bbc2..76c43595259fe 100644 --- a/repository/tests/behat/cancel_add_file.feature +++ b/repository/tests/behat/cancel_add_file.feature @@ -19,7 +19,7 @@ Feature: A selected file can be cancelled | Name | Folder name | | Description | Folder description | And I upload "lib/tests/fixtures/upload_users.csv" file to "Files" filemanager - And I click on "//label[contains(., 'Files')]/ancestor::div[contains(concat(' ', @class, ' '), ' fitem ')]//*[contains(@title, 'Add...')]" "xpath_element" + And I click on "Add..." "button" in the "Files" "form_row" And I click on "Recent files" "link" in the ".fp-repo-area" "css_element" And I click on "//a[contains(concat(' ', normalize-space(@class), ' '), ' fp-file ')][normalize-space(.)='empty.txt']" "xpath_element" And I click on ".moodle-dialogue-focused .fp-select .fp-select-cancel" "css_element" diff --git a/repository/tests/behat/select_file.feature b/repository/tests/behat/select_file.feature index e7cd4eb238eaa..43bce52fcf9c1 100644 --- a/repository/tests/behat/select_file.feature +++ b/repository/tests/behat/select_file.feature @@ -21,7 +21,7 @@ Feature: Select file feature And I click on "Save and display" "button" And I follow "Dashboard" in the user menu And I follow "Manage private files" - And I click on "//label[contains(., 'Files')]/ancestor::div[contains(concat(' ', @class, ' '), ' fitem ')]//*[contains(@title, 'Add...')]" "xpath_element" + And I click on "Add..." "button" in the "Files" "form_row" And I click on "Recent files" "link" in the ".fp-repo-area" "css_element" And I click on "Display folder with file icons" "link" in the ".file-picker" "css_element" And I click on "//a[contains(concat(' ', normalize-space(@class), ' '), ' fp-file ')][normalize-space(.)='empty.txt']" "xpath_element" @@ -42,7 +42,7 @@ Feature: Select file feature And I click on "Save and display" "button" And I follow "Dashboard" in the user menu And I follow "Manage private files" - And I click on "//label[contains(., 'Files')]/ancestor::div[contains(concat(' ', @class, ' '), ' fitem ')]//*[contains(@title, 'Add...')]" "xpath_element" + And I click on "Add..." "button" in the "Files" "form_row" And I click on "Recent files" "link" in the ".fp-repo-area" "css_element" And I click on "Display folder with file details" "link" in the ".file-picker" "css_element" And I click on "//div[contains(concat(' ', normalize-space(@class), ' '), ' file-picker ')]/descendant::span[normalize-space(.)='empty.txt']/ancestor::a" "xpath_element" @@ -63,7 +63,7 @@ Feature: Select file feature And I click on "Save and display" "button" And I follow "Dashboard" in the user menu And I follow "Manage private files" - And I click on "//label[contains(., 'Files')]/ancestor::div[contains(concat(' ', @class, ' '), ' fitem ')]//*[contains(@title, 'Add...')]" "xpath_element" + And I click on "Add..." "button" in the "Files" "form_row" And I click on "Recent files" "link" in the ".fp-repo-area" "css_element" And I click on "Display folder as file tree" "link" in the ".file-picker" "css_element" And I click on "//div[contains(concat(' ', normalize-space(@class), ' '), ' file-picker ')]/descendant::span[normalize-space(.)='empty.txt']/ancestor::a" "xpath_element"