fix: added save button to table component to improve consistency (#6663)
* Added onSave and onCancel to tableModal, in order for it to preserve state
* Changed TableNodeComponent to handle temp values and only change value when saved
* 🔧 (tableModal/index.tsx): refactor handleSetOpen and handleOnEscapeKeyDown functions to improve code readability and maintainability
* Fix test that use tableInput
---------
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
This commit is contained in:
parent
b8346a0afa
commit
70bb897a85
3 changed files with 62 additions and 14 deletions
|
|
@ -25,6 +25,10 @@ test(
|
|||
},
|
||||
);
|
||||
|
||||
await page.waitForSelector('[data-testid="zoom_out"]', {
|
||||
timeout: 3000,
|
||||
});
|
||||
|
||||
await page.getByTestId("sidebar-custom-component-button").click();
|
||||
|
||||
await page.getByTestId("zoom_out").click();
|
||||
|
|
@ -164,7 +168,7 @@ class CustomComponent(Component):
|
|||
numberOfCopiedRows = await page.getByText(thirdRandomText).count();
|
||||
expect(numberOfCopiedRows).toBe(0);
|
||||
|
||||
await page.getByText("Close").last().click();
|
||||
await page.getByText("Save").last().click();
|
||||
|
||||
await page.waitForSelector("text=Open table", {
|
||||
timeout: 3000,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue