Skip to content

Commit

Permalink
Update login feature to test default session
Browse files Browse the repository at this point in the history
  • Loading branch information
tannguyen04 committed Aug 6, 2024
1 parent 6849747 commit 895bf00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ default:
browserkit_http: ~
selenium2:
selenium2:
browser: 'chrome'
browser: chrome
wd_host: "http://chrome:4444/wd/hub"
default_session: default
javascript_session: selenium2
# Provides integration with Drupal APIs.
Drupal\DrupalExtension:
Expand Down
5 changes: 5 additions & 0 deletions tests/behat/features/login.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ Feature: Login

Ensure that user can login.

Scenario: Login form is available.
Given I visit "/user/login"
Then I should see an "form#user-login-form" element
Then I save screenshot

@api
Scenario: Administrator user logs in
Given I am logged in as a user with the "administer site configuration, access administration pages" permissions
Expand Down

1 comment on commit 895bf00

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.