mirror of
https://github.com/nasa/openmct.git
synced 2025-02-08 20:10:28 +00:00
get rid of force and use upper div
This commit is contained in:
parent
6dd6c87ceb
commit
02855d2c9c
@ -44,7 +44,7 @@ test.describe('Example Imagery Object', () => {
|
|||||||
|
|
||||||
// Verify that the created object is focused
|
// Verify that the created object is focused
|
||||||
await expect(page.locator('.l-browse-bar__object-name')).toContainText(exampleImagery.name);
|
await expect(page.locator('.l-browse-bar__object-name')).toContainText(exampleImagery.name);
|
||||||
await page.locator('canvas').hover({trial: true});
|
await page.locator('.c-imagery__main-image__bg').hover({trial: true});
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Can use Mouse Wheel to zoom in and out of latest image', async ({ page }) => {
|
test('Can use Mouse Wheel to zoom in and out of latest image', async ({ page }) => {
|
||||||
@ -674,11 +674,7 @@ async function mouseZoomOnImageAndAssert(page, factor = 2) {
|
|||||||
await page.mouse.move(imageCenterX, imageCenterY);
|
await page.mouse.move(imageCenterX, imageCenterY);
|
||||||
|
|
||||||
// Wait for zoom animation to finish
|
// Wait for zoom animation to finish
|
||||||
await page.locator(backgroundImageSelector).hover({
|
await page.locator('.c-imagery__main-image__bg').hover({trial: true});
|
||||||
trial: true,
|
|
||||||
// eslint-disable-next-line playwright/no-force-option
|
|
||||||
force: true
|
|
||||||
});
|
|
||||||
const imageMouseZoomed = await page.locator(backgroundImageSelector).boundingBox();
|
const imageMouseZoomed = await page.locator(backgroundImageSelector).boundingBox();
|
||||||
|
|
||||||
if (factor > 0) {
|
if (factor > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user