MCPcopy Create free account
hub / github.com/Rello/analytics / renameNavigationEntry

Function renameNavigationEntry

tests/playwright/common.js:368–380  ·  view source on GitHub ↗
(page, currentName, nextName)

Source from the content-addressed store, hash-verified

366}
367
368async function renameNavigationEntry(page, currentName, nextName) {
369 const menu = await openNavigationEntryMenu(page, currentName);
370 await clickNavigationMenuAction(menu, 'rename', 'navigation rename');
371 const input = page.locator('.navigationRenameInput').first();
372 await input.waitFor({ state: 'visible', timeout: 10000 });
373 await input.fill(nextName);
374 await clickFirst(
375 page,
376 ['.icon-checkmark', '.navigationRenameInput + .icon-checkmark', 'button:has-text("Save")'],
377 'rename confirm'
378 );
379 await waitForNavigationEntryState(page, nextName, 'visible');
380}
381
382async function deleteNavigationEntry(page, name) {
383 const menu = await openNavigationEntryMenu(page, name);

Callers 1

12_group.jsFile · 0.85

Calls 5

openNavigationEntryMenuFunction · 0.85
clickFirstFunction · 0.85
firstMethod · 0.80

Tested by

no test coverage detected