diff --git a/core/modules/path/lib/Drupal/path/Tests/PathAliasTest.php b/core/modules/path/lib/Drupal/path/Tests/PathAliasTest.php
index dcaf945..707c486 100644
--- a/core/modules/path/lib/Drupal/path/Tests/PathAliasTest.php
+++ b/core/modules/path/lib/Drupal/path/Tests/PathAliasTest.php
@@ -100,6 +100,22 @@ class PathAliasTest extends PathTestBase {
     $this->assertNoText($node1->label(), 'Previous alias no longer works.');
     $this->assertResponse(404);
 
+    // Change the path alias, preview and then save the node.
+    $previous = $edit['path[alias]'];
+    $this->drupalPost('node/' . $node1->nid . '/edit', $edit, t('Preview'));
+    $edit['path[alias]'] = $this->randomName(8);
+    $this->drupalPost(NULL, $edit, t('Preview'));
+    $this->drupalPost(NULL, $edit, t('Save'));
+
+    // Confirm that the new alias works.
+    $this->drupalGet($edit['path[alias]']);
+    $this->assertText($node1->title, 'New alias works after previewing and saving the node.');
+
+    // Make sure that previous alias no longer works.
+    $this->drupalGet($previous);
+    $this->assertNoText($node1->title, 'Old alias no longer works after previewing and saving the node.');
+    $this->assertResponse(404);
+
     // Create second test node.
     $node2 = $this->drupalCreateNode();
 
