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
      • Symfony Steps
      • CodeIgniter Steps
      • Bootstrap Steps
      • MediaWiki Steps
      • Moodle Steps
        • Given I am a logged in user with the "student" user
        • When I log in as "student" with the login form
        • When I log in with the username "student" and the password "wrong-password"
        • When I log in as a guest
        • When I log out
        • Then I should be logged in
        • Then I should be logged in as "student"
        • Then I should be logged in as a guest
        • Then I should see the login form
        • Then I should see the error message "Your login info may be incorrect. Please try again."
        • Then I should see the message "1 enrolled users"
        • Then I should not see any error message
        • When I wait for the page to be ready
        • When I go to my dashboard
        • When I go to my courses
        • Then my courses should list "Software Testing 101"
        • Then the course progress of "Software Testing 101" should be "0%"
        • Then I should see the block "Timeline"
        • Then the timeline should list "Testing diary"
        • Then I should have access to "/course/management.php"
        • Then the access to "/course/management.php" should be:
        • When I open the course "Software Testing 101"
        • Then I should be on the course page
        • Then I should see the enrolment options of the course
        • Then the course sections should be:
        • Then the section "Getting started" should list the activity "Testing diary"
        • When I open the activity "Testing diary"
        • Then the activity "Course handbook" should be marked as done
        • Then the activity "Course handbook" should require "View"
        • When I mark the activity "Class discussion" as done
        • When I go to the "Participants" page of the course
        • When I enrol "student2" in the course as "Student"
        • When I unenrol "student2" from the course
        • Then "student" should be enrolled in the course
        • Then "student" should have the role "Student" in the course
        • When I assign the role "Non-editing teacher" to "student" in the course
        • When I remove the role "Non-editing teacher" from "student" in the course
        • When I enrol myself in the course "Software Testing 101" with the key "TEST101-key"
        • Then enrolling myself in the course "Software Testing 101" with the key "wrong-key" should be refused with "Incorrect enrolment key, please try again"
        • When I unenrol myself from the course "Software Testing 101"
        • When I submit the text "Found a defect in the login form." for the assignment "Testing diary"
        • Then the "Submission status" of the assignment "Testing diary" should be "Submitted for grading"
        • When I remove my submission for the assignment "Testing diary"
        • When I grade "student" with "85" for the assignment "Testing diary"
        • When I clear the grade of "student" for the assignment "Testing diary"
        • Then the "Needs grading" count of the assignment "Testing diary" should be "1"
        • Then my grade for the assignment "Testing diary" should be "85.00 / 100.00"
        • When I start an attempt at the quiz "Basics quiz"
        • When I answer "True" to the question "Testing can show that defects are present."
        • When I submit the quiz attempt
        • Then the "Grade" of the attempt should be "10.00 out of 10.00 (100%)"
        • Then the question "Testing can show that defects are present." should be marked "Correct"
        • Then my highest grade at the quiz "Basics quiz" should be "10.00 / 10.00"
        • When I delete the attempts of "student" at the quiz "Basics quiz"
        • When I post the discussion "A question about flaky tests" with the message "Why does a test pass here and fail in CI?" in the forum "Class discussion"
        • When I reply "Wait on the page, not on the clock." to the discussion "A question about flaky tests" in the forum "Class discussion"
        • Then the forum "Class discussion" should list the discussion "A question about flaky tests"
        • Then the discussion "A question about flaky tests" in the forum "Class discussion" should have the reply "Wait on the page, not on the clock."
        • When I delete the discussion "A question about flaky tests" from the forum "Class discussion"
        • Then the grader report should show "85.00" for "student" in "Testing diary"
        • Then my grade for "Testing diary" in the user report should be "85.00"
        • When I send the message "Hello, when is the next quiz?" to "teacher"
        • Then I should have the message "Hello, when is the next quiz?" from "student"
        • When I delete my conversation with "teacher"
        • Then I should have the notification "Welcome to Software Testing 101"
        • When I mark all my notifications as read
        • When I add the event "Study group" to my calendar
        • Then my calendar should show the event "Study group"
        • When I delete the event "Study group" from my calendar
        • Then the upcoming events should list "Testing diary is due"
        • When I search the site administration for "guest login button"
        • Then the site administration search should find the setting "Guest login button"
        • Then the setting "Guest login button" should be "Show"
        • Then the category "Test courses" should list the course "Software Testing 101"
        • When I create the course "Throwaway course" with the short name "THROW1" in the category "Test courses"
        • When I delete the course "Throwaway course" from the category "Test courses"
      • Django Steps
      • Next.js Steps
      • Strapi Steps
      • Docusaurus Steps
      • Payload Steps
      • Discourse Steps
      • Diffy Steps
  • Webship Workspace 1.0.x
    • Getting started
    • Walkthroughs in pictures
    • User guide
    • The dashboard, page by page
    • Workspaces
    • Workspace folders: kinds, types and settings
    • Plugins
    • Testing
    • AI items from any repository, into any AI CLI
    • Releases
    • Developer guide
    • Reference

Breadcrumb

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

When I log out

Log out as a person does: the user menu of the page, then its "Log out" item. The session ends on the server, so no later scenario takes it over.

Examples

When I log out
When we log out
And I log out
Then I log out
Given I log out

Pattern

When(/^(I |we )*log out$/, …)

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

Book traversal links for Documentation

  • Previous When I log in as a guest
  • Up
  • Next Then I should be logged in

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