-
Notifications
You must be signed in to change notification settings - Fork 3
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
Test js behat #141
Test js behat #141
Changes from 20 commits
a49413d
2104f7a
14f963c
fae6bc0
10dd77e
de99561
fa5185b
e0842e5
b401850
f468b30
f909ed6
0bf2a37
037ef7b
e5b464a
fde8dda
3e93134
fcd12b5
58e7868
d4c0f66
7604484
0c57c4a
44a7f4b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# This was taken from https://github.com/drud/ddev-contrib/tree/master/docker-compose-services/headless-chrome. | ||
version: '3.6' | ||
services: | ||
chrome: | ||
image: isholgueras/chrome-headless:latest | ||
restart: unless-stopped | ||
container_name: ddev-${DDEV_SITENAME}-chrome | ||
labels: | ||
com.ddev.site-name: ${DDEV_SITENAME} | ||
com.ddev.approot: $DDEV_APPROOT | ||
volumes: | ||
- ddev-global-cache:/mnt/ddev-global-cache | ||
- ".:/mnt/ddev_config" | ||
external_links: | ||
- "ddev-router:${DDEV_HOSTNAME}" | ||
cap_add: | ||
- SYS_ADMIN | ||
ports: | ||
# Exposing this port allows you to visit 127.0.0.1:9222 to see what Headless Chrome doing without | ||
# any additional configuration; However, you can only have one project using this port at a time. | ||
- '9222:9222' |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,10 +27,12 @@ | |
"drush/drush": "^11" | ||
}, | ||
"require-dev": { | ||
"behat/behat": "^3.12", | ||
"behat/mink-goutte-driver": "^2.0", | ||
"dmore/behat-chrome-extension": "^1.4", | ||
"drupal/core-dev": "^10", | ||
"drupal/drupal-extension": "^5@alpha", | ||
"palantirnet/the-build": "^4@beta" | ||
"palantirnet/the-build": "dev-headless-chrome" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We will want to merge the-build change first, and then update this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @agentrickard I tagged a new beta release of the-build: https://github.com/palantirnet/the-build/releases/tag/4.0-beta5 |
||
}, | ||
"suggest": { | ||
"cweagans/composer-patches": "Try ^1.7. Apply patches to packages, especially Drupal.org contrib.", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@api @javascript | ||
Feature: Installation | ||
As a Drupal developer | ||
I want to use javaScript in Behat tests | ||
So that I can rely on the build for my project. | ||
|
||
Scenario: Verify that js behat test works. | ||
Given I am logged in as a user with the "administrator" role | ||
When I am on "/admin/modules/update" | ||
And I should see the link "Check manually" | ||
And I click "Check manually" | ||
Then I should see the text "Status message" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't actually need this line. Its for debugging.