summaryrefslogtreecommitdiff
path: root/smoke/docs-main/public/make-scrollable-code-focusable.js
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2022-02-28 21:38:17 -0800
committerGravatar GitHub <noreply@github.com> 2022-02-28 21:38:17 -0800
commit918f1ea4f72850c650282c134de94548ef2fcad5 (patch)
treecac396f9e7be425b59cdbfea7725b3915acf3406 /smoke/docs-main/public/make-scrollable-code-focusable.js
parenta217c6608df684ddf3672bbef73bd7efc9a6a191 (diff)
downloadastro-918f1ea4f72850c650282c134de94548ef2fcad5.tar.gz
astro-918f1ea4f72850c650282c134de94548ef2fcad5.tar.zst
astro-918f1ea4f72850c650282c134de94548ef2fcad5.zip
Make smoke tests more deterministic (#2618)
* sync first remote smoke tests * update smoke test scripts
Diffstat (limited to 'smoke/docs-main/public/make-scrollable-code-focusable.js')
-rw-r--r--smoke/docs-main/public/make-scrollable-code-focusable.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/smoke/docs-main/public/make-scrollable-code-focusable.js b/smoke/docs-main/public/make-scrollable-code-focusable.js
new file mode 100644
index 000000000..f2b7030f7
--- /dev/null
+++ b/smoke/docs-main/public/make-scrollable-code-focusable.js
@@ -0,0 +1,3 @@
+Array.from(document.getElementsByTagName('pre')).forEach((element) => {
+ element.setAttribute('tabindex', '0');
+});