--- b/modules/cart/src/Form/AddToCartForm.php (date 1701791173011) +++ b/modules/cart/src/Form/AddToCartForm.php (date 1701797111222) @@ -200,7 +200,7 @@ protected function actions(array $form, FormStateInterface $form_state) { $actions['submit'] = [ '#type' => 'submit', - '#value' => $this->getDestination($form_state) === 'checkout' ? $this->t('Checkout') :$this->t('Add to cart'), + '#value' => $this->getDestination($form_state) === 'checkout' ? $this->t('Checkout') : $this->t('Add to cart'), '#submit' => ['::submitForm'], '#attributes' => [ 'class' => ['button--add-to-cart'], --- a/modules/product/tests/src/FunctionalJavascript/ProductLayoutBuilderIntegrationTest.php (revision 8ea8a7ecfcffcd4da5998763302f76746078013b) +++ b/modules/product/tests/src/FunctionalJavascript/ProductLayoutBuilderIntegrationTest.php (date 1701797107377) @@ -290,6 +290,7 @@ $save_layout = $this->getSession()->getPage()->findButton('Save layout'); $save_layout->focus(); $save_layout->click(); + $this->assertSession()->waitForElementVisible('css', '.messages-list__wrapper'); $this->assertSession()->pageTextContains('The layout has been saved.'); }