mirror of
https://github.com/LamGC/wp-asciiplayer.git
synced 2026-11-26 20:55:48 +00:00
Fix Media Library test storage and scope sidebar selectors
This commit is contained in:
@@ -44,7 +44,7 @@ async function readyPreview(block) {
|
||||
async function openInspectorPanel(page, name, control) {
|
||||
await page.evaluate(() => window.wp.data.dispatch('core/edit-post').openGeneralSidebar('edit-post/block'));
|
||||
if (!await control.isVisible()) {
|
||||
await page.getByRole('button', { name, exact: true }).click();
|
||||
await page.locator('.components-panel__body-toggle').filter({ hasText: new RegExp(`^${name}$`) }).click();
|
||||
}
|
||||
await expect(control).toBeVisible();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user