tests(Playwright): Full implementation of Page Object Models (POMs) to Playwright tests (#5608)
This commit is contained in:
1 parent
7b12dcf048
commit
d917e74e68
58 files changed
+1167
-496
No files matched your search
+2
-1
@@ -8,11 +8,12 @@ test.beforeEach(async ({ page }) => {
|
||||
|
||||
test('should display the probe tool', async ({
|
||||
page,
|
||||
DOMOverlayPageObject,
|
||||
mainToolbarPageObject,
|
||||
viewportPageObject,
|
||||
}) => {
|
||||
await mainToolbarPageObject.moreTools.probe.click();
|
||||
await viewportPageObject.active.clickAt([{ x: 550, y: 200 }]);
|
||||
await page.getByTestId('prompt-begin-tracking-yes-btn').click();
|
||||
await DOMOverlayPageObject.viewport.measurementTracking.confirm.click();
|
||||
await checkForScreenshot(page, page, screenShotPaths.probe.probeDisplayedCorrectly);
|
||||
});
|
||||
Reference in new issue
Block a user