Commit ce883299 authored by Alaa Jwiehan's avatar Alaa Jwiehan Committed by Rajab Natshah
Browse files

Issue #3298632 by Alaa Jwiehan: Functional Automated Testing: Step Definition...

Issue #3298632 by Alaa Jwiehan: Functional Automated Testing: Step Definition to validate if a checkbox input is checked or unchecked
parent 288458a2
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -4,19 +4,19 @@ The welcome message is made possible by having Varbase Tour module
  @javascript @local @development @staging @production
  Scenario: Check if welcome message is enabled
    Given I am a logged in user with the "webmaster" user
      And I go to "admin/config/varbase/settings"
      And I go to "/admin/config/varbase/settings"
     Then I should see "Varbase general settings"
      And I should see "Allow site to show welcome message"
      And I check the box "Allow site to show welcome message"
     When I check the box "Allow site to show welcome message"
     Then I should see the "Allow site to show welcome message" checkbox checked
      And I press "Save configuration"
     When I press "Save configuration"
      And I wait
     Then I should see "The configuration options have been saved."

  @javascript @local @development @staging @production
  Scenario: Check if welcome message and tour are displayed
    Given I am a logged in user with the "webmaster" user
      And I go to "?welcome"
      And I go to "/?welcome"
      And I wait 2 seconds
      And I scroll to the bottom
     Then I should see "Welcome to "
@@ -36,7 +36,7 @@ The welcome message is made possible by having Varbase Tour module
  @javascript @local @development @staging @production
  Scenario: Check if welcome message is disabled after closing it
    Given I am a logged in user with the "webmaster" user
      And I go to "admin/config/varbase/settings"
      And I go to "/admin/config/varbase/settings"
     Then I should see "Varbase general settings"
      And I should see "Allow site to show welcome message"
      And I should see the "Allow site to show welcome message" checkbox unchecked