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
      • Backdrop CMS Steps
      • PrestaShop Steps
      • Craft CMS Steps
      • Jira Steps
      • Laravel Steps
      • Filament Steps
      • Symfony Steps
      • CodeIgniter Steps
      • Bootstrap Steps
      • UIkit Steps
      • Flutter 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
        • Given I am a logged in user with the "admin" user
        • When I log in as "admin" with password "secret"
        • When I log in as the "admin" user with password "not-the-password"
        • Given I am on the login page
        • Then I should see the login form
        • Then I should see a login error
        • Then I should see a login message
        • Given I am not logged in
        • When I log out
        • Then I should be logged in
        • Then I should be on the login page
        • Given I am on the members directory
        • Then the members directory should list "member"
        • Then the members directory should say "Viewing 1 - 5 of 5 active members"
        • When I search the members for "Moderator"
        • When I order the members by "Alphabetical"
        • Then the members directory should list "Administrator Test", "Member Test" and "Moderator Test" in this order
        • When I open the "My Friends" tab of the members directory
        • Then the row of "member" in the members directory should offer "Add Friend"
        • When I go to the profile of "member"
        • When I go to my profile
        • Then I should be on the profile of "member"
        • When I open the "Friends" tab
        • When I open "Requests" in the tab's menu
        • Then the page should offer the "Friends" tab
        • Then the page should offer the button "Add Friend"
        • Then the profile should show "Location" as "Nairobi"
        • Then the profile should show the field "Location"
        • When I set my profile field "Location" to "Nairobi, Kenya"
        • When I let "All Members" see my profile field "Location"
        • When I save my profile
        • Then my profile field "Location" should be seen by "All Members"
        • Then my profile field "Location" should be "Nairobi"
        • Given I am on the registration page
        • Then the registration form should ask for "Username"
        • When I try to register as "member" with the email "member@example.com" and the name "Webship test person"
        • Then the registration should be refused with "Sorry, that username already exists!"
        • Given "newcomer" and "member" are not friends
        • Given "newcomer" and "member" are friends
        • When I press "Add Friend" on the profile
        • Then the profile's friendship button should read "Cancel Friendship Request"
        • When I go to my friendship requests
        • Then my friendship requests should list "newcomer"
        • When I accept the friendship request of "newcomer"
        • Then the friends of "member" should list "organizer"
        • Given I am on the activity stream
        • Then the activity stream should show "Welcome to the Webship Community!"
        • When I post the update "Webship test update one"
        • When I post an empty update
        • Then the update form should say "Please enter some content to post."
        • When I comment "Webship test comment" on the update "Welcome to the Webship Community!"
        • Then the update "Welcome to the Webship Community!" should show the comment "Hello everyone, glad to be here."
        • When I press "Mark as Favorite" on the update "The new pattern library is out"
        • Then the update "Welcome to the Webship Community!" should offer "Remove Favorite"
        • When I show only "Updates" in the activity stream
        • When I open the "My Favorites" tab of the activity stream
        • Given I am on the groups directory
        • Then the groups list should show "Webship Club"
        • Then the row of the group "Webship Club" should offer "Join Group"
        • When I search the groups for "Club"
        • When I go to the group "Webship Club"
        • Then the group "Core Team" should not be found
        • Then the group page should say "Private Group"
        • When I press "Join Group" on the group page
        • Given "newcomer" is not a member of the group "Webship Club"
        • Then the members of the group "Webship Club" should list "member"
        • Then the membership requests of the group "Design Circle" should list "newcomer"
        • When I accept the membership request of "newcomer" to the group "Design Circle"
        • Then the role of "moderator" in the group "Webship Club" should be "Moderator"
        • When I change the role of "member" in the group "Webship Club" to "Moderator"
        • When I create the public group "Webship test group" described as "A group made by a test run."
        • When I delete the group "Webship test group"
        • Given there is no group "Webship test group"
        • When I send the message "Webship test message" to "member" saying "Hello from a test."
        • When I send the message "Webship test message" to nobody saying "Nobody gets this."
        • Then the messages page should say "Please add at least one recipient."
        • When I go to my inbox
        • Then the box should list the conversation "Welcome to the club" with "Organizer Test"
        • When I open the conversation "Welcome to the club"
        • Then the conversation should show "Hi Member, welcome!" from "organizer"
        • When I reply "Webship test reply" to the conversation
        • When I delete the conversation
        • Given there is no conversation "Webship test message"
        • When I go to my notifications
        • Then my notifications should list "You have a friendship request from Newcomer Test"
        • When I mark the notification "You have a friendship request from Newcomer Test" as read
        • When I delete the notification "You have a friendship request from Newcomer Test"
        • Then a community mail "New friendship request from Newcomer Test" should be sent to "member"
        • Then no community mail should be sent to "newcomer"
        • Then the community mail "New friendship request from Newcomer Test" to "member" should contain "Newcomer Test wants to add you as a friend"
        • When I turn off the email for "A member sends you a new message"
        • Then the email for "A member sends you a new message" should be off
        • Then the community component "Friend Connections" should be active
        • Then the profile fields should list "Location" in "Base (Primary)"
        • Then the administration's groups should list "Webship Club"
        • Then the administration's activity should list "Welcome to the Webship Community!"
        • Then I should see the "At a Glance" dashboard widget
        • Then the admin menu should list "Posts"
        • Then the "Settings" admin submenu should list "Permalinks"
        • When I click "Posts" in the admin menu
        • When I click "Permalinks" under "Settings" in the admin menu
        • Then the admin bar should list "Edit Post"
        • When I click "Edit Post" in the admin bar
        • Then I should see a success notice
        • Then the "Hello Dolly" plugin should be installed
        • When I activate the "Hello Dolly" plugin
        • Then the "Twenty Twenty-Five" theme should be active
        • Then the active theme should be a block theme
        • When I save the settings
        • Then the "Site Title" setting should be "My Site"
        • When I change the "Site Title" setting to "My Site"
        • When I restore the "Site Title" setting
        • When I choose the "Post name" permalink structure
        • When I restore the permalink structure
        • Then the permalink structure should be "Post name"
        • Then the site health test "Scheduled events are running" should pass
        • Then the cron should respond
        • Then the REST API should be available
        • Then the REST route "/wp/v2/posts" should respond with status 200
        • Then the REST route "/wp/v2/users/me" should require authentication
        • Then the REST route "/wp/v2/posts?status=draft" should be refused
        • Then the REST route "/wp/v2/posts" should list at least 1 item
        • Then the REST route "/wp/v2/posts/1" should have "slug" equal to "hello-world"
        • Then the site feed should be a valid RSS feed
        • Then the site feed should list "Hello world!"
        • Then the robots.txt file should be served
        • Then robots.txt should disallow "/wp-admin/"
        • Then robots.txt should list the sitemap
        • Then the XML sitemap should be served
        • When I submit the comment "Thank you for the article."
        • Then I should see the comment "Thank you for the article."
        • Then the comment "Thank you for the article." should be awaiting moderation
        • When I approve the comment "Thank you for the article."
        • Then the comment "Thank you for the article." should be pending
        • Given I am on the new post screen
        • When I open the post "Hello world!" in the editor
        • When I set the post title to "A new post"
        • When I write "Hello from the test." in the post content
        • When I publish the post
        • When I update the post
        • When I save the post as a draft
        • When I submit the post for review
        • When I move the post to the trash
        • Then the editor should offer "Publish"
        • Then the post should be published in the editor
        • Then I should see the editor notice "Post published."
        • When I view the post
        • Then the posts list should include "Hello world!"
        • Then the post "Hello world!" should be published
        • When I move the post "Review post" to the trash from the list
        • When I restore the post "Review post" from the trash
        • When I delete the post "Review post" permanently
        • When I add the category "Reports"
        • Then the category "Reports" should exist
        • When I delete the category "Reports"
        • When I file the post under the category "Reports"
        • When I tag the post with "webship"
        • Then the post should be in the category "Reports"
        • When I upload the media file "webshipco.png"
        • Then the media library should list "webshipco"
        • When I delete the media file "webshipco" permanently
        • Given I am on the lost password page
        • When I request a password reset for the "subscriber" user
        • Then my account should have the "editor" role
        • Then the admin bar should show the account "webmaster"
        • Given I am on the "Plugins" admin screen
        • Then I should be on the "Dashboard" admin screen
        • Then I should see the access denied screen
        • Then the page should return HTTP status 200
        • Then the navigation menu should list "Sample Page"
        • When I open the navigation menu
        • When I click "Sample Page" in the navigation menu
        • Then I should see the "Search" block
        • Then I should see the header template part
        • Then the page should advertise the REST API
        • Then the page should link to the site feed
        • Then I should see the site title
        • Then I should see the admin bar
        • Then I should see the comment form
        • Given I am on a page
        • Given I am on a post
        • Given I am on a category archive
        • Then I should see the post title
        • Then I should see post entries
        • When I search the site for "hello world"
        • When I search the site for existing content
        • Then I should see the search form
        • When I use the search form to search for "hello"
        • Then I should see search results for "hello world"
        • Then I should see no search results for "qzxjvwk"
        • Then the search results should include "Hello world!"
      • LearnPress Steps
      • OpenCart Steps
      • Roundcube Steps
      • OpenProject Steps
      • Redmine Steps
      • Gitea 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. BuddyPress Steps

Given I am on a post

Open a real published post, discovered through the REST API at run time.

Examples

Given I am on a post
Given we are on a blog post
And on a post
Given we are on a post
And I am on a blog post

Pattern

Given(/^(I am |we are )*on a (?:blog )?post$/, …)

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

Book traversal links for Documentation

  • Previous Given I am on a page
  • Up
  • Next Given I am on a category archive

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