mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Fixing bug with resuming search on a hidden column.
Summary: Fix for error that happens when a search is resumed after one of the columns was hidden. Test Plan: Added test that shows the error. Reviewers: alexmojaki Reviewed By: alexmojaki Subscribers: alexmojaki Differential Revision: https://phab.getgrist.com/D3309
This commit is contained in:
@@ -998,6 +998,46 @@ export async function waitForSidePanel() {
|
||||
await driver.sleep((transitionDuration + delta) * 1000);
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens a Creator Panel on Widget/Table settings tab.
|
||||
*/
|
||||
export async function openWidgetPanel() {
|
||||
await toggleSidePanel('right', 'open');
|
||||
await driver.find('.test-right-tab-pagewidget').click();
|
||||
}
|
||||
|
||||
/**
|
||||
* Moves a column from a hidden to visible section.
|
||||
* Needs a visible Creator panel.
|
||||
*/
|
||||
export async function moveToVisible(col: string) {
|
||||
const row = await driver.findContent(".test-vfc-hidden-fields .kf_draggable_content", exactMatch(col));
|
||||
await row.mouseMove();
|
||||
await row.find('.test-vfc-hide').click();
|
||||
await waitForServer();
|
||||
}
|
||||
|
||||
/**
|
||||
* Moves a column from a visible to hidden section.
|
||||
* Needs a visible Creator panel.
|
||||
*/
|
||||
export async function moveToHidden(col: string) {
|
||||
const row = await driver.findContent(".test-vfc-visible-fields .kf_draggable_content", exactMatch(col));
|
||||
await row.mouseMove();
|
||||
await row.find('.test-vfc-hide').click();
|
||||
await waitForServer();
|
||||
}
|
||||
|
||||
export async function search(what: string) {
|
||||
await driver.find('.test-tb-search-icon').doClick();
|
||||
await driver.sleep(500);
|
||||
await driver.find('.test-tb-search-input').doClick();
|
||||
await selectAll();
|
||||
await driver.sendKeys(what);
|
||||
// Sleep for search debounce time
|
||||
await driver.sleep(120);
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggles (opens or closes) the filter bar for a section.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user