Skip to content
Snippets Groups Projects
Unverified Commit 03af173d authored by Kamil Mielnik's avatar Kamil Mielnik Committed by GitHub
Browse files

Fix flaky models metadata test (#49665)

* Fix flaky models metadata test

* Improve hack
parent 1204554e
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