Skip to content

Commit fe817cd

Browse files
committed
Added pytest.ini
1 parent b963ae2 commit fe817cd

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ export GECKODRIVER_LOG = $(shell pwd)/results/geckodriver.log
33

44
BLACK_CHECK = black -l 90 --check --diff .
55
BLACK_FIX = black -l 90 .
6-
MINIMUM_COVERAGE = 95
7-
FOXPUPPET_TESTS = pytest -vvv --driver Firefox --cov --cov-fail-under=$(MINIMUM_COVERAGE) --html results/report.html
86

97
check: install_poetry lint test
108

@@ -18,7 +16,7 @@ install_poetry:
1816
curl -sSL https://install.python-poetry.org | python3 -
1917

2018
test: install_dependencies
21-
poetry run $(FOXPUPPET_TESTS)
19+
poetry run pytest
2220

2321
lint: install_dependencies
2422
poetry run $(BLACK_CHECK)

foxpuppet/windows/browser/panel_ui/panel_ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def open_panel_menu(self) -> None:
6262
with self.selenium.context(self.selenium.CONTEXT_CHROME):
6363
self.selenium.find_element(*PanelUILocators.PANEL_UI_BUTTON).click()
6464
self.wait.until(
65-
EC.visibility_of_element_located(*PanelUILocators.PANEL_POPUP),
65+
EC.presence_of_element_located(*PanelUILocators.PANEL_POPUP),
6666
message="Panel UI menu did not open",
6767
)
6868

pytest.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[pytest]
2+
addopts = -vvv --driver Firefox --cov --cov-fail-under=95 --html=results/report.html --self-contained-html
3+
testpaths = tests

0 commit comments

Comments
 (0)