refactor: Fix syntax error in MonitorStep and CriteriaFilterUtil

This commit fixes a syntax error in the MonitorStep and CriteriaFilterUtil files. In MonitorStep, the syntax error was caused by an extra semicolon (;) in the screenshotDataInBase64 assignment. In CriteriaFilterUtil, the return statement was incorrectly set to true instead of false. These changes ensure that the code is correct and functioning as intended.
This commit is contained in:
Simon Larsen 2024-05-22 11:47:13 +01:00
parent 01c214b51e
commit 3eb0eb4289
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA
2 changed files with 3 additions and 3 deletions

View File

@ -105,8 +105,8 @@ const MonitorStepElement: FunctionComponent<ComponentProps> = (
const screenshots = [];
const screenshot = {
screenshotDataInBase64: (await page.screenshot()).toString('base64'); // returns base64 encoded image
screenshotName: 'Playwright Screenshot';
screenshotDataInBase64: (await page.screenshot()).toString('base64'), // returns base64 encoded image
screenshotName: 'Playwright Screenshot'
};
// make sure you add it to screnshot array

View File

@ -471,7 +471,7 @@ export default class CriteriaFilterUtil {
return true;
}
return true;
return false;
}
public static getDropdownOptionsByCheckOn(data: {