Skip to content
Snippets Groups Projects
Commit 7058c0a0 authored by omkar podey's avatar omkar podey Committed by Adam G-H
Browse files

Issue #3314946 by omkar.podey: UpdateReady mistakenly assigns a special CSS...

Issue #3314946 by omkar.podey: UpdateReady mistakenly assigns a special CSS class to all validation results
parent b7083d96
No related branches found
No related tags found
No related merge requests found
......@@ -351,9 +351,6 @@ final class UpdateReady extends FormBase {
'#theme' => 'item_list__automatic_updates_validation_results',
'#prefix' => $result->getSummary(),
'#items' => $messages,
'#context' => [
'list_style' => 'automatic-updates-extensions__pending-database-updates',
],
];
}
return $this->traitFormatResult($result);
......
......@@ -193,12 +193,9 @@ class UpdaterFormTest extends AutomaticUpdatesFunctionalTestBase {
$assert_session->pageTextNotContains('The following dependencies will also be updated:');
// Ensure that a list of pending database updates is visible, along with a
// short explanation, in the warning messages.
$warning_messages = $assert_session->elementExists('xpath', '//div[@data-drupal-messages]//div[@aria-label="Warning message"]');
$this->assertStringContainsString('Possible database updates have been detected in the following extensions.', $warning_messages->getText());
$pending_updates = $warning_messages->findAll('css', 'ul.item-list__automatic-updates-extensions__pending-database-updates li');
$this->assertCount(2, $pending_updates);
$this->assertSame('System', $pending_updates[0]->getText());
$this->assertSame('Automatic Updates Theme With Updates', $pending_updates[1]->getText());
$possible_update_message = 'Possible database updates have been detected in the following extensions.<ul><li>System</li><li>Automatic Updates Theme With Updates</li></ul>';
$warning_messages = $assert_session->elementExists('css', 'div[data-drupal-messages] div[aria-label="Warning message"]');
$this->assertStringContainsString($possible_update_message, $warning_messages->getHtml());
$page->pressButton('Continue');
$this->checkForMetaRefresh();
......
unrequested
updater's
stager's
syncer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment