diff --git a/behat.yml b/behat.yml index e7f0bb225..001bb94a4 100644 --- a/behat.yml +++ b/behat.yml @@ -24,12 +24,16 @@ default: extensions: Drupal\MinkExtension: - browserkit_http: ~ base_url: http://nginx:8080 files_path: '%paths.base%/tests/behat/fixtures' - browser_name: chrome - selenium2: - wd_host: "http://chrome:4444/wd/hub" + sessions: + default: + browserkit_http: ~ + selenium2: + selenium2: + browser: chrome + wd_host: "http://chrome:4444/wd/hub" + default_session: default javascript_session: selenium2 # Provides integration with Drupal APIs. Drupal\DrupalExtension: diff --git a/docker-compose.override.default.yml b/docker-compose.override.default.yml index 92da5b1ce..ff2cc0208 100644 --- a/docker-compose.override.default.yml +++ b/docker-compose.override.default.yml @@ -5,5 +5,4 @@ services: chrome: - # Chrome image with Apple M1 support. - image: seleniarm/standalone-chromium:111.0 + image: selenium/standalone-chrome:124.0 diff --git a/docker-compose.yml b/docker-compose.yml index fe6d3ea6f..3881401de 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -221,7 +221,7 @@ services: # Chrome container, used for browser testing. chrome: - image: selenium/standalone-chrome:111.0 + image: selenium/standalone-chrome:127.0 shm_size: '1gb' # Increase '/dev/shm' partition size to avoid browser crashing. <<: *default-volumes # Use default volumes to provide access to test fixtures. environment: diff --git a/tests/behat/features/login.feature b/tests/behat/features/login.feature index d006637a6..6e8eff04c 100644 --- a/tests/behat/features/login.feature +++ b/tests/behat/features/login.feature @@ -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