refactor: update record automatic close message popup (#5408)

* refactor: update record automatic close message popup

* fix: test
This commit is contained in:
Katherine 2024-10-14 13:55:51 +08:00 committed by GitHub
parent 03a7294c5b
commit b62dbb1cbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -25,7 +25,7 @@ export const UpdateRecordActionInitializer = (props) => {
'x-action-settings': {
assignedValues: {},
onSuccess: {
manualClose: true,
manualClose: false,
redirecting: false,
successMessage: '{{t("Updated successfully")}}',
},

View File

@ -843,7 +843,6 @@ test.describe('actions schema settings', () => {
const expectNewValue = async (value: string) => {
await page.getByLabel('action-Action.Link-Update record-customize:update-users2-table-0').click();
await page.getByRole('button', { name: 'OK', exact: true }).click();
await page.getByLabel('action-Action-Refresh-refresh').click();
await expect(page.getByLabel('block-item-CardItem-users2-').getByText(value)).toBeVisible();
};