Skip to content
Skillv1.0.0

tests

E2E Testing Guidelines

by basharnayal(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from basharnayal/nubl (tests/AGENTS.md). Install upstream with npx skills add basharnayal/nubl --skill tests. Copyright stays with the author.

E2E Testing Guidelines

  • We use Playwright with JavaScript (.spec.js under tests/e2e/).
  • Tests are located in the tests/e2e directory.
  • The baseURL is configured in config/playwright/*.config.js to http://127.0.0.1:8001 (must match php artisan serve in that config). Do not hardcode the host in page.goto(); use relative paths (e.g., await page.goto('/login')).
  • Use web-first assertions (e.g., await expect(page.locator('.alert')).toBeVisible()).
  • Rely on Playwright's auto-waiting capabilities; avoid adding hard page.waitForTimeout() sleeps.
  • Validate backend state changes where necessary (you can assume the app is a standard Laravel MVC or API architecture).

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/basharnayal-nubl-tests/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

basharnayal-nubl-tests.ocm.jsonjson
{
  "ocm": "1",
  "id": "basharnayal-nubl-tests",
  "kind": "skill",
  "name": "tests",
  "description": "E2E Testing Guidelines",
  "publisher": "basharnayal",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "github-agents"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "E2E Testing Guidelines"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github-agents",
      "repository": "https://github.com/basharnayal/nubl",
      "path": "tests/AGENTS.md",
      "ref": "fc14fd7e782dbe5db44ca755e299b3acbe377c8f",
      "url": "https://github.com/basharnayal/nubl/blob/fc14fd7e782dbe5db44ca755e299b3acbe377c8f/tests/AGENTS.md",
      "key": "basharnayal/nubl/tests/AGENTS.md"
    }
  },
  "instructions": "# E2E Testing Guidelines\n\n- We use Playwright with JavaScript (`.spec.js` under `tests/e2e/`).\n- Tests are located in the `tests/e2e` directory.\n- The `baseURL` is configured in `config/playwright/*.config.js` to `http://127.0.0.1:8001` (must match `php artisan serve` in that config). Do not hardcode the host in `page.goto()`; use relative paths (e.g., `await page.goto('/login')`).\n- Use web-first assertions (e.g., `await expect(page.locator('.alert')).toBeVisible()`).\n- Rely on Playwright's auto-waiting capabilities; avoid adding hard `page.waitForTimeout()` sleeps.\n- Validate backend state c",
  "cost": {
    "context_tokens": 173
  }
}

Fetch it by URL: GET /api/v1/registry/basharnayal-nubl-tests/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.