reverted: --- b/core/modules/config/src/Tests/ConfigDraggableListBuilderTest.php +++ /dev/null @@ -1,47 +0,0 @@ -drupalLogin($this->drupalCreateUser(array('administer permissions'))); - - // Create more than 50 roles. - for ($i = 0; $i < 51; $i++) { - $role = Role::create([ - 'id' => 'role_' . $i, - 'label' => "Role $i", - ]); - - $role->save(); - } - - // Navigate to Roles page - $this->drupalGet('admin/people/roles'); - - // Test for the page title. - $this->assertTitle(t('Roles') . ' | Drupal'); - - // Count the number of rows in table. - $rows = $this->xpath('//form[@class="user-admin-roles-form"]/table/tbody/tr'); - $this->assertTrue(count($rows) > 50, 'All roles are visible on admin page'); - } - -} only in patch2: unchanged: --- /dev/null +++ b/core/modules/config/tests/src/Functional/ConfigDraggableListBuilderTest.php @@ -0,0 +1,49 @@ +drupalLogin($this->drupalCreateUser(array('administer permissions'))); + + // Create more than 50 roles. + for ($i = 0; $i < 51; $i++) { + $role = Role::create([ + 'id' => 'role_' . $i, + 'label' => "Role $i", + ]); + $role->save(); + } + + // Navigate to Roles page + $this->drupalGet('admin/people/roles'); + + // Test for the page title. + $this->assertSession()->titleEquals(t('Roles') . ' | Drupal'); + + // Count the number of rows in table. + $rows = $this->xpath('//form[@class="user-admin-roles-form"]/table/tbody/tr'); + $this->assertGreaterThan(50, count($rows)); + for ($i = 0; $i < 51; $i++) { + $this->assertSession()->pageTextContains("Role $i"); + } + } + +}