From 31ddb3ed3b4363cf55170d7caccd9b1888bdb7b5 Mon Sep 17 00:00:00 2001 From: Lionel Laffineur Date: Mon, 26 Apr 2021 10:43:51 +0200 Subject: [PATCH] Improve download mime/types --- lib/Skeleton/Test/Unit.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/Skeleton/Test/Unit.php b/lib/Skeleton/Test/Unit.php index 4e4023c..4388a79 100644 --- a/lib/Skeleton/Test/Unit.php +++ b/lib/Skeleton/Test/Unit.php @@ -83,16 +83,17 @@ public static function get_webdriver() { self::$my_webdriver->manage()->timeouts()->implicitlyWait(5); } else if (Config::$browser == 'firefox') { $mime_types = [ - 'application/download', - 'application/octet-stream', 'application/binary', 'application/csv', - 'application/x-unknown', - 'application/vnd.ms-excel', + 'application/download', + 'application/json', + 'application/octet-stream', 'application/pdf', + 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', + 'application/x-unknown', 'application/zip', 'binary/octet-stream', 'image/jpg', @@ -102,6 +103,7 @@ public static function get_webdriver() { 'text/plain', 'text/csv', 'text/comma-separated-values', + 'text/html', ]; $profile = new \Facebook\WebDriver\Firefox\FirefoxProfile(); $profile->setPreference('browser.startup.homepage', 'about:blank');