Skip to main content
Home

Main navigation

  • Home
  • Products
  • Services
  • Docs
  • Blog
  • About us
  • Contact
Documentation
  • Webship JS 2.0.x
    • Install Webship JS
    • Global Settings
    • Step Definitions
    • API Steps
    • Accessibility Steps
    • Action Steps
    • Assertion Steps
    • Auth State Steps
    • Clock Steps
    • Cookie Steps
    • Debug Steps
    • Dialog Steps
    • Element Steps
    • Field Steps
    • File Download Steps
    • Form Steps
    • Iframe Steps
    • Input Steps
    • JavaScript Steps
    • Keyboard Steps
    • Link Steps
    • Meta Tag Steps
    • Modal Steps
    • Navigation Steps
    • Network Steps
    • Path Steps
    • REST Steps
    • Response Steps
    • Responsive Steps
    • Screenshot Steps
    • Scroll Steps
    • Selector Steps
    • Storage Steps
    • Table Steps
    • Video Steps
    • Wait Steps
    • Web First Steps
    • XML Steps
    • YAML Steps
    • External Steps
      • Drupal Core Steps
      • Drupal CMS Steps
      • WordPress Steps
      • Joomla Steps
      • Odoo Steps
      • Magento Steps
      • TYPO3 Steps
      • django CMS Steps
      • Webflow Steps
      • Astro Steps
      • Gatsby Steps
      • HubSpot CMS Steps
      • WooCommerce Steps
      • Shopify Steps
      • Squarespace Steps
      • Ghost Steps
        • Given I am logged in to the admin as "owner"
        • When I try to log in to the admin with the email "owner@example.com" and the password "wrong"
        • When I open the membership sign in form
        • Then I should be signed in as a member
        • When I sign out as a member
        • Then I should see the sign in error "Your password is incorrect."
        • When I log out of the admin
        • Then I should be logged in to the admin
        • Then I should see the post "Welcome to the test site" in the list
        • Then the post "Welcome to the test site" should have the status "Published" in the list
        • Then the list should have 3 posts
        • Then the first row of the list should be "Welcome to the test site"
        • When I filter the list by "Tag" with "News"
        • When I clear the list filters
        • When I sort the list by "Oldest first"
        • When I open the tag "Guides" from the list
        • When I set the tag name to "A tag from the suite"
        • Then the tag name should be "Guides"
        • When I save the tag
        • When I delete the tag
        • Then the tag "Guides" should have 2 posts
        • Given there is no tag named "A tag from the suite"
        • When I search the members for "Vera"
        • When I set the member name to "Suite Member"
        • When I add the label "Reader" to the member
        • Then the member should have the label "Reader"
        • Then the member should be ready to save
        • When I save the member
        • When I delete the member
        • Given there is no member with the email "suite.member@example.com"
        • Then I should see the staff user "Arthur Author" with the role "Author"
        • When I open the staff user "Arthur Author"
        • Then the staff user email should be "author@example.com"
        • When I close the staff user
        • Then the staff invitation should offer the role "Contributor"
        • When I go to the settings section "Title & description"
        • Then the settings section "Title & description" should show "Test site"
        • When I press "Edit" in the settings section "Title & description"
        • When I set "Site title" to "" in the settings section "Title & description"
        • When I open the navigation settings
        • When I add the navigation link "Docs" with the address "/docs/"
        • When I remove the navigation link "Docs"
        • Then the navigation settings should list the link "Home"
        • When I save the navigation settings
        • Given the navigation has no link "Docs"
        • When I announce "A sale from the suite" to "Public visitors"
        • When I clear the announcement
        • Given there is no announcement
        • When I start a new post
        • When I open the editor of the post "Welcome to the test site"
        • When I leave the editor
        • When I set the editor title to "A post from the suite"
        • When I write "The first paragraph." in the editor
        • When I add a "Divider" card to the editor
        • When I add an image card to the editor from the file "tests/fixtures/feature.png"
        • Then the editor should have 1 "Divider" card
        • Then the editor title should be "Welcome to the test site"
        • Then the editor should contain "This is the welcome post."
        • When I wait for the editor to save
        • Then the editor status should be "Draft"
        • Then the editor should offer "Publish"
        • When I open the post settings
        • Then the post settings should offer "Tags"
        • When I set the post URL to "a-post-from-the-suite"
        • Then the post URL should be "welcome-to-the-test-site"
        • When I add the tag "News" to the post
        • When I remove the tag "News" from the post
        • Then the post should have the tag "News"
        • When I set the post access to "Members only"
        • Then the post access should be "Public"
        • When I set the excerpt to "A short summary."
        • Then the excerpt should be "The first post of the test site."
        • When I feature the post
        • Then the post should be featured
        • When I set the feature image to the file "tests/fixtures/feature.png"
        • When I remove the feature image
        • Then the post should have a feature image
        • When I preview the post
        • Then the preview should show "A post from the suite"
        • When I close the preview
        • When I open the publish dialog
        • Then the publish dialog should say "Ready, set, publish."
        • When I close the publish dialog
        • When I publish the post
        • Then the publish confirmation should say "It’s out there"
        • When I close the publish confirmation
        • When I schedule the post for "2031-05-01" at "09:30"
        • When I unpublish the post
        • When I update the post
        • When I delete the post from the editor
        • Given there is no post titled "A post from the suite"
        • When I fill in "Email" with "member@example.com" in the membership form
        • When I submit the membership form
        • Then the membership form should show "Sign in"
        • When I close the membership form
        • Then I should see a subscribe button
        • Then the post should be restricted to members
        • Given the mailbox is empty
        • Then an e-mail with the subject "Sign in to Test site" should have been sent to "member@example.com"
        • When I follow the link e-mailed to "member@example.com"
        • When I enter the code e-mailed to "member@example.com" in the membership form
        • Then the membership notification should say "You've successfully subscribed to"
        • Then the page generator should start with "Ghost"
        • Then the page should be the home page
        • Then the page should be the tag archive of "guides"
        • Then the archive should be on page 1
        • Then the archive should have a next page
        • When I go to the next page of the archive
        • Then I should see the post "Welcome to the test site" in the post feed
        • Then the post feed should have 2 posts
        • Then I should see "Home" in the site navigation
        • Then I should see the announcement "A sale from the suite"
        • When I open the site search
        • When I search the site for "Travel diary 3"
        • Then I should see the site search result "Travel diary 3"
        • When I open the site search result "Travel diary 3"
        • When I close the site search
        • When I go to the admin screen "Posts"
        • Then I should be on the admin screen "Posts"
        • Then the admin screen "Settings" should not be available
        • Then I should see "Tags" in the admin menu
        • When I click "Posts" in the admin menu
        • Then the user menu should show "owner@example.com"
        • Then I should see the notification "Post updated"
        • When I dismiss the notifications
        • Then I should see the field error "You must specify a name for the tag."
        • Then I should see the dialog "Are you sure you want to delete this post?"
        • When I answer the dialog with "Delete"
        • When I choose "Delete member" from the "Actions" menu
        • When I search the admin for "Travel diary 3"
        • Then I should see the admin search result "Travel diary 3"
        • When I open the admin search result "Travel diary 3"
      • Backdrop CMS Steps
      • PrestaShop Steps
      • Craft CMS Steps
      • Jira Steps
      • Laravel Steps
      • Filament Steps
      • Symfony Steps
      • CodeIgniter Steps
      • Bootstrap Steps
      • UIkit Steps
      • Flutter Steps
      • Svelte Steps
      • Vue Steps
      • Angular Steps
      • FastAPI Steps
      • Immich Steps
      • Material UI Steps
      • Headless UI Steps
      • Uptime Kuma Steps
      • Home Assistant Steps
      • Grafana Steps
      • MantisBT Steps
      • NestJS Steps
      • Phorge Steps
      • MediaWiki Steps
      • Moodle Steps
      • Django Steps
      • Next.js Steps
      • Strapi Steps
      • Docusaurus Steps
      • Payload Steps
      • Discourse Steps
      • Keycloak Steps
      • Nextcloud Steps
      • Spring Boot Steps
      • ASP.NET Core Steps
      • Wagtail Steps
      • phpBB Steps
      • bbPress Steps
      • Mautic Steps
      • Penpot Steps
      • BuddyPress Steps
      • LearnPress Steps
      • OpenCart Steps
      • Roundcube Steps
      • OpenProject Steps
      • Redmine Steps
      • Gitea Steps
      • Plane Steps
      • Leantime Steps
      • Vikunja Steps
      • Kanboard Steps
      • Wekan Steps
      • Taiga Steps
      • Diffy Steps
  • Webship Workspace 1.0.x
    • Getting started
    • Walkthroughs in pictures
    • Runtimes: DDEV, Docker Compose, Podman, Kubernetes, Lando and Docksal
    • User guide
    • The dashboard, page by page
    • Workspaces
    • Workspace folders: kinds, types and settings
    • Plugins
    • Using plugins: a help guide
    • Platform plugins on every runtime
    • Testing
    • AI items from any repository, into any AI CLI
    • Several AI providers on one spec
    • Releases
    • Developer guide
    • Reference

Breadcrumb

  1. Home
  2. Documentation
  3. Webship JS 2.0.x
  4. External Steps
  5. Ghost Steps

When I close the preview

Close the preview and return to the editor.

Examples

When I close the preview
When we close the preview
And I close the preview
Then I close the preview
When close the preview

Pattern

When(/^(?:I |we )?close the preview$/, …)

Part of @webship-js/ghost-steps (github.com/webship/ghost-steps), a step pack for Webship-js 2.0.x.

Book traversal links for Documentation

  • Previous Then the preview should show "A post from the suite"
  • Up
  • Next When I open the publish dialog

Boost your site's success with automated testing

For Commercial Professional Support

Contact Us

On this page

    Type to find a page. Enter opens the selected page; with nothing selected, Enter searches the whole site.

    Daily Automated Functional Acceptance Testing   

    © Copyrights 2022 - 2026 Webship.co All Rights Reserved.

    Webtheme Footer

    • Privacy
    • About us
    • Contact

    Home

    Webtheme social media menu

    • Github
    • Gitlab
    • Bitbucket
    • X
    • Linkedin
    • Youtube