Skip to content

Commit

Permalink
Adding more tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
antip00 committed Jun 5, 2024
1 parent f189a55 commit abc93ba
Show file tree
Hide file tree
Showing 5 changed files with 178 additions and 182 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Run Altinity Grafana Plugin tests
run: python3
-u ./tests/testflows/regression.py
--log raw.log --only "/Grafana Datasource Plugin For Clickhouse/dashboards/panel check/*"
--log raw.log
-o nice --before=1 --after=1

- name: Create reports
Expand Down
1 change: 0 additions & 1 deletion tests/testflows/assets/sessions.json

This file was deleted.

4 changes: 2 additions & 2 deletions tests/testflows/steps/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def compare_screenshots(self, screenshot_name_1, screenshot_name_2):

@TestStep(Given)
def create_dashboard_and_open_it(self, dashboard_name):
"""Create new dashboard named dashboard name and open it."""
"""Create new dashboard named {dashboard_name} and open it."""
try:
for attempt in retries(delay=10, timeout=120):
with attempt:
Expand All @@ -225,7 +225,7 @@ def create_dashboard_and_open_it(self, dashboard_name):
saving_dashboard(dashboard_name=dashboard_name)

with When("I open dashboard"):
open_dashboard(dashboard_name="dashboard_panel")
open_dashboard(dashboard_name=dashboard_name)
yield
finally:
with Finally(f"I delete dashboard {dashboard_name}"):
Expand Down
4 changes: 1 addition & 3 deletions tests/testflows/steps/connections/locators.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ class Locators:

def data_source(self, num):
driver: WebDriver = current().context.driver
return driver.find_element(SelectBy.XPATH,
f"/html/body/div/div[1]/div/main/div/div[2]/div[3]/div/div[1]/div/div[2]/ul/li[{num}]/div")

return driver.find_element(SelectBy.XPATH, f"//div[@class='css-1736fpx-page-content']/ul/li[{num}]/div")

locators = Locators()
Loading

0 comments on commit abc93ba

Please sign in to comment.