Closed koudaiii closed 1 month ago
$ npm run test:e2e
> jp-learn-microsoft-com-update-checker@1.2.0 test:e2e
> jest tests/e2e
PASS tests/e2e/content.e2e.test.js (10.051 s)
JP Learn Microsoft.com Update Checker E2E Test
✓ should display English update date on Japanese Microsoft Learn page (1594 ms)
✓ should display light theme when button[data-theme-to]=light and button[aria-pressed]=true (263 ms)
✓ should not run script on non-ja-jp pages (420 ms)
✓ should run script with jp-learn-microsoft-com-update-checker-debug flag (194 ms)
Test Suites: 1 passed, 1 total
Tests: 4 passed, 4 total
Snapshots: 0 total
Time: 10.172 s
Ran all test suites matching /tests\/e2e/i.
👌
$ npm run test:e2e
> jp-learn-microsoft-com-update-checker@1.2.0 test:e2e
> jest tests/e2e
PASS tests/e2e/content.e2e.test.js (10.293 s)
JP Learn Microsoft.com Update Checker E2E Test
✓ should display English update date on Japanese Microsoft Learn page (1399 ms)
✓ should display light theme when button[data-theme-to]=light and button[aria-pressed]=true (244 ms)
✓ should display dark theme when button[data-theme-to]=dark and button[aria-pressed]=true (197 ms)
✓ should not run script on non-ja-jp pages (433 ms)
✓ should run script with jp-learn-microsoft-com-update-checker-debug flag (196 ms)
Test Suites: 1 passed, 1 total
Tests: 5 passed, 5 total
Snapshots: 0 total
Time: 10.415 s, estimated 11 s
Ran all test suites matching /tests\/e2e/i.
dark theme 👌
$ npm run test:e2e
> jp-learn-microsoft-com-update-checker@1.2.0 test:e2e
> jest tests/e2e
PASS tests/e2e/content.e2e.test.js (8.996 s)
JP Learn Microsoft.com Update Checker E2E Test
✓ should display English update date on Japanese Microsoft Learn page (1038 ms)
✓ should display light theme when button[data-theme-to]=light and button[aria-pressed]=true (246 ms)
✓ should display dark theme when button[data-theme-to]=dark and button[aria-pressed]=true (208 ms)
✓ should display high-contrast theme when button[data-theme-to]=high-contrast and button[aria-pressed]=true (209 ms)
✓ should not run script on non-ja-jp pages (425 ms)
✓ should run script with jp-learn-microsoft-com-update-checker-debug flag (189 ms)
Test Suites: 1 passed, 1 total
Tests: 6 passed, 6 total
Snapshots: 0 total
Time: 9.133 s, estimated 11 s
Ran all test suites matching /tests\/e2e/i.
high-contrast theme 👌
Why & What
Added test with theme selected.