-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from palantirnet/test-js-behat
Test js behat
- Loading branch information
Showing
5 changed files
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |