Skip to content

Commit 416751e

Browse files
Update hfg-menu-item-description.spec.ts
1 parent 84b85c3 commit 416751e

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

e2e-tests/specs/customizer/hfg/hfg-menu-item-description.spec.ts

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28,36 +28,16 @@ test.describe('Menu item description', function () {
2828
await page.getByRole('button', { name: 'Add New Category' }).click();
2929
await page.goto('wp-admin/nav-menus.php');
3030

31-
await page.waitForSelector('.menu-name');
32-
await page.locator('.menu-name').fill('My New Menu');
33-
await page.getByLabel('Primary Menu').check();
34-
await page.locator('#save_menu_footer ').click();
35-
36-
await page.locator('#add-category h3').click();
3731
await page
38-
.locator('#taxonomy-category-tabs')
39-
.getByRole('link', { name: 'View All' })
32+
.getByRole('heading', {
33+
name: 'Categories Press return or enter to open this section ',
34+
})
4035
.click();
41-
await page.getByLabel('ADescriptionCat').check();
42-
43-
await Promise.all([
44-
page.waitForResponse(
45-
(res) =>
46-
res.url().includes('wp-admin/admin-ajax.php') &&
47-
res.status() === 200
48-
),
49-
page.getByRole('button', { name: 'Add to Menu' }).click(),
50-
]);
51-
52-
await page.keyboard.press('End');
53-
await page.waitForTimeout(500);
54-
55-
await page.locator('#add-post-type-page h3').click();
5636
await page
57-
.locator('#posttype-page-tabs')
37+
.locator('#taxonomy-category-tabs')
5838
.getByRole('link', { name: 'View All' })
5939
.click();
60-
await page.getByLabel('Sample Page').last().check();
40+
await page.getByLabel('ADescriptionCat').check();
6141

6242
await Promise.all([
6343
page.waitForResponse(

0 commit comments

Comments
 (0)