[e2e] Fix some of the plot tests (#5158)

* small general fixes

* Rename testsuite and use snapshot alias

* remove only

* Add some more determinism by waiting for Save Banner

* rename

* reduce time to fail

* add determinism

* log the process

Co-authored-by: unlikelyzero <jchill2@gmail.com>
This commit is contained in:
John Hill
2022-05-04 09:15:39 -07:00
committed by GitHub
parent c089a4760d
commit ab4d0dd37f
6 changed files with 40 additions and 31 deletions

View File

@ -98,6 +98,7 @@ test.describe('Example Imagery', () => {
await page.mouse.move(imageCenterX, imageCenterY);
// Pan Imagery Hints
console.log(process.platform);
const expectedAltText = process.platform === 'linux' ? 'Ctrl+Alt drag to pan' : 'Alt drag to pan';
const imageryHintsText = await page.locator('.c-imagery__hints').innerText();
expect(expectedAltText).toEqual(imageryHintsText);