From c9cc54476ae701f94d036ca6964fa3652b2d4299 Mon Sep 17 00:00:00 2001 From: Rajab Natshah <rajabn@gmail.com> Date: Thu, 23 Dec 2021 19:51:21 +0200 Subject: [PATCH] Issue #3255819 by Alaa Jwiehan, RajabNatshah: Maintain automated tests to work with Drupal 9.3.0 --- ...-create-users-and-assign-role-them.feature | 6 ++-- .../01-delete-default-testing-users.feature | 2 +- .../delete-default-testing-users.feature | 30 +++++++++---------- translations/ar.po | 6 ++-- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/tests/features/varbase/step2-apply-tests/02-user-management/02-02-admins-can-create-users-and-assign-role-them.feature b/tests/features/varbase/step2-apply-tests/02-user-management/02-02-admins-can-create-users-and-assign-role-them.feature index 9b4867f4..4b2e8f5b 100644 --- a/tests/features/varbase/step2-apply-tests/02-user-management/02-02-admins-can-create-users-and-assign-role-them.feature +++ b/tests/features/varbase/step2-apply-tests/02-user-management/02-02-admins-can-create-users-and-assign-role-them.feature @@ -39,10 +39,10 @@ So that they will be able to use the site. Then I should see "Tester" When I click "Edit" in the "Tester" row And I wait - And I press "Cancel account" + And I press "Confirm" And I wait Then I should see "Are you sure you want to cancel the account Tester?" - When I select the radio button "Delete the account and its content." - And I press "Cancel account" + When I select the radio button "Delete the account and its content. This action cannot be undone." + And I press "Confirm" And I wait 10s Then I should see "People" diff --git a/tests/features/varbase/step3-cleanup-tests/01-delete-default-testing-users.feature b/tests/features/varbase/step3-cleanup-tests/01-delete-default-testing-users.feature index 5d846d36..1862db39 100644 --- a/tests/features/varbase/step3-cleanup-tests/01-delete-default-testing-users.feature +++ b/tests/features/varbase/step3-cleanup-tests/01-delete-default-testing-users.feature @@ -22,7 +22,7 @@ Feature: Delete default testing users And I select "Cancel the selected user accounts" from "action" When I press "Apply to selected items" And I wait - And I select the radio button "Delete the account and its content." + And I select the radio button "Delete the account and its content. This action cannot be undone." And I press "Apply" And I wait 15s Then I should see "Action processing results: (6)." \ No newline at end of file diff --git a/tests/tools/users/delete-default-testing-users.feature b/tests/tools/users/delete-default-testing-users.feature index 39131199..73c9653a 100644 --- a/tests/tools/users/delete-default-testing-users.feature +++ b/tests/tools/users/delete-default-testing-users.feature @@ -23,11 +23,11 @@ Feature: Delete default testing users. When I click "Edit" And I wait Then I should see "test_authenticated" - When I press "Cancel account" + When I press "Confirm" And I wait Then I should see "Are you sure you want to cancel the account test_authenticated?" - When I select the radio button "Delete the account and its content." - And I press "Cancel account" + When I select the radio button "Delete the account and its content. This action cannot be undone." + And I press "Confirm" And I wait for the batch job to finish Then I should see "test_authenticated has been deleted." @@ -45,11 +45,11 @@ Feature: Delete default testing users. When I click "Edit" And I wait Then I should see "test_editor" - When I press "Cancel account" + When I press "Confirm" And I wait Then I should see "Are you sure you want to cancel the account test_editor?" - When I select the radio button "Delete the account and its content." - And I press "Cancel account" + When I select the radio button "Delete the account and its content. This action cannot be undone." + And I press "Confirm" And I wait for the batch job to finish Then I should see "test_editor has been deleted." @@ -66,11 +66,11 @@ Feature: Delete default testing users. When I click "Edit" And I wait Then I should see "test_content_admin" - When I press "Cancel account" + When I press "Confirm" And I wait Then I should see "Are you sure you want to cancel the account test_content_admin?" - When I select the radio button "Delete the account and its content." - And I press "Cancel account" + When I select the radio button "Delete the account and its content. This action cannot be undone." + And I press "Confirm" And I wait for the batch job to finish Then I should see "test_content_admin has been deleted." @@ -88,11 +88,11 @@ Feature: Delete default testing users. When I click "Edit" And I wait Then I should see "test_site_admin" - When I press "Cancel account" + When I press "Confirm" And I wait Then I should see "Are you sure you want to cancel the account test_site_admin?" - When I select the radio button "Delete the account and its content." - And I press "Cancel account" + When I select the radio button "Delete the account and its content. This action cannot be undone." + And I press "Confirm" And I wait for the batch job to finish Then I should see "test_site_admin has been deleted." @@ -110,10 +110,10 @@ Feature: Delete default testing users. When I click "Edit" And I wait Then I should see "test_super_admin" - When I press "Cancel account" + When I press "Confirm" And I wait Then I should see "Are you sure you want to cancel the account test_super_admin?" - When I select the radio button "Delete the account and its content." - And I press "Cancel account" + When I select the radio button "Delete the account and its content. This action cannot be undone." + And I press "Confirm" And I wait for the batch job to finish Then I should see "test_super_admin has been deleted." diff --git a/translations/ar.po b/translations/ar.po index 1cd9cd73..a6ad22ca 100644 --- a/translations/ar.po +++ b/translations/ar.po @@ -5805,7 +5805,7 @@ msgstr "Ù…Ùدخل @argument" msgid "Administer forums" msgstr "إدارة المنتديات" -msgid "Cancel account" +msgid "Confirm" msgstr "إلغاء الØساب" msgid "Dependencies" @@ -8636,7 +8636,7 @@ msgstr "عند إلغاء هذه الØسابات" msgid "Are you sure you want to cancel these user accounts?" msgstr "هل أنت متأكد من إلغاء هذه الØسابات؟" -msgid "Cancel accounts" +msgid "Confirms" msgstr "إلغاء الØسابات" msgid "Add lowercase letters" @@ -9410,7 +9410,7 @@ msgstr "" "Øذ٠الØساب وجعل Ù…Øتوياته ملكا " "للمستخدم %anonymous-name." -msgid "Delete the account and its content." +msgid "Delete the account and its content. This action cannot be undone." msgstr "Øذ٠الØساب ومØتوياته." msgid "String settings" -- GitLab