docbrown/app/assets/javascripts
Aayush Gupta 4280434aed
Make podcast-playback to be controllable via keyboard (#14139)
* Make podcast-playback to be controllable via keyboard

* Add improved state handling for the play/pause controller

* Fix business logic + Improve HTML semantics

* Remove manual tabIndex addition (not required now)

* Refactor redudant event-listener

* Keep aria-pressed label in sync in all cases

* Code refactor

* Add seed data to create a test podcast

* Add a static file and use that as example podcast episode (#1)

Rather than relying at test time on external media, and requiring the
podcast episode import flow to run during e2e testing, just insert a
canned episode that shows.

Confirmed in cypress this does show after visit('/pod') in the
togglePodcastPlayback.spec.js

* Add cypress test

* Move cypress tests

* Update cypress/integration/seededFlows/podcastFlows/togglePodcastPlayback.spec.js

Co-authored-by: Suzanne Aitchison <suzanne@forem.com>

* fix button name in test

Co-authored-by: Daniel Uber <djuber@gmail.com>
Co-authored-by: rhymes <github@rhymes.dev>
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
2021-08-20 12:45:53 +02:00
..
initializers Make podcast-playback to be controllable via keyboard (#14139) 2021-08-20 12:45:53 +02:00
lib Provide skip links: Tweak skip link style, refactor main area ID (#12694) 2021-02-17 10:15:31 +00:00
utilities Add author profile preview cards to feed (#14340) 2021-08-13 10:55:43 +07:00
.eslintrc.js Use a single listener for all follow buttons on a page (#14246) 2021-07-27 10:45:50 +01:00
base.js.erb Reinstate skip link on search page (#14463) 2021-08-11 11:50:49 +01:00
initializePage.js Use a single listener for all follow buttons on a page (#14246) 2021-07-27 10:45:50 +01:00
jquery_s3_upload.js Ran prettier on *.js, *.jsx and *.md files. (#11586) 2020-11-23 20:45:50 -05:00