From db1f7f0400131ea6029974de2df099506b4a4629 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 2 Nov 2021 14:53:52 +0100 Subject: [PATCH] Revert "tests/e2e: remove deprecated desired_capabilities" This reverts commit 2da7a8fedefb534e174a3efd02e5d2b17d19a742. --- tests/e2e/utils.py | 4 ++-- web/rollup.config.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/e2e/utils.py b/tests/e2e/utils.py index b78455170..e548d4398 100644 --- a/tests/e2e/utils.py +++ b/tests/e2e/utils.py @@ -18,8 +18,8 @@ from docker.errors import DockerException from docker.models.containers import Container from selenium import webdriver from selenium.common.exceptions import NoSuchElementException, TimeoutException, WebDriverException -from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.by import By +from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium.webdriver.common.keys import Keys from selenium.webdriver.remote.webdriver import WebDriver from selenium.webdriver.remote.webelement import WebElement @@ -108,7 +108,7 @@ class SeleniumTestCase(StaticLiveServerTestCase): def _get_driver(self) -> WebDriver: return webdriver.Remote( command_executor="http://localhost:4444/wd/hub", - options=Options(), + desired_capabilities=DesiredCapabilities.CHROME, ) def tearDown(self): diff --git a/web/rollup.config.js b/web/rollup.config.js index 94450131e..0128efbf6 100644 --- a/web/rollup.config.js +++ b/web/rollup.config.js @@ -1,6 +1,6 @@ import babel from "@rollup/plugin-babel"; -import commonjs from "@rollup/plugin-commonjs"; import replace from "@rollup/plugin-replace"; +import commonjs from "@rollup/plugin-commonjs"; import copy from "rollup-plugin-copy"; import cssimport from "rollup-plugin-cssimport"; import resolve from "rollup-plugin-node-resolve";