From cb2050334125f6aa03ae70b970070676f67d3134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Fri, 18 May 2018 13:34:41 +0200 Subject: [PATCH] Add Firefox profile with support for CSS grid to acceptance tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tests/acceptance/config/behat.yml | 6 ++++++ .../config/firefox-profiles/css-grid-enabled.zip | Bin 0 -> 192 bytes 2 files changed, 6 insertions(+) create mode 100644 tests/acceptance/config/firefox-profiles/css-grid-enabled.zip diff --git a/tests/acceptance/config/behat.yml b/tests/acceptance/config/behat.yml index 3cd71eec04..7eee0a4da9 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 0000000000000000000000000000000000000000..8f061806d0a7651cc4a954257d015c8b4ca5f161 GIT binary patch literal 192 zcmWIWW@h1HW&nasaqE1(J3i;p0kT1u9f(VdQ;YPnia}I-K~ZX&hEh&qWqxUiUUG4< zUV2exie747Vp2|Oijs~(Nl|I4rZrc9HzSihGcF@lfQEvALc@|q5Dm3}i$MXzV_;;E oU|^VFl$-hbGGjx7ZULB{)@79o