Skip to content

Files

webapp

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 5, 2025
Oct 9, 2019
Feb 26, 2025
Sep 28, 2022
Mar 5, 2025
Feb 14, 2025
Sep 29, 2023
Jun 9, 2020
Nov 3, 2020
Oct 1, 2020
Feb 29, 2024
Jul 16, 2024
Aug 21, 2023
Sep 10, 2024
Jan 8, 2019
Sep 10, 2024
Jun 7, 2024
Oct 1, 2020
Oct 1, 2020
Feb 12, 2025
Feb 12, 2025
Nov 3, 2020
Feb 11, 2025
Mar 3, 2025
Mar 3, 2025
Feb 29, 2024
Feb 9, 2025
Sep 10, 2024
Jul 20, 2022
Oct 1, 2020
Feb 29, 2024
Feb 27, 2024

wpt.fyi

Testing webapp/

Prerequisites:

  1. Setting up your environment
  2. Running locally

Once the above steps are completed, run the following commands from within webapp/:

npm install

Test commands

webapp/ has both lint tests and tests based on web-component-test. There are npm aliases for many of the common tasks, listed below.

  • npm test: This will run the linting task followed by the web-component-tester task.
  • npm run lint: This will run only the linting task.
  • npm run lint-fix: This will run the linting task with automatic lint fixing.
  • npm run wct: This will run only the web-component-tester task.
  • npm run wctp: This will run the web-component-tester task with the -p flag to leave the browser open after the tests have completed.

When using npm run, any additional flags or options will be passed to the underlying command. For example, to run a specific test only on chrome:

  • npm run wct -l chrome path/to/test/test-file.html

Running web_components_test

To run web_components_test in any platform, first start a Docker instance. Once the instance is running, execute the following in another terminal:

source util/commands.sh
wptd_exec make web_components_test