Skip to content
Snippets Groups Projects
Unverified Commit e0e02c9e authored by github-automation-metabase's avatar github-automation-metabase Committed by GitHub
Browse files

Fix flaky models metadata test (#49665) (#49924)


* Fix flaky models metadata test

* Improve hack

Co-authored-by: default avatarKamil Mielnik <kamil@kamilmielnik.com>
parent 61577d01
No related branches found
No related tags found
No related merge requests found
......@@ -34,9 +34,11 @@ export function setColumnType(oldType, newType) {
.contains(oldType)
.click();
cy.get(".ReactVirtualized__Grid.MB-Select").realMouseWheel({ deltaY: -200 });
cy.findByPlaceholderText("Search for a special type").realType(newType);
popover().findByLabelText(newType).click();
popover().within(() => {
cy.findByText(oldType).closest(".ReactVirtualized__Grid").scrollTo(0, 0); // HACK: scroll to the top of the list. Ideally we should probably disable AccordionList virtualization
cy.findByPlaceholderText("Search for a special type").realType(newType);
cy.findByLabelText(newType).click();
});
}
export function mapColumnTo({ table, column } = {}) {
......
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