Skip to content

Commit

Permalink
undo re-arrange for now
Browse files Browse the repository at this point in the history
  • Loading branch information
adRn-s committed Nov 7, 2023
1 parent 16e6055 commit 36ee91d
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ models*.pdf
models.png
models.svg
models.dot
frontend_testing_suite/results/playwright-tests-*/
backend/frontend_testing_suite/results/**/trace.zip
.*_cache/
*.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import utilities
from playwright.sync_api import Page, expect

CSV_DATA = os.path.dirname(os.path.realpath(__file__)) + "/../data/"


@pytest.fixture(scope="session")
def browser_context_args(browser_context_args):
Expand Down Expand Up @@ -61,7 +63,7 @@ def test_requests_page(page: Page):
expect(page.get_by_text("Add Libraries")).to_be_visible()
createEmptyRowInput.fill("1")
with open(
os.getcwd() + "/playwright/data/library_request.csv",
CSV_DATA + "library_request.csv",
newline="",
encoding="utf-8",
) as library_csv_file:
Expand Down Expand Up @@ -104,7 +106,7 @@ def test_requests_page(page: Page):
expect(page.get_by_text("Add Samples")).to_be_visible()
createEmptyRowInput.fill("1")
with open(
os.getcwd() + "/playwright/data/sample_request.csv",
CSV_DATA + "sample_request.csv",
newline="",
encoding="utf-8",
) as sample_csv_file:
Expand Down Expand Up @@ -140,7 +142,7 @@ def test_requests_page(page: Page):
"#librariesTable-body>div>div>table>tbody>tr>td>.x-grid-cell-inner-treecolumn>.x-tree-expander"
).nth(0).click()
with open(
os.getcwd() + "/playwright/data/sample_request.csv",
CSV_DATA + "sample_request.csv",
newline="",
encoding="utf-8",
) as sample_csv_file:
Expand Down Expand Up @@ -208,7 +210,7 @@ def test_requests_page(page: Page):
"#librariesTable-body>div>div>table>tbody>tr>td>.x-grid-cell-inner-treecolumn>.x-tree-expander"
).nth(1).click()
with open(
os.getcwd() + "/playwright/data/library_request.csv",
CSV_DATA + "library_request.csv",
newline="",
encoding="utf-8",
) as library_csv_file:
Expand Down
2 changes: 1 addition & 1 deletion playwright.ini β†’ backend/playwright.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[pytest]
python_files = frontend_testing_suite/tests/*
addopts = --ignore=frontend_testing_suite/tests/utilities.py --browser=firefox --slowmo=75 --tracing=on --output=playwright/results/
addopts = --ignore=frontend_testing_suite/tests/utilities.py --browser=firefox --slowmo=75 --tracing=on --output=frontend_testing_suite/results/

0 comments on commit 36ee91d

Please sign in to comment.