-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Fix broken metric revision API call #42634
Conversation
|
cy.log("Make sure the revision history works (metabase#42633"); | ||
cy.get("tbody tr").icon("ellipsis").click(); | ||
popover().findByTextEnsureVisible("Revision History").click(); | ||
cy.location("pathname").should( | ||
"eq", | ||
"/admin/datamodel/metric/1/revisions", | ||
); | ||
cy.findByRole("heading").should( | ||
"have.text", | ||
'Revision History for "ORDERS"', | ||
); | ||
cy.findAllByRole("listitem").should("contain", "time for a change"); |
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.
The relevant bit for the repro.
cy.log( | ||
"Make sure this is reflected in the revision history (metabase#42633)", | ||
); | ||
cy.findAllByRole("listitem") | ||
.filter(':contains("Revision history for orders < 100")') | ||
.click(); | ||
|
||
cy.location("pathname").should( | ||
"eq", | ||
`/reference/metrics/${id}/revisions`, | ||
); | ||
cy.findAllByRole("listitem").should( | ||
"contain", | ||
"Renaming the description", | ||
); |
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.
The relevant bit for the repro.
@nemanjaglumac Did you forget to add a milestone to the issue for this PR? When and where should I add a milestone? |
Description
This PR Fixes #42633 that broke in two places:
It adds E2E reproductions for both cases.
It also consolidates some of the existing tests (but this was just a boy scout cleanup)
How to verify
Checklist