Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1306, #1336] Updated Chrome image #1344

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.override.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@

services:
chrome:
# Chrome image with Apple M1 support.
image: seleniarm/standalone-chromium:111.0
image: selenium/standalone-chrome:124.0
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
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