diff --git a/tests/playwright/pages/Dashboard/Grid/index.ts b/tests/playwright/pages/Dashboard/Grid/index.ts index 4d383b29a4..8f53c922ab 100644 --- a/tests/playwright/pages/Dashboard/Grid/index.ts +++ b/tests/playwright/pages/Dashboard/Grid/index.ts @@ -87,7 +87,8 @@ export class GridPage extends BasePage { uiAction: clickOnColumnHeaderToSave, requestUrlPathToMatch: 'api/v1/db/data/noco', httpMethodsToMatch: ['POST'], - responseJsonMatcher: resJson => resJson?.[columnHeader] === rowValue, + // numerical types are returned in number format from the server + responseJsonMatcher: resJson => String(resJson?.[columnHeader]) === String(rowValue), }); } else { await clickOnColumnHeaderToSave(); @@ -122,7 +123,8 @@ export class GridPage extends BasePage { // since edit row on an empty row will emit POST request 'POST', ], - responseJsonMatcher: resJson => resJson?.[columnHeader] === value, + // numerical types are returned in number format from the server + responseJsonMatcher: resJson => String(resJson?.[columnHeader]) === String(value), }); } else { await clickOnColumnHeaderToSave();