Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard e2 e #1507

Open
wants to merge 26 commits into
base: develop
Choose a base branch
from
Open

Dashboard e2 e #1507

wants to merge 26 commits into from

Conversation

Bahati308
Copy link
Contributor

@Bahati308 Bahati308 commented Feb 5, 2025

updated the dashboard E2E

Summary

Hardened selectors and improved functionality

Screenshots

Screenshot from 2025-02-06 15-51-32

[Add relevant screenshots here if applicable]

Related Issue

fixes #1505

https://uwdigi.atlassian.net/browse/OGC-28

Other

https://uwdigi.atlassian.net/issues/OGC-31?jql=issueKey%20in%20%28OGC-28%2COGC-30%2COGC-29%2COGC-31%2COGC-32%29

@Bahati308 Bahati308 marked this pull request as ready for review February 6, 2025 14:01
});

it("User adds a new Pathology order", function () {
homePage.goToOrderPage();
dashboard.addOrder("Histopathology");
dashboard.searchPatientByFName();
Copy link
Collaborator

@mozzy11 mozzy11 Feb 10, 2025

Choose a reason for hiding this comment

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

Thanks @Bahati308 .
These steps looks duplicated. can you just define a generic function to add an oder with a program ??

@@ -1,81 +1,131 @@
class DashBoardPage {
addOrder(Program) {
cy.fixture("Order").then((order) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this was a good generic function to add an order with a program.
Can you just improve this function selectors and re-use it across the three programs??


// Helper function to add a new order
const addNewOrder = (dashboardType, testType, sampleType, panelType) => {
homePage.goToOrderPage();
Copy link
Collaborator

Choose a reason for hiding this comment

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

does this function really add a coresponding program ??
i dont see where dashboardType is used with in the function

Copy link
Collaborator

Choose a reason for hiding this comment

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

ALright , i think i had confused dashboardtype with the program

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.

improving dashboard E2E
2 participants