This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests
Martin Brennan cecdef83a8
FIX: Fall back to clipboard.writeText if ClipboardItem not supported (#16419)
Firefox does not support window.ClipboardItem yet (it is behind
a flag (dom.events.asyncClipboard.clipboardItem) as at version 87.)
so we need to fall back to the normal non-async clipboard copy, that
works in every browser except Safari.

This commit also tests the clipboardCopyAsync function by stubbing out
the clipboard on the window.navigator.

This fixes an issue in the discourse-chat plugin, where the
"Quote in Topic" button errored in Firefox.
2022-04-11 13:00:45 +10:00
..
acceptance SECURITY: Category group permissions leaked to normal users. 2022-04-08 13:46:20 +08:00
fixtures FEATURE: Allow multiple required tag groups for a category (#16381) 2022-04-06 14:08:06 +01:00
helpers DEV: Add pretender endpoint for category visible groups. 2022-04-11 10:34:18 +08:00
integration DEV: Fix "overridden" typos (#16399) 2022-04-06 23:17:20 +02:00
unit FIX: Fall back to clipboard.writeText if ClipboardItem not supported (#16419) 2022-04-11 13:00:45 +10:00
active-plugins.js.erb DEV: Support for running theme test with Ember CLI (third attempt) 2022-01-13 16:02:07 -05:00
core-tests.js DEV: Support for running theme test with Ember CLI (third attempt) 2022-01-13 16:02:07 -05:00
index.html FIX: When using Ember CLI, plugin admin code was not being loaded in tests (#16239) 2022-03-21 15:46:41 -04:00
plugin-tests.js.erb DEV: Support for running theme test with Ember CLI (third attempt) 2022-01-13 16:02:07 -05:00
setup-tests.js DEV: Refactor Site creation in tests (#15707) 2022-02-03 10:02:47 +00:00
test_starter.js DEV: Bump eslint-config-discourse (#14868) 2021-11-10 09:31:41 +10:00
test-boot-ember-cli.js DEV: Support qunit_disable_auto_start in ember CLI (#16358) 2022-04-02 21:15:50 +02:00
test-helpers-rails.js DEV: Support for running theme test with Ember CLI (third attempt) 2022-01-13 16:02:07 -05:00
test-support-rails.js DEV: Support for running theme test with Ember CLI (third attempt) 2022-01-13 16:02:07 -05:00
theme_qunit_ember_jquery.js FIX: Theme tests should work in production (#13333) 2021-06-08 22:03:59 +03:00