Skip to content

Fix: create-paylink.js script timing out on wallet selector #23

Description

@BenGWeeks

Problem

The test script tests/ui/setup/create-paylink.js is timing out when trying to create a paylink automatically.

Error Details

The script times out when attempting to click the wallet selector dropdown. The error indicates that a span element containing the domain name is intercepting pointer events, blocking interaction with the form.

locator.click: Timeout 30000ms exceeded.
- <span>domain-name</span> from <div id="q-portal--dialog--1">…</div> subtree intercepts pointer events

Steps to Reproduce

  1. Start LNbits dev instance
  2. Enable PayLinks extension
  3. Run: node tests/ui/setup/create-paylink.js
  4. Script times out at wallet selection step

Current Workaround

Paylinks can be created manually through the LNbits UI.

Expected Behavior

The script should successfully:

  • Open the New Pay Link dialog
  • Select the Receiving wallet
  • Set the lightning address
  • Set the amount
  • Create the paylink

Environment

  • LNbits version: 1.1.0
  • PayLinks extension: Enabled
  • Database: SQLite

Suggested Fix

The script may need to:

  1. Handle/close any overlaying dialogs or popups before interacting with the form
  2. Use different selectors that aren't blocked by the domain name display
  3. Wait for the form to be fully interactive before attempting clicks

Related Files

  • tests/ui/setup/create-paylink.js
  • tests/ui/setup/enable-paylinks.js (working correctly)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions