Unverified Commit 976a2222 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[test] Ensure we can toggle the DevTools menu while status indicators are active (#85456)

parent b95dbe6a
......@@ -539,6 +539,7 @@ function CacheBypassBadge({
<div data-issues data-cache-bypass-badge>
<button
data-issues-open
data-nextjs-dev-tools-button
aria-label="Open Next.js Dev Tools"
onClick={onTriggerClick}
>
......
......@@ -158,6 +158,7 @@ export function StatusIndicator({ status, onClick }: StatusIndicatorProps) {
</style>
<button
data-indicator-status
data-nextjs-dev-tools-button
onClick={onClick}
aria-label="Open Next.js Dev Tools"
>
......
......@@ -615,7 +615,7 @@ export class Playwright<TCurrent = undefined> {
}
locateDevToolsIndicator(): Locator {
return page.locator('nextjs-portal [data-nextjs-dev-tools-button]')
return page.locator('nextjs-portal [data-nextjs-dev-tools-button]:visible')
}
locator(selector: string, options?: Parameters<(typeof page)['locator']>[1]) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment