fix(overlay-menu): Adding, changing and removing segmentation overlays should update the overlay menu instantly (#5181)
This commit is contained in:
1 parent
b8b14b8940
commit
f08cc303e6
21 files changed
+164
-12
No files matched your search
@@ -3,7 +3,7 @@ import { Locator, Page } from 'playwright';
|
||||
|
||||
type CheckForScreenshotProps = {
|
||||
page: Page;
|
||||
locator: Locator | Page;
|
||||
locator?: Locator | Page;
|
||||
screenshotPath: string;
|
||||
attempts?: number;
|
||||
delay?: number;
|
||||
@@ -14,7 +14,7 @@ type CheckForScreenshotProps = {
|
||||
const _checkForScreenshot = async (props: CheckForScreenshotProps) => {
|
||||
const {
|
||||
page,
|
||||
locator,
|
||||
locator = page,
|
||||
screenshotPath,
|
||||
attempts = 10,
|
||||
delay = 500,
|
||||
|
||||
Reference in new issue
Block a user