diff --git a/Makefile b/Makefile index a8e6b5f..96557a7 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,6 @@ export GECKODRIVER_LOG = $(shell pwd)/results/geckodriver.log BLACK_CHECK = black -l 90 --check --diff . BLACK_FIX = black -l 90 . -MINIMUM_COVERAGE = 95 -FOXPUPPET_TESTS = pytest -vvv --driver Firefox --cov --cov-fail-under=$(MINIMUM_COVERAGE) --html results/report.html check: install_poetry lint test @@ -18,7 +16,7 @@ install_poetry: curl -sSL https://install.python-poetry.org | python3 - test: install_dependencies - poetry run $(FOXPUPPET_TESTS) + poetry run pytest lint: install_dependencies poetry run $(BLACK_CHECK) diff --git a/foxpuppet/windows/browser/panel_ui/panel_ui.py b/foxpuppet/windows/browser/panel_ui/panel_ui.py index ee6d00d..f4284c5 100644 --- a/foxpuppet/windows/browser/panel_ui/panel_ui.py +++ b/foxpuppet/windows/browser/panel_ui/panel_ui.py @@ -62,7 +62,7 @@ def open_panel_menu(self) -> None: with self.selenium.context(self.selenium.CONTEXT_CHROME): self.selenium.find_element(*PanelUILocators.PANEL_UI_BUTTON).click() self.wait.until( - EC.visibility_of_element_located(*PanelUILocators.PANEL_POPUP), + EC.presence_of_element_located(*PanelUILocators.PANEL_POPUP), message="Panel UI menu did not open", ) diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..093c9b5 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,3 @@ +[pytest] +addopts = -vvv --driver Firefox --cov --cov-fail-under=95 --html=results/report.html --self-contained-html +testpaths = tests \ No newline at end of file