Skip to content
Snippets Groups Projects
Unverified Commit 162b2288 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

Repro #20133: Recents list should not return archived items (#23774)

* Reference reproduced issue #23501

* Add repro for #20133
parent 17549361
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ describe("scenarios > collections > archive", () => {
cy.signInAsAdmin();
});
it("shows correct page when visiting page of question that was in archived collection", () => {
it("shows correct page when visiting page of question that was in archived collection (metabase##23501)", () => {
getCollectionIdFromSlug("first_collection", collectionId => {
const questionDetails = getQuestionDetails(collectionId);
......
......@@ -68,7 +68,7 @@ describe("managing question from the question's details sidebar", () => {
cy.contains("37.65");
});
it("should be able to archive the question (metabase#11719-3, metabase#16512)", () => {
it("should be able to archive the question (metabase#11719-3, metabase#16512, metabase#20133)", () => {
cy.intercept("GET", "/api/collection/root/items**").as(
"getItems",
);
......@@ -81,6 +81,10 @@ describe("managing question from the question's details sidebar", () => {
cy.location("pathname").should("eq", "/collection/root");
cy.findByText("Orders").should("not.exist");
cy.findByPlaceholderText("Search…").click();
cy.findByText("Recently viewed");
cy.findByText("Nothing here");
// Check page for archived questions
cy.visit("/question/1");
cy.findByText("This question has been archived");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment