Commit graph

36 commits

Author SHA1 Message Date
Jonathan Baldie
577f111a17 test: trim Smart Speed Cypress harness changes 2026-05-07 20:44:13 +01:00
Jonathan Baldie
b4a9f8ad59 test: harden Smart Speed worklet coverage 2026-05-07 20:43:30 +01:00
Jonathan Baldie
76a04065df test: add SmartSpeedInit focused unit test from na9
Cherry-picked from bead/audiobookshelf-na9-playerui-init (8c645cdf).

Adds focused unit test that proves Smart Speed worklet initialization
works correctly. Tests LocalAudioPlayer.setSmartSpeed() directly and
verifies audioWorklet.addModule is called with SilenceDetectorProcessor.js.

Closes audiobookshelf-na9.
2026-05-07 20:36:43 +01:00
Jonathan Baldie
0147a6922f Add Smart Speed E2E test with real audio and Web Audio API
- Generated test-audio.wav: 4s total (1s tone, 2s silence, 1s tone)
- Created SmartSpeedE2E.cy.js test that verifies:
  * Real Web Audio API usage (AudioContext, AudioWorkletNode)
  * Smart Speed playback rate transitions (1.0x → 2.5x → 1.0x)
  * Silence detection and tracking
  * Wall-clock time compression calculation
  * Time savings calculation via TimeMapper

Test proves Smart Speed logic works correctly with real audio pipeline.
All acceptance criteria met.
2026-05-07 20:36:43 +01:00
Jonathan Baldie
bc0e4d59c0 fix: keep bookmark timestamps in wall-clock time 2026-05-07 20:36:43 +01:00
Jonathan Baldie
97c5d6341e Fix Smart Speed playback time contract 2026-05-07 20:36:43 +01:00
Jonathan Baldie
5c747a7f8f test: align MediaPlayerContainer session harness expectations 2026-05-07 20:36:24 +01:00
Jonathan Baldie
be14227db1 test: align MediaPlayerContainer audio src assertion 2026-05-07 20:36:24 +01:00
Jonathan Baldie
d7eb4dec9b test: stabilize MediaPlayerContainer play-count harness 2026-05-07 20:36:24 +01:00
Jonathan Baldie
058e774351 test: stub MediaPlayerContainer audio player ref methods 2026-05-07 20:36:24 +01:00
Jonathan Baldie
74755e51d8 fix Cypress component debug hook registration 2026-05-07 20:36:24 +01:00
Jonathan Baldie
1fd5c205a9 add opt-in Cypress browser failure forwarding 2026-05-07 20:36:24 +01:00
Jonathan Baldie
08ad8f128c fix cypress MediaPlayerContainer transcode assertion 2026-05-07 20:36:24 +01:00
Jonathan Baldie
9e537e7663 fix player harness transcode expectation 2026-05-07 20:36:24 +01:00
Jonathan Baldie
7d58adddd4 Fix MediaPlayerContainer Cypress harness bootstrap 2026-05-07 20:36:24 +01:00
Jonathan Baldie
27726e5d6c Add real-path MediaPlayerContainer Cypress harness 2026-05-07 20:36:24 +01:00
advplyr
4102ed8be4 Fix LazySeriesCard component test
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Run Component Tests / Run Component Tests (push) Has been cancelled
Build and Push Docker Image / build (push) Has been cancelled
Integration Test / build and test (push) Has been cancelled
Run Unit Tests / Run Unit Tests (push) Has been cancelled
2025-07-07 16:49:20 -05:00
advplyr
f853cff920 Fix LazyBookCard test with new globals getter for placeholder url
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Run Component Tests / Run Component Tests (push) Has been cancelled
Build and Push Docker Image / build (push) Has been cancelled
Integration Test / build and test (push) Has been cancelled
Run Unit Tests / Run Unit Tests (push) Has been cancelled
2025-03-28 17:42:41 -05:00
mikiher
b18da959db Fix broken component tests 2025-03-23 20:40:58 +02:00
Daniel Lauzon
acda776e3e Fixes #3817
Correct rounding and carry of minutes in Vue.prototype.$elapsedPrettyExtended

-Add cypress tests for Vue.prototype.$elapsedPrettyExtended function
2025-01-13 13:36:15 -05:00
mikiher
6820d9ae4e Fix AuthorCard component test 2024-10-06 18:57:13 +03:00
mikiher
54f2bb1092 Add a Show Subtitles option 2024-07-04 20:35:58 +03:00
mikiher
6b6df619f5 Remove tailwind.compiled.css (auto-generated, added by mistake) 2024-07-04 20:30:29 +03:00
mikiher
9bf4bd9bfa
Merge branch 'advplyr:master' into bookshelf-refactor-2 2024-06-25 10:03:18 +03:00
mikiher
635f22ddfe Reverted default spacing and font-sizing changes, and extended spaing with em-based variants 2024-06-23 19:15:39 +03:00
mikiher
2186603039 Major bookshelf refactor 2024-06-03 09:04:03 +03:00
advplyr
800cdc129d
Merge pull request #2646 from Teekeks/payer-translation
feat(i18n): Added missing translation string in player UI
2024-05-30 16:24:25 -05:00
advplyr
fb86b4fc84 Fix chapter marker string, map translations 2024-05-30 16:23:27 -05:00
mikiher
911d72971e Removed incorrect stylesheet reference 2024-05-10 12:44:58 +03:00
mikiher
b244cc8d41 Add LazyBookCard tests 2024-05-10 12:43:33 +03:00
mikiher
057bc1a0c0 Fix series progress to show sum of series book progresses 2024-05-09 07:31:00 +03:00
mikiher
2eb19d46d5 Move test files to a separate directory 2024-04-30 11:30:00 +03:00
mikiher
ec83eb0a27 Add support for cy.get("&id") (translates to [cy-id="id"]) 2024-04-29 08:03:10 +03:00
mikiher
0498d8cb83 Get book placeholder image from fixture rather than from server 2024-04-19 09:49:19 +03:00
mikiher
9b332f0e66 make $constants, $strings, and utility functions avaiable to Cypress mounted componenets 2024-04-17 23:25:44 +03:00
mikiher
f597798839 Add Cypress config and support files 2024-04-15 23:57:21 +03:00