summaryrefslogtreecommitdiffstats
path: root/tests/acceptance
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-05-18 13:34:41 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-05-18 17:44:43 +0200
commitcb2050334125f6aa03ae70b970070676f67d3134 (patch)
treef3e9777adeeedd5dbae31a0c440d5917a2b0a97e /tests/acceptance
parent514b3749232b7c7dbf1f6d1d7cfdbcb3e2b3e503 (diff)
downloadnextcloud-server-cb2050334125f6aa03ae70b970070676f67d3134.tar.gz
nextcloud-server-cb2050334125f6aa03ae70b970070676f67d3134.zip
Add Firefox profile with support for CSS grid to acceptance tests
The acceptance tests are currently run on Firefox 47; in that version the CSS grid support was not enabled by default, but it could be enabled through a setting in the Firefox profile. By default Selenium uses a clean Firefox profile when a new session is started, but it also allows the customization of the profile through a zipped "user.js" file. The contents of that file have to be provided in the "firefox_profile" capability when the Firefox session is created. In the Mink extension for Behat several Mink sessions can be defined in the "behat.yml" file. Each Mink session uses a different browser session in Selenium, and each of those browser sessions is initialized with the capabilities provided in the "behat.yml" file. From the point of view of the acceptance tests each Mink session is an actor, so different actors can use different browsers with different capabilities. Due to all this a new actor was introduced, "Rubeus", who uses a Firefox browser that has CSS grid support; this actor is meant to be used only in those acceptance tests that require proper support for CSS grids. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests/acceptance')
-rw-r--r--tests/acceptance/config/behat.yml6
-rw-r--r--tests/acceptance/config/firefox-profiles/css-grid-enabled.zipbin0 -> 192 bytes
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/acceptance/config/behat.yml b/tests/acceptance/config/behat.yml
index 3cd71eec047..7eee0a4da9c 100644
--- a/tests/acceptance/config/behat.yml
+++ b/tests/acceptance/config/behat.yml
@@ -29,3 +29,9 @@ default:
selenium2: ~
Jane:
selenium2: ~
+ Rubeus:
+ # Rubeus uses a browser that has CSS grid support.
+ selenium2:
+ capabilities:
+ firefox:
+ profile: config/firefox-profiles/css-grid-enabled.zip
diff --git a/tests/acceptance/config/firefox-profiles/css-grid-enabled.zip b/tests/acceptance/config/firefox-profiles/css-grid-enabled.zip
new file mode 100644
index 00000000000..8f061806d0a
--- /dev/null
+++ b/tests/acceptance/config/firefox-profiles/css-grid-enabled.zip
Binary files differ