Closed meduzen closed 9 months ago
Expansion of .editorconfig file
The existing .editorconfig
file is now able to provide uniform style and format settings for .mjs
files, like for .js
ones. Also, the indent size was fine-tuned, reducing it to 2
.
Refinement of .env.example file
This file now presents a new variable PW_BASE_URL
pointing towards the default local URL: 'http://localhost:4173'
.
Implementation of Playwright GitHub Actions workflow
There is a new .github/workflows/playwright.yml
file. This orchestrates an automated workflow to install dependencies, build the website, get Playwright browsers ready, and execute the tests.
Adjustments to .gitignore file
We have made sure that all files within the /tests/results
directory will be ignored by git, ensuring they won't be mistakenly committed.
Enrichment of package.json file
New scripts have been integrated for executing Playwright tests and linting specific files. Additionally, a dependency: @playwright/test
was added to help with running tests.
Introduction of new Playwright config file
A playwright.config.mjs
file was integrated. This clarifies settings for running Playwright tests, including options for the test project, reporter, and web server.
Addition of Playwright test files
Here we have block.spec.mjs
and title.spec.mjs
test files, housed under the tests
directory. These target the functionality tests for a block and the expected title.
Supplement of utility files
New date.mjs
and url.mjs
utility files have been added to tests/utils
directory to provide functions for consistent date handling and URL validity checks.
Refinement of vite.config.js file
This now supports .mjs
file extension in addition to .js
and .ts
for ESLint. This allows for eslinting ECMAScript module files.
Path | Size | Loading time (3g) | Running time (snapdragon) | Total time |
---|---|---|---|---|
Everything | 284.65 KB (+0.01% 🔺) | 5.7 s (+0.01% 🔺) | 1.6 s (-13.81% 🔽) | 7.3 s |
HTML | 4.38 KB (0%) | 88 ms (0%) | 0 ms (+100% 🔺) | 88 ms |
CSS | 3.59 KB (+0.11% 🔺) | 72 ms (+0.11% 🔺) | 0 ms (+100% 🔺) | 72 ms |
JS | 6.96 KB (0%) | 140 ms (0%) | 2 s (+33.3% 🔺) | 2.1 s |
Fonts | 58.09 KB (0%) | 1.2 s (0%) | 0 ms (+100% 🔺) | 1.2 s |
Sounds (FLAC) | 125.78 KB (0%) | 2.6 s (0%) | 0 ms (+100% 🔺) | 2.6 s |
Sounds (WAV) | 168.79 KB (0%) | 3.4 s (0%) | 0 ms (+100% 🔺) | 3.4 s |
Only adds very basic tests and a GitHub action.