Skip to content

Selenium yaml setup#244

Open
dorjiyangzom wants to merge 3 commits intoselenium-testsfrom
selenium-yaml-setup
Open

Selenium yaml setup#244
dorjiyangzom wants to merge 3 commits intoselenium-testsfrom
selenium-yaml-setup

Conversation

@dorjiyangzom
Copy link
Copy Markdown
Collaborator

@dorjiyangzom dorjiyangzom commented Mar 30, 2026

Description

  • migrate data from CSV to YAML format
  • replace dict with python dataclasses

@dorjiyangzom dorjiyangzom requested a review from neoformit March 30, 2026 09:11
Copy link
Copy Markdown
Collaborator

@neoformit neoformit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you're getting near the end of your internship, can I please ask you to add a README.md file in test/selenium that briefly explains how to run and maintain (add new reports) the tests?

Also, need to add pyyaml to requirements.

And please make sure the tests runs and passes before opening the a PR!



reports = parse_csv(Path("assertions.csv"))
reports = [parse_yaml(f) for f in sorted(Path(".").glob("*.yaml"))]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to keep things clean, would you mind please moving them into a subfolder "expected"? Looks like you already expect these in a "reports" folder (which also makes sense) but have not actually moved the YAML files there yet, so I get a test failure where exists = PosixPath('reports/1_report_SME25-218_2025-12-11_07_30_03.html').exists.

component.match_accession.assert_value(table_data["match_accession"])
component.match_identity.assert_value(table_data["match_identity"])
def assert_toi_table(toi_tab, toi_table, table_data):
toi_tab.toi_number_of_rows.assert_value(table_data["row_count"])
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docstring here would be good - try to think about the non-obvious things? Like "expected values are in a list with one value for each row in the table".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants