Skip to content

docs(examples): list a local Moli sign-in example - #1944

Merged
okwasniewski merged 2 commits into
e2e-inc:mainfrom
lexmount:moli-exmaple
Nov 19, 2026
Merged

okwasniewski merged 2 commits into
e2e-inc:mainfrom
lexmount:moli-exmaple

Conversation

@ldm0

@ldm0 ldm0 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

What and why

  • List the local Moli sign-in example on e2e.com/examples as a community example, pinned to that commit.
  • The tests cover rejected sign-in and verify that signing out blocks access to the dashboard. The README includes a dashboard screenshot and instructions for adapting the tests.
  • Reuse the Moli integration logo in examples/icons/ and record its source.

Verified

Ran it locally: yes

  • From a fresh copy matching the pinned commit, on macOS arm64 with Node 26.7.0 and Moli 1.1.25: npm ci, then PORT=14271 MOLI_PATH="$HOME/.local/bin/moli" E2E_TELEMETRY_DISABLED=1 npm test:

     Test Files  1 passed (1)
          Tests  2 passed (2)
    
  • pnpm check:examples and NODE_USE_ENV_PROXY=1 pnpm check:examples --online: examples/examples.json: 70 examples OK.

  • The pinned README and its dashboard screenshot are publicly accessible.

View guided diff

Register the community sign-in example at its pinned source commit
and reuse the existing Moli integration logo with source attribution.

Verified locally:
- pnpm check:examples
- NODE_USE_ENV_PROXY=1 pnpm check:examples --online (70 examples OK)
- Fresh copy matching the pinned example: 2 tests passed on Moli 1.1.25
@github-actions github-actions Bot added the size:S Up to 29 changed lines, not counting tests, fixtures, translated docs, or the lockfile label Nov 18, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.

View guided diff | Re-trigger cubic

@okwasniewski okwasniewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[claude-opus-5-5] automated review on behalf of @okwasniewski

Checked at 27becc6 (main 9d240ac): the entry, the icon, and the linked example at lexmount/moli@c99f3fd.

The example works as described. npm ci && npm test with Moli 1.1.25 (macOS arm64, Node 24.19): 2 passed. Mutation: with /logout no longer revoking the session, the second test fails on toHaveURL('/login'), so it really checks sign-out. node scripts/check-examples.ts and --online: 70 examples OK. moli.png is byte-identical to docs/images/integrations/moli.png. CI green.

Must fix

  • none

Should fix

  • The example vendors packages/moli/src from 29a0261 into vendor/moli/ (identical to that commit) because @e2e-dev/moli is not on npm yet. That's fine for now, but once the package publishes, please switch the example to @e2e-dev/moli in a follow-up and bump the pinned SHA here. Otherwise the listed example teaches copying the provider instead of installing it, and it drifts from the integration docs (docs/integrations/moli.mdx says npm install @e2e-dev/moli).

Nits

  • examples/examples.json: the other browser-vendor entries (Lightpanda, KERNEL, Notte) use titles like "Testing in X with e2e". Consider "Testing sign-in in a local Moli browser with e2e" or similar.
  • "No API keys required." holds for every locator-only example. Dropping it keeps the description to what's specific here.

Heads up, not blocking: the example pins e2e 0.23.1 / @e2e-dev/web 0.16.0, so the pinned commit keeps working. Bumping it past the WebDriver BiDi web driver (#1503) will break it with today's Moli builds: located-node actions (fill, tap) and app.screenshot fail on Moli over the BiDi mapper. The fix belongs on the e2e side (drive Moli's native BiDi endpoint), not in this example.

@kacperkapusciak

Copy link
Copy Markdown
Member

Thanks for this! Moli is a partner, so this entry should be "source": "partner", not "community". A partner entry needs a few changes:

  • author.website with your landing page (required for partners)
  • the repository can follow main instead of a pinned commit (pinning is only required for community entries)
  • licenseUrl pointing at the example's LICENSE
  • the entry moves up into the partner group, right after lightpanda and before the community entries

Here's the entry to use. Move it to sit after the lightpanda entry and remove the one at the end of the file:

    {
      "slug": "moli",
      "title": "Testing sign-in with e2e in a local Moli browser",
      "shortTitle": "Moli",
      "description": "Test a sign-in form locally with Moli. Capture the signed-in dashboard and verify that signing out blocks access. No API keys required.",
      "icon": "moli.png",
      "source": "partner",
      "repository": "https://github.com/lexmount/moli/tree/main/examples/e2e-sign-in",
      "author": {
        "name": "Lexmount",
        "github": "lexmount",
        "website": "https://browser.lexmount.com"
      },
      "license": "Apache-2.0",
      "licenseUrl": "https://github.com/lexmount/moli/blob/main/examples/e2e-sign-in/LICENSE",
      "tags": {
        "framework": [
          "nodejs"
        ],
        "useCase": [
          "authentication"
        ],
        "platform": [
          "web"
        ]
      }
    },

If https://browser.lexmount.com isn't the landing page you want linked, swap in the right one. With this change, node scripts/check-examples.ts --online passes. Alternatively, turn on "Allow edits by maintainers" and we'll push the change for you.

@ldm0

ldm0 commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

@kacperkapusciak Thanks! Working on it.

Place Moli after Lightpanda in the partner group, link Lexmount's
landing page and the example LICENSE, and follow the example on main.

Verified locally:
- pnpm check:examples (70 examples OK)
- NODE_USE_ENV_PROXY=1 node scripts/check-examples.ts --online (70 examples OK)
- Landing page, LICENSE, and dashboard screenshot return HTTP 200

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 1 file (changes from recent commits).

Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.

View guided diff | Re-trigger cubic

@okwasniewski okwasniewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@okwasniewski
okwasniewski merged commit ae36939 into e2e-inc:main Nov 19, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S Up to 29 changed lines, not counting tests, fixtures, translated docs, or the lockfile

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants