Back to list
iurygdeoliveira

debug-browser-tests

by iurygdeoliveira

Repositorio destinado a fornecer um kit inicial para desenvolvimento de SaaS usando laravel e filament

29🍴 12📅 Jan 20, 2026

SKILL.md


name: debug-browser-tests description: Guidelines for creating and debugging Pest v4 Browser tests, including mobile viewports.

Browser Test Debugger Skill

Use this skill to create end-to-end tests or debug UI issues.

Rules

1. Pest v4 Syntax

  • Use visit('/').
  • Use ->waitForText('Start').

2. Mobile Debugging

  • To test mobile layouts, set the viewport explicitly at the start of the test.
it('works on mobile', function () {
    $browser = visit('/');
    $browser->driver->manage()->window()->setSize(new \Facebook\WebDriver\WebDriverDimension(375, 812)); // iPhone X size

    $browser->clickHamburgerMenu(); // Custom method example
});

3. Debugging

  • Screenshots: $browser->screenshot('debug-step-1');
  • Pause: $browser->pause(1000); (Only for local debugging!)
  • Console Logs: $browser->assertNoConsoleLogs();

4. CSP Handling

  • If you hit CSP errors in tests, check SecurityHeadersMiddleware.

Score

Total Score

80/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon