From 87df85b2546f0fd4a7cc2d5c78ccb12d8ac17471 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 5 Apr 2023 16:41:58 +1200 Subject: [PATCH] MNT Add behat test for show page published status (#283) --- tests/Behat/features/view-a-version.feature | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/Behat/features/view-a-version.feature b/tests/Behat/features/view-a-version.feature index 1b00add4..84f51503 100644 --- a/tests/Behat/features/view-a-version.feature +++ b/tests/Behat/features/view-a-version.feature @@ -29,3 +29,14 @@ Feature: View a version And I wait for 3 seconds until I see the "#Form_versionForm" element Then I should see an "#Form_versionForm_Title[readonly]" element And I should see an "#Form_versionForm_URLSegment[readonly]" element + + Scenario: Show page published status + When I go to "/admin/pages" + And I click on "Home" in the tree + And I fill in "

lorem

" for the "Content" HTML field + And I press the "Save" button + And I fill in "

ipsum

" for the "Content" HTML field + And I press the "Publish" button + And I click on "History" in the header tabs + Then I should see "Saved" + And I should see "Published"