Skip to content

Commit

Permalink
Merge branch 'qa/vizro_ai_ui_tests' of https://github.com/mckinsey/vizro
Browse files Browse the repository at this point in the history
 into qa/vizro_ai_ui_tests

� Conflicts:
�	vizro-ai/tests/e2e/test_vizro_ai_ui.py
  • Loading branch information
l0uden committed Dec 13, 2024
2 parents aaa805d + 41b6a97 commit 5f0f3ce
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion vizro-ai/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ prep-release = [
]
pypath = "hatch run python -c 'import sys; print(sys.executable)'"
test = "pytest tests {args}"
test-e2e-vizro-ai-ui = "pytest -vs --reruns 1 tests/e2e/test_vizro_ai_ui.py --headless {args}"
test-integration = "pytest -vs --reruns 1 tests/integration --headless {args}"
test-score = "pytest -vs --reruns 1 tests/score --headless {args}"
test-unit = "pytest tests/unit {args}"
Expand All @@ -56,7 +57,6 @@ test-unit-coverage = [
"- coverage combine",
"coverage report"
]
test-e2e-vizro-ai-ui = "pytest -vs --reruns 1 tests/e2e/test_vizro_ai_ui.py --headless {args}"
vizro-ai-ui = "python examples/dashboard_ui/app.py &"

[envs.docs]
Expand Down
2 changes: 1 addition & 1 deletion vizro-ai/tests/e2e/conftest.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from datetime import datetime

import pytest
from e2e_asserts import browser_console_warnings_checker
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from e2e_asserts import browser_console_warnings_checker


@pytest.fixture()
Expand Down
2 changes: 1 addition & 1 deletion vizro-ai/tests/e2e/test_vizro_ai_ui.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import os

import pytest
from selenium.common import InvalidSelectorException, TimeoutException
from e2e_waiters import (
wait_for,
webdriver_click_waiter,
webdriver_waiter,
webdriver_waiter_css,
)
from selenium.common import InvalidSelectorException, TimeoutException
from e2e_fake_data_generator import create_genre_popularity_by_country


Expand Down
2 changes: 1 addition & 1 deletion vizro-ai/tests/tests_utils/e2e_asserts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from hamcrest import any_of, assert_that, contains_string
from e2e_constants import (
INVALID_PROP_ERROR,
REACT_NOT_RECOGNIZE_ERROR,
Expand All @@ -10,6 +9,7 @@
WILLMOUNT_RENAMED_WARNING,
WILLRECEIVEPROPS_RENAMED_WARNING,
)
from hamcrest import any_of, assert_that, contains_string


def browser_console_warnings_checker(log_level, log_levels):
Expand Down
2 changes: 1 addition & 1 deletion vizro-ai/tests/tests_utils/e2e_waiters.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import time

from e2e_constants import TIMEOUT
from selenium.common.exceptions import (
StaleElementReferenceException,
)
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import WebDriverWait
from e2e_constants import TIMEOUT


def wait_for(condition_function, *args):
Expand Down

0 comments on commit 5f0f3ce

Please sign in to comment.