Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Repo: End-to-end test that no console errors are logged on the homepage #6354

Closed
Labels
accepting prsGo ahead, send a pull request that resolves this issuegood first issueGood for newcomersrepo maintenancethings to do with maintenance of the repo, and not with code/docs
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Suggestion

Coming over from#6350: we had an issue with our React code caused by us using invalid HTML. Specifically, React was logging this:

Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>.

We should end-to-end test to make sure this doesn't happen on the homepage again. Right now we just test that the homepage has no accessibility issues detectable byaXe:

test('Index',async({ page})=>{
awaitpage.goto('/');
awaitnewAxeBuilder({ page}).analyze();
});

Playwright is able to listen to console messages. I propose we make a second end-to-end test that checks to make sure noconsole.error calls happened.

It wouldn't surprise me if a library already exists for Playwright somewhere that does this...

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuegood first issueGood for newcomersrepo maintenancethings to do with maintenance of the repo, and not with code/docs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp