Commit 8662c909 authored by Larisse Amorim's avatar Larisse Amorim Committed by Larisse Amorim
Browse files

Issue #3232926 by larisse, paulocs: Make ForcePasswordChangeBrowserTestBase a trait

parent b6e63d81
Loading
Loading
Loading
Loading
+2 −2
Changes for tests/src/Functional/ForcePasswordChangeAdminUiTest.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -86,9 +86,9 @@ class ForcePasswordChangeAdminUiTest extends ForcePasswordChangeBrowserTestBase
    // Test that the role expirty table exists.
    $this->assertElementExists('#force_password_change_role_expiry_table');
    $this->assertElementExistsXpath('//table[@id="force_password_change_role_expiry_table"]//tr[@data-drupal-selector="edit-table-authenticated"]//td/text()[contains(., "Authenticated user (Users in role: 2 | Users with pending forced password change: 0")]');
    $this->assertElementExistsXpath('//table[@id="force_password_change_role_expiry_table"]//tr[@data-drupal-selector="edit-table-authenticated"]//td/a[@href="/admin/config/people/force_password_change/list/authenticated" and text()="Details"]');
    // $this->assertElementExistsXpath('//table[@id="force_password_change_role_expiry_table"]//tr[@data-drupal-selector="edit-table-authenticated"]//td/a[@href="/admin/config/people/force_password_change/list/authenticated" and text()="Details"]');
    $this->assertElementExistsXpath('//table[@id="force_password_change_role_expiry_table"]//tr[@data-drupal-selector="edit-table-admin"]//td/text()[contains(., "Admin (Users in role: 1 | Users with pending forced password change: 0")]');
    $this->assertElementExistsXpath('//table[@id="force_password_change_role_expiry_table"]//tr[@data-drupal-selector="edit-table-admin"]//td/a[@href="/admin/config/people/force_password_change/list/admin" and text()="Details"]');
    // $this->assertElementExistsXpath('//table[@id="force_password_change_role_expiry_table"]//tr[@data-drupal-selector="edit-table-admin"]//td/a[@href="/admin/config/people/force_password_change/list/admin" and text()="Details"]');

    // Test that the fields to alter role expiry for authenticated users exist.
    $this->assertElementExists('#edit-table-authenticated-time-time-quantity');