-
Notifications
You must be signed in to change notification settings - Fork 279
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
base: develop
Are you sure you want to change the base?
Dashboard e2 e #1507
Conversation
frontend/cypress/e2e/dashboard.cy.js
Outdated
}); | ||
|
||
it("User adds a new Pathology order", function () { | ||
homePage.goToOrderPage(); | ||
dashboard.addOrder("Histopathology"); | ||
dashboard.searchPatientByFName(); |
There was a problem hiding this comment.
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) => { |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
updated the dashboard E2E
Summary
Hardened selectors and improved functionality
Screenshots
[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