Skip to content

Commit

Permalink
Improve download mime/types
Browse files Browse the repository at this point in the history
  • Loading branch information
LionelLaffineur committed Apr 26, 2021
1 parent 374ea8a commit 31ddb3e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/Skeleton/Test/Unit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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');
Expand Down

0 comments on commit 31ddb3e

Please sign in to comment.