diff --git a/tests/src/Functional/ShowOnEntityFormTest.php b/tests/src/Functional/ShowOnEntityFormTest.php index 610681b..3582bb5 100644 --- a/tests/src/Functional/ShowOnEntityFormTest.php +++ b/tests/src/Functional/ShowOnEntityFormTest.php @@ -100,7 +100,7 @@ class ShowOnEntityFormTest extends BrowserTestBase { $edit = [ 'flag[' . $flag->id() . ']' => TRUE, ]; - $this->drupalPostForm($node_edit_path, $edit, 'Save and keep published'); + $this->drupalPostForm($node_edit_path, $edit, 'Save'); // Check to see if the checkbox reflects the state correctly. $this->drupalGet($node_edit_path); @@ -111,7 +111,7 @@ class ShowOnEntityFormTest extends BrowserTestBase { $edit = [ 'flag[' . $flag->id() . ']' => FALSE, ]; - $this->drupalPostForm($node_edit_path, $edit, 'Save and keep published'); + $this->drupalPostForm($node_edit_path, $edit, 'Save'); // Go back to the node edit page and check if the flag checkbox is updated. $this->drupalGet($node_edit_path); @@ -126,7 +126,7 @@ class ShowOnEntityFormTest extends BrowserTestBase { 'title[0][value]' => $this->randomString(), 'flag[' . $flag->id() . ']' => TRUE, ]; - $this->drupalPostForm('node/add/' . $this->nodeType, $edit, 'Save and publish'); + $this->drupalPostForm('node/add/' . $this->nodeType, $edit, 'Save'); $node = $this->getNodeByTitle($edit['title[0][value]']); $this->assertTrue($flag->isFlagged($node, $this->adminUser)); @@ -135,7 +135,7 @@ class ShowOnEntityFormTest extends BrowserTestBase { 'title[0][value]' => $this->randomString(), 'flag[' . $flag->id() . ']' => FALSE, ]; - $this->drupalPostForm('node/add/' . $this->nodeType, $edit, 'Save and publish'); + $this->drupalPostForm('node/add/' . $this->nodeType, $edit, 'Save'); $node = $this->getNodeByTitle($edit['title[0][value]']); $this->assertFalse($flag->isFlagged($node, $this->adminUser));