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

Repro #22768: Cannot view Object Detail of non-numeric IDs (#22894)

parent 5e1037ea
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ import {
import { SAMPLE_DATABASE } from "__support__/e2e/cypress_sample_database";
const { ORDERS, ORDERS_ID } = SAMPLE_DATABASE;
const { ORDERS, ORDERS_ID, PRODUCTS } = SAMPLE_DATABASE;
describe("scenarios > question > object details", () => {
const FIRST_ORDER_ID = 9676;
......@@ -134,6 +134,23 @@ describe("scenarios > question > object details", () => {
.findByText("Searsboro")
.click();
});
it.skip("should work with non-numeric IDs (metabse#22768)", () => {
cy.request("PUT", `/api/field/${PRODUCTS.ID}`, {
semantic_type: null,
});
cy.request("PUT", `/api/field/${PRODUCTS.TITLE}`, {
semantic_type: "type/PK",
});
openProductsTable({ limit: 5 });
cy.findByTextEnsureVisible("Rustic Paper Wallet").click();
cy.location("search").should("eq", "?objectId=Rustic%20Paper%20Wallet");
cy.findByTestId("object-detail").contains("Rustic Paper Wallet");
});
});
function drillPK({ id }) {
......
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