diff --git a/modules/promotion/tests/src/FunctionalJavascript/PromotionTest.php b/modules/promotion/tests/src/FunctionalJavascript/PromotionTest.php
index 3998558..699361e 100644
--- a/modules/promotion/tests/src/FunctionalJavascript/PromotionTest.php
+++ b/modules/promotion/tests/src/FunctionalJavascript/PromotionTest.php
@@ -73,6 +73,49 @@ class PromotionTest extends CommerceBrowserTestBase {
   }
 
   /**
+   * Tests creating a promotion with an end date.
+   *
+   * @group create
+   */
+  public function testCreatePromotionWithEndDate() {
+    $this->createStore(NULL, NULL, 'default', TRUE);
+
+    $this->drupalGet('admin/commerce/promotions');
+    $this->getSession()->getPage()->clickLink('Add a new promotion');
+    $this->drupalGet('promotion/add');
+
+    // Check the integrity of the form.
+    $this->assertSession()->fieldExists('name[0][value]');
+
+    $this->getSession()->getPage()->fillField('offer[0][target_plugin_id]', 'commerce_promotion_product_percentage_off');
+    $this->getSession()->wait(2000, "jQuery('.ajax-progress').length === 0");
+
+    $name = $this->randomMachineName(8);
+    $edit = [
+      'name[0][value]' => $name,
+      'offer[0][target_plugin_configuration][amount]' => '10.0',
+    ];
+
+    $this->getSession()->getPage()->fillField('conditions[0][target_plugin_id]', 'commerce_promotion_order_total_price');
+    $this->getSession()->wait(2000, "jQuery('.ajax-progress').length === 0");
+
+    $edit['conditions[0][target_plugin_configuration][amount][number]'] = '50.00';
+
+    // Set an end date.
+    $this->getSession()->getPage()->checkField('end_date[0][has_value]');
+    $edit['end_date[0][value][date]'] = date("Y") - 1 . '-01-01';
+
+    $this->submitForm($edit, t('Save'));
+    $this->assertSession()->pageTextContains("The promotion $name has been successfully saved.");
+    $promotion_count = $this->getSession()->getPage()->find('xpath', '//table/tbody/tr/td[text()="' . $name . '"]');
+    $this->assertEquals(count($promotion_count), 1, 'promotions exists in the table.');
+
+    /** @var \Drupal\commerce\Plugin\Field\FieldType\PluginItem $offer_field */
+    $offer_field = Promotion::load(1)->get('offer')->first();
+    $this->assertEquals('0.10', $offer_field->target_plugin_configuration['amount']);
+  }
+
+  /**
    * Tests editing a promotion.
    */
   public function testEditPromotion() {
