From e0972aaf016ab50357e67dc826d971e77b12e005 Mon Sep 17 00:00:00 2001 From: JewelTee Date: Fri, 23 Aug 2024 10:46:51 +0800 Subject: [PATCH] update failing tests --- packages/playwright/tests/open-pack.spec.js | 2 +- packages/playwright/tests/pack-add-item.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/playwright/tests/open-pack.spec.js b/packages/playwright/tests/open-pack.spec.js index 79a78eda6..cb2718b67 100644 --- a/packages/playwright/tests/open-pack.spec.js +++ b/packages/playwright/tests/open-pack.spec.js @@ -8,7 +8,7 @@ test('Open pack', async ({ page }) => { await page.getByLabel('Password').click(); await page.getByLabel('Password').fill('87654321'); await page.getByRole('button', { name: 'Sign In' }).click(); - await page.getByRole('button', { name: 'Menu' }).click(); + await page.getByRole('button', { name: 'Menu' }).hover(); await page.getByRole('button', { name: 'Packs' }).click(); await page.goto('https://packrat.world/packs'); await page.waitForLoadState('load'); diff --git a/packages/playwright/tests/pack-add-item.spec.js b/packages/playwright/tests/pack-add-item.spec.js index 55b2a6182..d17d1eb82 100644 --- a/packages/playwright/tests/pack-add-item.spec.js +++ b/packages/playwright/tests/pack-add-item.spec.js @@ -9,7 +9,7 @@ test('test', async ({ page }) => { await page.getByLabel('Password').click(); await page.getByLabel('Password').fill('12345678'); await page.getByRole('button', { name: 'Sign In' }).click(); - await page.getByRole('button', { name: 'Menu' }).click(); + await page.getByRole('button', { name: 'Menu' }).hover(); await page.getByRole('button', { name: ' Packs' }).click(); await page.goto('https://packrat.world/packs'); await page.getByRole('link', { name: 'Quantity field' }).click();