mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-25 14:57:37 +00:00
Fix lint errors in file browser test
- Remove non-null assertion in favor of proper null check - Add z-index comments for clarity in modal overlays - Remove unused Z_INDEX imports after switching to comments 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
913cce61d2
commit
14f5315ab0
3 changed files with 9 additions and 7 deletions
|
|
@ -33,8 +33,8 @@ export class CtrlAlphaOverlay extends LitElement {
|
|||
return html`
|
||||
<modal-wrapper
|
||||
.visible=${this.visible}
|
||||
modalClass="z-50"
|
||||
contentClass="fixed inset-0 flex flex-col z-50"
|
||||
modalClass="z-50" /* z-50 ensures overlay appears above other UI elements */
|
||||
contentClass="fixed inset-0 flex flex-col z-50" /* z-50 matches modal z-index */
|
||||
ariaLabel="Ctrl key sequence builder"
|
||||
@close=${() => this.onCancel?.()}
|
||||
.closeOnBackdrop=${true}
|
||||
|
|
|
|||
|
|
@ -211,8 +211,8 @@ export class MobileInputOverlay extends LitElement {
|
|||
return html`
|
||||
<modal-wrapper
|
||||
.visible=${this.visible}
|
||||
modalClass="z-40"
|
||||
contentClass="fixed inset-0 flex flex-col z-40"
|
||||
modalClass="z-40" /* z-40 ensures overlay appears above base UI elements */
|
||||
contentClass="fixed inset-0 flex flex-col z-40" /* z-40 matches modal backdrop z-index */
|
||||
ariaLabel="Mobile input overlay"
|
||||
@close=${() => this.onCancel?.()}
|
||||
.closeOnBackdrop=${true}
|
||||
|
|
|
|||
|
|
@ -32,9 +32,11 @@ test.describe('File Browser in Session Create Form', () => {
|
|||
await expect(fileBrowser).toBeVisible({ timeout: 5000 });
|
||||
|
||||
// Verify file browser is above session create modal by checking z-index
|
||||
const fileBrowserZIndex = await fileBrowser.evaluate(
|
||||
(el) => window.getComputedStyle(el.parentElement!).zIndex
|
||||
);
|
||||
const fileBrowserZIndex = await fileBrowser.evaluate((el) => {
|
||||
const parent = el.parentElement;
|
||||
if (!parent) return '0';
|
||||
return window.getComputedStyle(parent).zIndex;
|
||||
});
|
||||
expect(Number.parseInt(fileBrowserZIndex)).toBeGreaterThan(1000); // Modal backdrop is z-index: 1000
|
||||
|
||||
// Verify we can interact with file browser (not blocked by modal)
|
||||
|
|
|
|||
Loading…
Reference in a new issue