Skip to content
Snippets Groups Projects
Commit f7db960b authored by Kunal Sachdev's avatar Kunal Sachdev Committed by Adam G-H
Browse files

Issue #3339659 by kunal.sachdev, tedbow, yash.rode: UpdateReady form does not have primary button

parent a65d64bf
No related branches found
No related tags found
No related merge requests found
......@@ -164,6 +164,7 @@ final class UpdateReady extends UpdateFormBase {
'#type' => 'submit',
'#value' => $this->t('Continue'),
];
$form['actions']['submit']['#button_type'] = 'primary';
return $form;
}
......
......@@ -136,6 +136,8 @@ abstract class AutomaticUpdatesFunctionalTestBase extends BrowserTestBase {
$assert_session = $this->assertSession();
$assert_session->addressMatches('/\/admin\/automatic-update-ready\/[a-zA-Z0-9_\-]+$/');
$assert_session->pageTextContainsOnce('Drupal core will be updated to ' . $target_version);
$button = $assert_session->buttonExists("Continue");
$this->assertTrue($button->hasClass('button--primary'));
}
/**
......
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