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
        • Given I am a logged in user with the "marketer" user
        • When I log in as "marketer" with the login form
        • When I log in with the username "nobody" and the password "Wrong-password-1"
        • Then the login should be refused with "Invalid login. Please verify credentials."
        • Given I am not logged in
        • When I log out
        • Then I should be logged in as "marketer"
        • Then I should not be logged in
        • Then I should be on the login page
        • Then I should not be allowed to open "/s/campaigns"
        • When I ask for a password reset link for "sales"
        • When I set the password of "sales" on the reset page
        • When I set the password of "sales" on the reset page with the confirmation "Something-else-1"
        • When I go to "Contacts" in the main menu
        • Then the main menu should offer "Campaigns"
        • When I go to "Users" in the settings menu
        • Then the settings menu should offer "Users"
        • Then the page heading should be "Contacts"
        • Then the site should say "has been created!"
        • Then the site should ask "Delete this contact?"
        • When I answer the confirmation with "Delete"
        • Then the dialog "Quick Add" should be open
        • Then no dialog should be open
        • When I press "Save" in the dialog
        • When I search everything for "Haddad"
        • Then the search results should list "Haddad, Lina"
        • When I open the list of contacts
        • When I search the list for "Haddad"
        • Then the list should show "Lina Haddad"
        • Then the list should have 2 items
        • Then the row of "marketer" should show "Marketer"
        • When I open "Lina Haddad" from the list
        • When I choose "Delete" in the options of "Webship test contact"
        • When I sort the list by "Points" in descending order
        • Then the list should start with "Omar Saleh", "Lina Haddad"
        • When I set "First Name" to "Webship test"
        • When I set the following fields:
        • When I add "webship-test-tag" to "Tags"
        • Then "First Name" should be set to "Webship test"
        • Then the field "Email" should show the error "is invalid."
        • When I open the "Filters" tab
        • When I save the form
        • When I save and close the form
        • When I cancel the form
        • When I open the contact "Lina Haddad"
        • Then the contact "Lina Haddad" should have 25 points
        • Then the contact "Lina Haddad" should have the tag "newsletter"
        • Then the contact "Lina Haddad" should be in the segment "Newsletter readers"
        • Then the contact "Lina Haddad" should be at the company "Example Trading"
        • Then the "Contact owner" of the contact "Lina Haddad" should be "Sales Test"
        • Then the history of the contact "Lina Haddad" should show "Contact created"
        • When I add the note "Webship test: called about the webinar" to the contact "Lina Haddad"
        • Then the notes of the contact "Lina Haddad" should list "Webship test: called about the webinar"
        • When I remove the tag "webship-test-tag" from the contact "Lina Haddad"
        • When I send the contact "Lina Haddad" an email with the subject "Webship test: our webinar" saying "Thank you for joining."
        • Then the contact "Lina Haddad" should have the tag "webship-test-onboarded" once the scheduled tasks have run
        • When I add the filter "City" is equal to "Amman"
        • Then the segment "Newsletter readers" should have 2 contacts
        • When I add a "Text: Short answer" field to the form with:
        • When I add the submit action "Adjust contact's points" to the form with:
        • Then the form should hold the field "First name"
        • When I open the public form "Newsletter sign-up"
        • When I send the public form
        • Then the public form should say "Thank you for signing up."
        • Then the public form field "Email" should show the error "This is required."
        • Then the results of the form "Newsletter sign-up" should list "webship-test-signup@example.com"
        • When I upload the file "webship-test-notes.txt" to the asset
        • Then the asset "Product brochure" should download as "product-brochure.txt"
        • Then the page should load the tracking script
        • When I open the campaign builder
        • When I add the segment "Newsletter readers" as the source of the campaign
        • When I add the action "Modify contact's tags" to the campaign with:
        • When I close the campaign builder
        • Then the campaign builder should show "Newsletter readers"
        • Then the report should list "Newsletter sign-up" under "Title"
        • Then the dashboard should show the widget "Contacts Created"
        • Then an email with the subject "password reset" should be sent to "sales"
        • Then no email should be sent to "nobody@example.com"
        • Then the email with the subject "password reset" to "sales" should contain "You requested a password reset"
        • When I open the link of the email with the subject "password reset" to "sales"
        • Given there is no contact "Webship test contact"
        • Given the contact "Lina Haddad" has no note "Webship test"
        • Given the contact "Lina Haddad" has no tag "webship-test-tag"
        • Then there should be a segment "Newsletter readers"
      • Penpot Steps
      • BuddyPress Steps
      • 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. Mautic Steps

When I cancel the form

Leave the form on screen with "Cancel" of its toolbar, without saving.

Examples

When I cancel the form
When we cancel the form
And I cancel the form
Then I cancel the form
When I cancel the form

Pattern

When(/^(?:I|we) cancel the form$/, …)

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

Book traversal links for Documentation

  • Previous When I save and close the form
  • Up
  • Next When I open the contact "Lina Haddad"

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