|
|
|
@ -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(); |
|
|
|
|