-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OPIK-194] rest of e2e sanity tests, docstrings and architecture clea…
…nup (#364) * trace details test and basic dataset test * cleanup and finishing up * changed name of job * removed on:push --------- Co-authored-by: Andrei Căutișanu <[email protected]>
- Loading branch information
1 parent
f7bd89d
commit 2b5846b
Showing
8 changed files
with
216 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
test_installation: | ||
e2e_sanity: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from playwright.sync_api import Page, expect | ||
|
||
class DatasetsPage: | ||
def __init__(self, page: Page): | ||
self.page = page | ||
self.url = '/default/datasets' | ||
|
||
def go_to_page(self): | ||
self.page.goto(self.url) | ||
|
||
def select_database_by_name(self, name): | ||
self.page.get_by_text(name, exact=True).first.click() | ||
|
||
def check_dataset_exists_by_name(self, dataset_name): | ||
expect(self.page.get_by_text(dataset_name)).to_be_visible() | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from playwright.sync_api import Page, expect | ||
|
||
class ExperimentsPage: | ||
def __init__(self, page: Page): | ||
self.page = page | ||
self.url = '/default/experiments' | ||
|
||
def go_to_page(self): | ||
self.page.goto(self.url) | ||
|
||
def check_experiment_exists_by_name(self, name): | ||
expect(self.page.get_by_text(name).first).to_be_visible() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from playwright.sync_api import Page, expect | ||
|
||
class IndividualDatasetPage: | ||
def __init__(self, page: Page): | ||
self.page = page | ||
self.traces_table = page.get_by_role('table') | ||
|
||
def check_cell_exists_by_text(self, text): | ||
expect(self.traces_table.get_by_text(text)).to_be_visible() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters