Skip to content
Snippets Groups Projects
Commit 570dbf76 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #11895 TIME 0:30 Test E2E

parent f4e8dc15
No related branches found
No related tags found
No related merge requests found
services:
- postgres:10.1
- httpd:latest
variables:
POSTGRES_DB: "MaarchCourrier"
......@@ -32,6 +31,9 @@ before_script:
job_e2e:
image: php:7.4-apache
services:
- httpd:latest
- selenium/standalone-firefox
stage: test
script:
- service apache2 start
......@@ -60,6 +62,11 @@ job_e2e:
- curl -o /dev/null --silent --head --write-out '%{http_code}\n' http://127.0.0.1/MaarchCourrier
- firefox --version
- npm run ee-launch
artifacts:
paths:
- test/e2e/screenshots/*.png
expire_in: 1 week
# when: on_failure
allow_failure: true
# only:
# - schedules
......
......@@ -13,11 +13,6 @@ apt-get install -y libpq-dev libxml2-dev libxslt1-dev libpng-dev unoconv xpdf-ut
&& pecl install xdebug-2.9.3 \
&& docker-php-ext-enable xdebug \
&& docker-php-ext-install gd \
&& FIREFOX_URL="https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-US" \
&& ACTUAL_URL=$(curl -Ls -o /dev/null -w %{url_effective} $FIREFOX_URL) \
&& curl --silent --show-error --location --fail --retry 3 --output /tmp/firefox.tar.bz2 $ACTUAL_URL \
&& tar -xvjf /tmp/firefox.tar.bz2 -C /opt \
&& ln -s /opt/firefox/firefox /usr/local/bin/firefox \
&& a2enmod rewrite \
&& touch directory.txt \
&& echo "<Directory /var/www/html>" >> directory.txt \
......
......@@ -51,7 +51,7 @@ describe('index resource page', function () {
element(by.cssContainingText('.mat-dialog-content-container .mat-button-wrapper', 'Valider')).click();
browser.sleep(100);
browser.takeScreenshot().then(function (png) {
ScreenshotReporter(png, 'test/e2e/screenshots/validate_indexation_' + browser.browserName, 'console');
ScreenshotReporter(png, 'test/e2e/screenshots/validate_indexation_' + browser.browserName);
});
browser.sleep(500);
expect(browser.getCurrentUrl()).toContain('/resources/');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment