From 6a719668efbc73743603803e71b39e0539147d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Oddsson?= Date: Fri, 13 Mar 2026 09:55:14 +0000 Subject: [PATCH 1/2] Filter ACT test results in generator to only check the rule under test For "passed" tests, filter scan results to only include violations from the scanner rule that maps to the ACT rule being tested. This prevents unrelated rules (e.g. document-title, aria-dialog-name) from causing false failures on tests focused on other rules. The fix is in generate-act-tests.js so it survives regeneration, rather than patching individual generated test files. Also adds rm cleanup of stale test files before regeneration, and excludes tests that can't work in this environment (Shadow DOM script execution, cross-rule interference without URL mapping). Fixes #334 Fixes #336 Co-Authored-By: Claude Opus 4.6 --- generate-act-tests.js | 21 +++++++++-- ...3b8678881fba03e7465f82b5550abc5093f7968.ts | 24 ------------- ...f35ed62ed14afb6d9e8b886e95e846f0cfa0d2a.ts | 24 ------------- ...2bfac8a98cc212aa7bf9151bf40f665a7f51696.ts | 24 ------------- ...8cc6a87fcc81fcc2248f0cd74ca48396b7aa432.ts | 28 --------------- ...0d83620b0bcbcf0e7380177384f48596823e7a9.ts | 24 ------------- ...96963cfd35d4873c010469c47c84d4358fba035.ts | 24 ------------- ...006d1541dc71b93e6ec4d101a386e0043d1a521.ts | 24 ------------- ...0348c1e6fced2df1ebd93caef4d383f6c7a0461.ts | 24 ------------- ...a9cdf6d0c336f0abf7cd2992c4a2a62c6c719fd.ts | 26 -------------- ...70470a37db713810be85275e5d0c698f85ab320.ts | 24 ------------- ...8f40f5af06646ef15283302903f6c78f7d7a505.ts | 24 ------------- ...eb06eece7b158ab66a25bfa2c47a196309f0d93.ts | 29 --------------- ...ef9a3ad8b2f2a6beeaf44ef7dafce08e743ea67.ts | 24 ------------- ...ad882dffaf6edd16058119e1c513b4746b0ac27.ts | 24 ------------- ...14d991fa5328e41f8a806bfbac84d748b41f7ed.ts | 19 ---------- ...eeff9c95f15e90ca5abc972079112d1ea5c3d51.ts | 19 ---------- ...fd6fda771cf8810eef5166464622d6979e0406e.ts | 19 ---------- ...b3d2e2147cfc618b744f2dabfaf2e66327055d7.ts | 24 ------------- ...f9f315b5041f3726662bf269613c43678af99d4.ts | 19 ---------- ...20fb18c9bb20fb1a940a0806a87c6f6e468bb5b.ts | 19 ---------- ...c5eeb535181f3709e13b548a04b9d0054532cdd.ts | 30 ---------------- ...fa1e0438bb515332ec6b4d943044c336ca77fab.ts | 21 ----------- ...798f2c4c821019fe59bbcc671d46b4e9d2c9d50.ts | 27 -------------- ...1a402c2eb82ccb8614aa62918cff81b8306ddf2.ts | 29 --------------- ...bfb3a2d5783ade108f4f9fee10597a2343f8665.ts | 28 --------------- ...bdea8c670e441afe5299bed4ea02b304becaaf8.ts | 29 --------------- ...9f6f775efc8d7cdc38782087ccc6abaa88babb6.ts | 24 ------------- ...86f868f7a1f41507a2bc214eb94087a8e906b4c.ts | 30 ---------------- ...d33680e81b31e47fc46d3b6543cc050e369525b.ts | 21 ----------- ...c65ce86f38bce79d12b797567bb8d85875aab88.ts | 21 ----------- ...1cc2a71e88c5fec2bc41175d63339404747bf00.ts | 21 ----------- ...da0918b07e5736d55b4b405a22860d889931c15.ts | 28 --------------- ...8a35afd2998bb6f9c670cb74fa7b550e80897b4.ts | 26 -------------- ...b39aa37000933c7b9a766970b829ce5fada62d6.ts | 25 ------------- ...a1942d2d52f50c5df458877a0ee18dc5a22b0c3.ts | 29 --------------- ...0462b7b8c490305d1de7e3136c0bcfaef31789f.ts | 26 -------------- ...07f05aed287f7407d5f95e7d39bfc1435ec0812.ts | 26 -------------- ...bb1bdb3e95aa9b895fc4f32b0c2cfc917a07a72.ts | 25 ------------- ...adf2a087a82575bcdf9f9158e698a576e9627c8.ts | 26 -------------- ...4342a3834e0003f3057807937d617e432e83d33.ts | 24 ------------- ...bbd55ba8e418361f99f717418206a37d57fd978.ts | 24 ------------- ...c71cdabc04f9038e21d872e20a516cb429a7619.ts | 24 ------------- ...d97d6b2f3fa16760bf66026691281a8179f3260.ts | 25 ------------- ...c29bcb24ac0f448846a2ffdad4c9693d5aef8c6.ts | 24 ------------- ...413c09531b239e27bcf79cb57302b429ef59fe6.ts | 24 ------------- ...ab9b2d06e5a44e2056ccbdbb7096f55ab42859c.ts | 24 ------------- ...401164ef77abe96fd6502d35ed04952a057a8fe.ts | 24 ------------- ...449cc0526959d274a89345e9b479846577aac5c.ts | 24 ------------- ...c80908133ee63545a20ea45952de6f7d6cf845b.ts | 24 ------------- ...4f5126e4a87269f583d2c2963ed31b4e852f041.ts | 24 ------------- ...240276511703c9bfa881ac80f7c0af5c92c97cc.ts | 24 ------------- ...d1719662b77567eec3b9c37510f76a38f769deb.ts | 24 ------------- ...e4eedbbef33766005c6f92c3dede1b1b40a2dac.ts | 24 ------------- ...c0718872b1d915b49c48fe135b9fc251bcff561.ts | 26 -------------- ...91d77e96c069380252b674faaf08eecab375503.ts | 24 ------------- ...ec2c81ca23a9647c00ccd1fb5e74d06841ed6fa.ts | 24 ------------- ...61dcd3214e87532fc2f9c8db7fdce05de9e07f0.ts | 4 ++- ...87a72860814f903d561dc3e7765f507ca041624.ts | 4 ++- ...1ac49fcb186ee2a233355494fc5e774212ca3d7.ts | 6 ++-- ...314945d4bbec5b34f9a3c2d90da7cb9f8e7ce5a.ts | 4 ++- ...30f50dcf51acb0b97b948000d7c163e50858312.ts | 6 ++-- ...b0aaf07c6e9fb6ea3495dd9cecf55d47b9539b8.ts | 31 ---------------- ...27c265ba570f0131dddef3687981b66f6dd156f.ts | 33 ----------------- ...ee31c22ec3fa0bccf46e3f44e9a5d8e752bc776.ts | 24 ------------- ...980fd3a6f30b20069618708b2c8fa79d444e0a4.ts | 32 ----------------- ...496ff9d59d514f97c8739004b2b941dd7ca97bf.ts | 24 ------------- ...959137934bd17ea8c95b86120b1c7331e4facc2.ts | 24 ------------- ...f586827cecc5b1b4d9f60dcaba1e77f4a90c54a.ts | 24 ------------- ...8b0160bfc6c056fa0d02affbc02e49dce284467.ts | 24 ------------- ...078701ed7982e75316b51adb59b6d05c1583aa5.ts | 24 ------------- ...66a5eb6a54c5b83a882a0d78731d808480a1b3e.ts | 24 ------------- ...3f5e9df90e96c1af508ad8b4e2cda78c0dae7c4.ts | 24 ------------- ...8ff0942922e48b686413cf12cd0fd3510a8b29f.ts | 24 ------------- ...78f507edd1866cc5b1a7fae8b530da964b470fb.ts | 24 ------------- ...e27fcdd85fbf37a953727cdc454f3e504041a31.ts | 24 ------------- ...b10f30be20aebf661f0b81b2c0cfc698b1453eb.ts | 24 ------------- ...1bd70b33e2d53e3b9bc105a5cad59a76b4c54d5.ts | 24 ------------- ...970b77c1137e5fd4627f70663da4d1fcda36b23.ts | 24 ------------- ...411dce372604b1c0b14fe48aae6190882e8110c.ts | 24 ------------- ...30d7f761a6a43b896b2f1d0ded311da6a7aebf1.ts | 24 ------------- ...512c24c9a793fa8a30958e203090f955a3fc262.ts | 24 ------------- ...ed049a75aaa549c0ba477c5048f7f2bb34cb160.ts | 24 ------------- ...5d0948a2cb309923e9a7cc5dd99a8ffc975088b.ts | 24 ------------- ...d79434f382323a20bc7dda8cd01e8d084a3c3bf.ts | 24 ------------- ...12d17179ce05f1d10bccf46b7e294864bfa308d.ts | 24 ------------- ...5ce632e85a0243abf196c59242b2af699e5c0d4.ts | 24 ------------- ...f282d49777b1261a3907ca35c6549b2210b18df.ts | 24 ------------- ...1de203102fe8bf98e7f95aa9959374c1f6a3d3b.ts | 24 ------------- ...2214e0008b9b2e7bd98d991d27c09bb33d4c92c.ts | 24 ------------- ...3ac216a885112ab9882b119a62532c7f6b6c528.ts | 32 ----------------- ...a55c66417d240eec2078684cd95c37cd35660ec.ts | 24 ------------- ...64a0231dbcc95b21aafe3b554b9fdcbc9855301.ts | 24 ------------- ...9f07d1795d34f948d3dd42051963623109a0bae.ts | 24 ------------- ...abc191efa65e6613739042a0ae21937cda02428.ts | 24 ------------- ...fcd5df49b39506dac34a310f4b8bc0df71716d3.ts | 27 -------------- ...847ca922fa3564341094245c34ef3120167bc0b.ts | 27 -------------- ...ad324fd8d3f5113f72ac40f978a85e1777d43d1.ts | 36 ------------------- ...4396aaa5928a68aba7320ea3690ca6c302fdcab.ts | 30 ---------------- ...1724dd3a91aff66b84807df1b9dbbaeaf272189.ts | 28 --------------- ...a6035f4f09b339ac53bc547fc727a51ab05a3c6.ts | 28 --------------- ...ec8deb0b18514b612774d3af39b5ad41f2a792b.ts | 24 ------------- ...c5b0625e21b3503d1cd4c4daf53b15ae41c562d.ts | 24 ------------- ...004e7b1a47b2e5a5c77b3eef36b50d495c9e4a1.ts | 24 ------------- ...fe70212e0020d7fa552b7c6c035a466c900c4b9.ts | 24 ------------- ...bfdf45a98f7d2f0e93a700f7ce0fe5f723bf0f7.ts | 24 ------------- ...4cc71b0434f71f4ea0069c409f73e0207dfb403.ts | 24 ------------- ...c9a749a026c47209c34677ca6ac0dc093d24888.ts | 24 ------------- ...9adf41033a5b71a0730b6df8c1c7e01088e9022.ts | 24 ------------- ...f4b76894bd9aaad29242e72fe93fd9798bf85af.ts | 24 ------------- ...fe1796f06e1082a8ddae54a471dcca66c783c4e.ts | 24 ------------- ...8e8943b849762eb7f18654c7f9e479ad33b2840.ts | 27 -------------- ...0b40365b4e59aa103ff04c369f31658fa6e2790.ts | 27 -------------- ...12146d84331c7214ed6919391ad955098eff516.ts | 27 -------------- ...735b02e59dd802a5a9e9a7ea1934a106d2963eb.ts | 27 -------------- ...1240b31761f65c92a8f6d08ed7105ee822d0ebc.ts | 27 -------------- ...ccc6adf094723693593ca3c6308f81945930dae.ts | 27 -------------- ...7e4980eb42d0b138684ac1e28318a197d86ccfc.ts | 27 -------------- ...94a59f8c3b17d722781af36da3556ff4b418776.ts | 27 -------------- ...9d79a4e4e4a994a8eb7cf2eaf59c99d2251cac5.ts | 6 ++-- ...6857820788db21498e95a5cbba65d59a9a2b892.ts | 2 +- ...d4d5b214459c8a0779600ab39a5668003271c62.ts | 2 +- ...6c7657d21888cd05edd297d44a8fd554b21c908.ts | 2 +- ...2e7f3e00ffce0a2a1078f860452814e6445445d.ts | 2 +- ...5ca868de7980f6944142ecdb849f47ad2cdfb5c.ts | 6 ++-- ...48be8e9b638b9c27714cb3118a335376ed65f0f.ts | 6 ++-- ...4a98a3ff6a69e073f768bb198671ea6a1c4568a.ts | 6 ++-- ...a414a1455a58e4505d7c550486d628f0fd80fdd.ts | 6 ++-- ...8aad77e3ff2fa8d0272fac5362566ff79afad7f.ts | 2 +- ...0672e81d17313f7ef156f3bc6e43c68143a5f45.ts | 2 +- ...cc787569c06640f3748ae90e2b57fb51c1e22d8.ts | 2 +- ...f34996d204260b1b0b50fc8f77b10ab640ba303.ts | 2 +- ...493c4b542c8e059e8423c77945ce5895428ab88.ts | 4 ++- ...d16da98a4089b29ff76c611036c65e1c504c7bc.ts | 4 ++- ...33d9136ef3e040b7653b287651c65e4302fe417.ts | 2 +- ...b3b94c0e39bed9d432f379efa77ba9f54c81c6d.ts | 2 +- ...b6b235a0fd8bf9b2023a5d0e446f7ed46e1a40f.ts | 2 +- ...816eee206375f88c562d618852cb0383b89fe6e.ts | 2 +- ...54326e5ba700d4616d924807f427002816e9fc3.ts | 2 +- ...7b115a032fc4178230306e2d0f4e334b2cfe8a9.ts | 2 +- ...8cc66de4d60e34c7ee0d09fd6ab965ac23d9b4f.ts | 4 ++- ...da7438401aba500eb03f678b05b9821a758336a.ts | 4 ++- ...9a3949e2a7521698472a966c782434c4d9ce6fb.ts | 4 ++- ...c73351605ff3dc9766ad28a1a267a96976ad77b.ts | 2 +- ...13a75a2a0b539a39063eb946505e3d3dd5aeef1.ts | 4 ++- ...36abfa44924a4d4088bada05f439ae392dfd662.ts | 4 ++- ...6a239059266b317de6a6e73dbf443c5ca8a6f5f.ts | 4 ++- ...761116217a5875490cd7a2adf0219bdb1bff5cf.ts | 4 ++- ...ee6c55162904cfb77c7f65614c4e6ae2baacea2.ts | 6 ++-- ...277de30edb9e550d8f9d5a72e1e3adde961d01d.ts | 4 ++- ...5b522e069394fa6666bef3746705b70b4628819.ts | 2 +- ...729027165e293dc32ea88b7264e4c62c306fdd5.ts | 2 +- ...a18c94e7b8bd8d0a54c14acbc56958918fcad2b.ts | 24 ------------- ...090c2468b8947fdab34a7537029658f022e983b.ts | 24 ------------- ...bbf921f8ee99ea733ef46b1e28c833ae5212abf.ts | 24 ------------- ...7e0fce611f126d32f7e10200fdffd4cb5b5ceec.ts | 24 ------------- ...34e1e1a46cfa6d3fe3bcc69ac45ffb6c5d55148.ts | 6 ++-- ...583a11fb07127fb3315fa19f3baaf876aa42aa4.ts | 6 ++-- ...9b66676ed867c75368e31c1e06b28255df8089e.ts | 2 +- ...0e733e0c505a556fc53e6265eb5b432823570f7.ts | 2 +- ...ba0306adadd581e4331b9415c2ef9f8ecccc0f2.ts | 2 +- ...1f81c57325a77a89481f036e4e2116399fb6714.ts | 2 +- ...8de8b1ca470302aebb53065c32eddf08da008b5.ts | 2 +- ...95698c08fc5d404b649d0c367bedc3e83462d43.ts | 2 +- ...15cdae554a817caa4792101fde1adf14563227d.ts | 2 +- ...746b387d13dc61266d1fcde19b91b89441b1be7.ts | 6 ++-- ...1765660b28464b5a73e502ef30b7370ba294ff5.ts | 2 +- ...ecfce83c949d20c816a0e43cbc4c26a3468754b.ts | 6 ++-- ...8ba52b5fa5e123def1f778821219aaec20ca0fe.ts | 2 +- ...8c5a59532ae0624edd875aea31ef39086873b7a.ts | 6 ++-- ...04258203c8bf167307b6ed79f765115d16a6357.ts | 25 ------------- ...183d2e337eec311b7c2e06c2f9cec759913dba9.ts | 25 ------------- ...66e62d83ede9df9fdad86cf7040600916bb065a.ts | 25 ------------- ...aa8f45d7e358655c39708e2656a2c2d97e7dfa6.ts | 24 ------------- ...246616cd947040f64dc183b66e1f6c30b2d7fbb.ts | 25 ------------- ...52732aff853ed413ed7b5ff4a6202d11fd0c1a5.ts | 27 -------------- ...726b79b0534d80f567c3e5fd7174962d411be95.ts | 30 ---------------- ...33cad4e69415e2a2970832d2d60e2b854bca1b4.ts | 27 -------------- ...59cf1abfabcb96ab4592966bb4a78e788b41017.ts | 27 -------------- ...0c554cfdddfdc0fe15923066b329868dd9e70c8.ts | 24 ------------- ...d816c3ef10b8982f18411e1623887d2444d7311.ts | 28 --------------- ...e9eeebf0a0b1a514df6202443345d999d2bd575.ts | 35 ------------------ ...8c41b8461997477cb7b6a9d163ba8a387ad56b8.ts | 28 --------------- ...3a0c030f9172c3d8d862d01138e75ec7aaf4f4e.ts | 29 --------------- ...95a5b0d06d892bc50351cfd2db426b31cfcc97f.ts | 26 -------------- ...05155744a79e6ff72f1b691b8bae15338e8146b.ts | 28 --------------- ...261108b8bb62e118a47a52d0a157b4265a6e143.ts | 30 ---------------- ...3a40579bcb3cab4f12a31639bc9dd0ca5c14d87.ts | 28 --------------- ...a66c7b8d8ef78d350b1c995e0ad232008f6564f.ts | 27 -------------- ...d314574052bf16676abb0e9a67e48dd70116c2e.ts | 30 ---------------- ...f4423575333947073fa3729f502ff0a0c6c2fbf.ts | 19 ---------- 191 files changed, 136 insertions(+), 3555 deletions(-) delete mode 100644 tests/act/tests/23a2a8/13b8678881fba03e7465f82b5550abc5093f7968.ts delete mode 100644 tests/act/tests/23a2a8/2f35ed62ed14afb6d9e8b886e95e846f0cfa0d2a.ts delete mode 100644 tests/act/tests/23a2a8/32bfac8a98cc212aa7bf9151bf40f665a7f51696.ts delete mode 100644 tests/act/tests/23a2a8/38cc6a87fcc81fcc2248f0cd74ca48396b7aa432.ts delete mode 100644 tests/act/tests/23a2a8/40d83620b0bcbcf0e7380177384f48596823e7a9.ts delete mode 100644 tests/act/tests/23a2a8/496963cfd35d4873c010469c47c84d4358fba035.ts delete mode 100644 tests/act/tests/23a2a8/8006d1541dc71b93e6ec4d101a386e0043d1a521.ts delete mode 100644 tests/act/tests/23a2a8/b0348c1e6fced2df1ebd93caef4d383f6c7a0461.ts delete mode 100644 tests/act/tests/23a2a8/ba9cdf6d0c336f0abf7cd2992c4a2a62c6c719fd.ts delete mode 100644 tests/act/tests/23a2a8/d70470a37db713810be85275e5d0c698f85ab320.ts delete mode 100644 tests/act/tests/23a2a8/e8f40f5af06646ef15283302903f6c78f7d7a505.ts delete mode 100644 tests/act/tests/23a2a8/feb06eece7b158ab66a25bfa2c47a196309f0d93.ts delete mode 100644 tests/act/tests/23a2a8/fef9a3ad8b2f2a6beeaf44ef7dafce08e743ea67.ts delete mode 100644 tests/act/tests/2779a5/0ad882dffaf6edd16058119e1c513b4746b0ac27.ts delete mode 100644 tests/act/tests/2779a5/314d991fa5328e41f8a806bfbac84d748b41f7ed.ts delete mode 100644 tests/act/tests/2779a5/4eeff9c95f15e90ca5abc972079112d1ea5c3d51.ts delete mode 100644 tests/act/tests/2779a5/5fd6fda771cf8810eef5166464622d6979e0406e.ts delete mode 100644 tests/act/tests/2779a5/6b3d2e2147cfc618b744f2dabfaf2e66327055d7.ts delete mode 100644 tests/act/tests/2779a5/7f9f315b5041f3726662bf269613c43678af99d4.ts delete mode 100644 tests/act/tests/2779a5/820fb18c9bb20fb1a940a0806a87c6f6e468bb5b.ts delete mode 100644 tests/act/tests/2779a5/9c5eeb535181f3709e13b548a04b9d0054532cdd.ts delete mode 100644 tests/act/tests/2779a5/efa1e0438bb515332ec6b4d943044c336ca77fab.ts delete mode 100644 tests/act/tests/307n5z/3798f2c4c821019fe59bbcc671d46b4e9d2c9d50.ts delete mode 100644 tests/act/tests/307n5z/61a402c2eb82ccb8614aa62918cff81b8306ddf2.ts delete mode 100644 tests/act/tests/307n5z/7bfb3a2d5783ade108f4f9fee10597a2343f8665.ts delete mode 100644 tests/act/tests/307n5z/9bdea8c670e441afe5299bed4ea02b304becaaf8.ts delete mode 100644 tests/act/tests/307n5z/b9f6f775efc8d7cdc38782087ccc6abaa88babb6.ts delete mode 100644 tests/act/tests/4b1c6c/486f868f7a1f41507a2bc214eb94087a8e906b4c.ts delete mode 100644 tests/act/tests/4b1c6c/4d33680e81b31e47fc46d3b6543cc050e369525b.ts delete mode 100644 tests/act/tests/4b1c6c/ac65ce86f38bce79d12b797567bb8d85875aab88.ts delete mode 100644 tests/act/tests/4b1c6c/c1cc2a71e88c5fec2bc41175d63339404747bf00.ts delete mode 100644 tests/act/tests/4e8ab6/3da0918b07e5736d55b4b405a22860d889931c15.ts delete mode 100644 tests/act/tests/4e8ab6/58a35afd2998bb6f9c670cb74fa7b550e80897b4.ts delete mode 100644 tests/act/tests/4e8ab6/5b39aa37000933c7b9a766970b829ce5fada62d6.ts delete mode 100644 tests/act/tests/4e8ab6/7a1942d2d52f50c5df458877a0ee18dc5a22b0c3.ts delete mode 100644 tests/act/tests/4e8ab6/80462b7b8c490305d1de7e3136c0bcfaef31789f.ts delete mode 100644 tests/act/tests/4e8ab6/907f05aed287f7407d5f95e7d39bfc1435ec0812.ts delete mode 100644 tests/act/tests/4e8ab6/9bb1bdb3e95aa9b895fc4f32b0c2cfc917a07a72.ts delete mode 100644 tests/act/tests/4e8ab6/eadf2a087a82575bcdf9f9158e698a576e9627c8.ts delete mode 100644 tests/act/tests/59796f/04342a3834e0003f3057807937d617e432e83d33.ts delete mode 100644 tests/act/tests/59796f/0bbd55ba8e418361f99f717418206a37d57fd978.ts delete mode 100644 tests/act/tests/59796f/5c71cdabc04f9038e21d872e20a516cb429a7619.ts delete mode 100644 tests/act/tests/59796f/7d97d6b2f3fa16760bf66026691281a8179f3260.ts delete mode 100644 tests/act/tests/59796f/8c29bcb24ac0f448846a2ffdad4c9693d5aef8c6.ts delete mode 100644 tests/act/tests/59796f/b413c09531b239e27bcf79cb57302b429ef59fe6.ts delete mode 100644 tests/act/tests/59796f/cab9b2d06e5a44e2056ccbdbb7096f55ab42859c.ts delete mode 100644 tests/act/tests/5c01ea/0401164ef77abe96fd6502d35ed04952a057a8fe.ts delete mode 100644 tests/act/tests/5c01ea/1449cc0526959d274a89345e9b479846577aac5c.ts delete mode 100644 tests/act/tests/5c01ea/2c80908133ee63545a20ea45952de6f7d6cf845b.ts delete mode 100644 tests/act/tests/5c01ea/34f5126e4a87269f583d2c2963ed31b4e852f041.ts delete mode 100644 tests/act/tests/5c01ea/4240276511703c9bfa881ac80f7c0af5c92c97cc.ts delete mode 100644 tests/act/tests/5c01ea/5d1719662b77567eec3b9c37510f76a38f769deb.ts delete mode 100644 tests/act/tests/5c01ea/5e4eedbbef33766005c6f92c3dede1b1b40a2dac.ts delete mode 100644 tests/act/tests/5c01ea/6c0718872b1d915b49c48fe135b9fc251bcff561.ts delete mode 100644 tests/act/tests/5c01ea/f91d77e96c069380252b674faaf08eecab375503.ts delete mode 100644 tests/act/tests/5c01ea/fec2c81ca23a9647c00ccd1fb5e74d06841ed6fa.ts delete mode 100644 tests/act/tests/674b10/4b0aaf07c6e9fb6ea3495dd9cecf55d47b9539b8.ts delete mode 100644 tests/act/tests/674b10/527c265ba570f0131dddef3687981b66f6dd156f.ts delete mode 100644 tests/act/tests/674b10/8ee31c22ec3fa0bccf46e3f44e9a5d8e752bc776.ts delete mode 100644 tests/act/tests/674b10/9980fd3a6f30b20069618708b2c8fa79d444e0a4.ts delete mode 100644 tests/act/tests/6a7281/0496ff9d59d514f97c8739004b2b941dd7ca97bf.ts delete mode 100644 tests/act/tests/6a7281/0959137934bd17ea8c95b86120b1c7331e4facc2.ts delete mode 100644 tests/act/tests/6a7281/1f586827cecc5b1b4d9f60dcaba1e77f4a90c54a.ts delete mode 100644 tests/act/tests/6a7281/38b0160bfc6c056fa0d02affbc02e49dce284467.ts delete mode 100644 tests/act/tests/6a7281/4078701ed7982e75316b51adb59b6d05c1583aa5.ts delete mode 100644 tests/act/tests/6a7281/766a5eb6a54c5b83a882a0d78731d808480a1b3e.ts delete mode 100644 tests/act/tests/6a7281/83f5e9df90e96c1af508ad8b4e2cda78c0dae7c4.ts delete mode 100644 tests/act/tests/6a7281/88ff0942922e48b686413cf12cd0fd3510a8b29f.ts delete mode 100644 tests/act/tests/6a7281/b78f507edd1866cc5b1a7fae8b530da964b470fb.ts delete mode 100644 tests/act/tests/6a7281/ce27fcdd85fbf37a953727cdc454f3e504041a31.ts delete mode 100644 tests/act/tests/6a7281/db10f30be20aebf661f0b81b2c0cfc698b1453eb.ts delete mode 100644 tests/act/tests/6a7281/e1bd70b33e2d53e3b9bc105a5cad59a76b4c54d5.ts delete mode 100644 tests/act/tests/6a7281/e970b77c1137e5fd4627f70663da4d1fcda36b23.ts delete mode 100644 tests/act/tests/73f2c2/0411dce372604b1c0b14fe48aae6190882e8110c.ts delete mode 100644 tests/act/tests/73f2c2/130d7f761a6a43b896b2f1d0ded311da6a7aebf1.ts delete mode 100644 tests/act/tests/73f2c2/2512c24c9a793fa8a30958e203090f955a3fc262.ts delete mode 100644 tests/act/tests/73f2c2/2ed049a75aaa549c0ba477c5048f7f2bb34cb160.ts delete mode 100644 tests/act/tests/73f2c2/35d0948a2cb309923e9a7cc5dd99a8ffc975088b.ts delete mode 100644 tests/act/tests/73f2c2/3d79434f382323a20bc7dda8cd01e8d084a3c3bf.ts delete mode 100644 tests/act/tests/73f2c2/512d17179ce05f1d10bccf46b7e294864bfa308d.ts delete mode 100644 tests/act/tests/73f2c2/55ce632e85a0243abf196c59242b2af699e5c0d4.ts delete mode 100644 tests/act/tests/73f2c2/7f282d49777b1261a3907ca35c6549b2210b18df.ts delete mode 100644 tests/act/tests/73f2c2/81de203102fe8bf98e7f95aa9959374c1f6a3d3b.ts delete mode 100644 tests/act/tests/73f2c2/92214e0008b9b2e7bd98d991d27c09bb33d4c92c.ts delete mode 100644 tests/act/tests/73f2c2/93ac216a885112ab9882b119a62532c7f6b6c528.ts delete mode 100644 tests/act/tests/73f2c2/9a55c66417d240eec2078684cd95c37cd35660ec.ts delete mode 100644 tests/act/tests/73f2c2/d64a0231dbcc95b21aafe3b554b9fdcbc9855301.ts delete mode 100644 tests/act/tests/73f2c2/e9f07d1795d34f948d3dd42051963623109a0bae.ts delete mode 100644 tests/act/tests/73f2c2/eabc191efa65e6613739042a0ae21937cda02428.ts delete mode 100644 tests/act/tests/73f2c2/efcd5df49b39506dac34a310f4b8bc0df71716d3.ts delete mode 100644 tests/act/tests/7d6734/2847ca922fa3564341094245c34ef3120167bc0b.ts delete mode 100644 tests/act/tests/7d6734/8ad324fd8d3f5113f72ac40f978a85e1777d43d1.ts delete mode 100644 tests/act/tests/7d6734/94396aaa5928a68aba7320ea3690ca6c302fdcab.ts delete mode 100644 tests/act/tests/7d6734/e1724dd3a91aff66b84807df1b9dbbaeaf272189.ts delete mode 100644 tests/act/tests/97a4e1/1a6035f4f09b339ac53bc547fc727a51ab05a3c6.ts delete mode 100644 tests/act/tests/97a4e1/1ec8deb0b18514b612774d3af39b5ad41f2a792b.ts delete mode 100644 tests/act/tests/97a4e1/2c5b0625e21b3503d1cd4c4daf53b15ae41c562d.ts delete mode 100644 tests/act/tests/97a4e1/3004e7b1a47b2e5a5c77b3eef36b50d495c9e4a1.ts delete mode 100644 tests/act/tests/97a4e1/3fe70212e0020d7fa552b7c6c035a466c900c4b9.ts delete mode 100644 tests/act/tests/97a4e1/5bfdf45a98f7d2f0e93a700f7ce0fe5f723bf0f7.ts delete mode 100644 tests/act/tests/97a4e1/a4cc71b0434f71f4ea0069c409f73e0207dfb403.ts delete mode 100644 tests/act/tests/97a4e1/ac9a749a026c47209c34677ca6ac0dc093d24888.ts delete mode 100644 tests/act/tests/97a4e1/d9adf41033a5b71a0730b6df8c1c7e01088e9022.ts delete mode 100644 tests/act/tests/97a4e1/ff4b76894bd9aaad29242e72fe93fd9798bf85af.ts delete mode 100644 tests/act/tests/97a4e1/ffe1796f06e1082a8ddae54a471dcca66c783c4e.ts delete mode 100644 tests/act/tests/b4f0c3/08e8943b849762eb7f18654c7f9e479ad33b2840.ts delete mode 100644 tests/act/tests/b4f0c3/30b40365b4e59aa103ff04c369f31658fa6e2790.ts delete mode 100644 tests/act/tests/b4f0c3/312146d84331c7214ed6919391ad955098eff516.ts delete mode 100644 tests/act/tests/b4f0c3/8735b02e59dd802a5a9e9a7ea1934a106d2963eb.ts delete mode 100644 tests/act/tests/b4f0c3/a1240b31761f65c92a8f6d08ed7105ee822d0ebc.ts delete mode 100644 tests/act/tests/b4f0c3/accc6adf094723693593ca3c6308f81945930dae.ts delete mode 100644 tests/act/tests/b4f0c3/c7e4980eb42d0b138684ac1e28318a197d86ccfc.ts delete mode 100644 tests/act/tests/b4f0c3/c94a59f8c3b17d722781af36da3556ff4b418776.ts delete mode 100644 tests/act/tests/cae760/0a18c94e7b8bd8d0a54c14acbc56958918fcad2b.ts delete mode 100644 tests/act/tests/cae760/5090c2468b8947fdab34a7537029658f022e983b.ts delete mode 100644 tests/act/tests/cae760/bbbf921f8ee99ea733ef46b1e28c833ae5212abf.ts delete mode 100644 tests/act/tests/cae760/c7e0fce611f126d32f7e10200fdffd4cb5b5ceec.ts delete mode 100644 tests/act/tests/e086e5/004258203c8bf167307b6ed79f765115d16a6357.ts delete mode 100644 tests/act/tests/e086e5/2183d2e337eec311b7c2e06c2f9cec759913dba9.ts delete mode 100644 tests/act/tests/e086e5/366e62d83ede9df9fdad86cf7040600916bb065a.ts delete mode 100644 tests/act/tests/e086e5/3aa8f45d7e358655c39708e2656a2c2d97e7dfa6.ts delete mode 100644 tests/act/tests/e086e5/4246616cd947040f64dc183b66e1f6c30b2d7fbb.ts delete mode 100644 tests/act/tests/e086e5/552732aff853ed413ed7b5ff4a6202d11fd0c1a5.ts delete mode 100644 tests/act/tests/e086e5/6726b79b0534d80f567c3e5fd7174962d411be95.ts delete mode 100644 tests/act/tests/e086e5/933cad4e69415e2a2970832d2d60e2b854bca1b4.ts delete mode 100644 tests/act/tests/e086e5/a59cf1abfabcb96ab4592966bb4a78e788b41017.ts delete mode 100644 tests/act/tests/e086e5/b0c554cfdddfdc0fe15923066b329868dd9e70c8.ts delete mode 100644 tests/act/tests/e086e5/bd816c3ef10b8982f18411e1623887d2444d7311.ts delete mode 100644 tests/act/tests/in6db8/ee9eeebf0a0b1a514df6202443345d999d2bd575.ts delete mode 100644 tests/act/tests/m6b1q3/78c41b8461997477cb7b6a9d163ba8a387ad56b8.ts delete mode 100644 tests/act/tests/m6b1q3/83a0c030f9172c3d8d862d01138e75ec7aaf4f4e.ts delete mode 100644 tests/act/tests/m6b1q3/895a5b0d06d892bc50351cfd2db426b31cfcc97f.ts delete mode 100644 tests/act/tests/m6b1q3/c05155744a79e6ff72f1b691b8bae15338e8146b.ts delete mode 100644 tests/act/tests/m6b1q3/c261108b8bb62e118a47a52d0a157b4265a6e143.ts delete mode 100644 tests/act/tests/m6b1q3/f3a40579bcb3cab4f12a31639bc9dd0ca5c14d87.ts delete mode 100644 tests/act/tests/qt1vmo/2a66c7b8d8ef78d350b1c995e0ad232008f6564f.ts delete mode 100644 tests/act/tests/qt1vmo/5d314574052bf16676abb0e9a67e48dd70116c2e.ts delete mode 100644 tests/act/tests/qt1vmo/af4423575333947073fa3729f502ff0a0c6c2fbf.ts diff --git a/generate-act-tests.js b/generate-act-tests.js index 1bf3c724..1e7440f8 100644 --- a/generate-act-tests.js +++ b/generate-act-tests.js @@ -1,4 +1,8 @@ -import { mkdir, writeFile, readFile } from "node:fs/promises"; +import { mkdir, writeFile, readFile, rm } from "node:fs/promises"; + +// Clean up previously generated test files to remove stale tests +// when rules are added to the ignore list or test cases are removed. +await rm("./tests/act/tests/", { recursive: true, force: true }); const { testcases } = JSON.parse(await readFile("./testcases.json", "utf8")); const rulesData = JSON.parse(await readFile("./rules.json", "utf8")); @@ -167,6 +171,14 @@ const ignoredExamples = [ "https://act-rules.github.io/testcases/qt1vmo/530266c6116fcfad12561e9e1a407fa0a0da3435.html", "https://act-rules.github.io/testcases/qt1vmo/a4b5c0fab27d0ca16b93e8c374c96ad13172e94e.html", "https://act-rules.github.io/testcases/qt1vmo/0ef4f516db9ed70cb25f39c99637272808b8e60f.html", + + // [qt1vmo] image-alt: cross-rule interference (document-title fires on fixtures missing ) + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/qt1vmo/af4423575333947073fa3729f502ff0a0c6c2fbf.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/qt1vmo/5d314574052bf16676abb0e9a67e48dd70116c2e.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/qt1vmo/2a66c7b8d8ef78d350b1c995e0ad232008f6564f.html", + + // [in6db8] Shadow DOM with script execution + nested template literal breaks TS compilation + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/in6db8/ee9eeebf0a0b1a514df6202443345d999d2bd575.html", ]; for (const rule of applicableRules) { @@ -207,7 +219,12 @@ for (const rule of applicableRules) { let assertion = undefined; if (expected === "passed") { - assertion = "expect(results).to.be.empty;"; + if (expectedUrls.length > 0) { + const urlsArray = JSON.stringify(expectedUrls); + assertion = `const expectedUrls = ${urlsArray};\n const relevant = results.filter(r => expectedUrls.includes(r.url));\n expect(relevant).to.be.empty;`; + } else { + assertion = "expect(results).to.be.empty;"; + } } else if (expected === "failed") { if (expectedUrls.length > 0) { const urlsArray = JSON.stringify(expectedUrls); diff --git a/tests/act/tests/23a2a8/13b8678881fba03e7465f82b5550abc5093f7968.ts b/tests/act/tests/23a2a8/13b8678881fba03e7465f82b5550abc5093f7968.ts deleted file mode 100644 index 570bdb9a..00000000 --- a/tests/act/tests/23a2a8/13b8678881fba03e7465f82b5550abc5093f7968.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[23a2a8]Image has non-empty accessible name", function () { - it("Passed Example 7 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/23a2a8/13b8678881fba03e7465f82b5550abc5093f7968.html)", async () => { - const document = parser.parseFromString(`<!DOCTYPE html> -<html lang="en"> -<head> - <title>Passed Example 7 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/23a2a8/2f35ed62ed14afb6d9e8b886e95e846f0cfa0d2a.ts b/tests/act/tests/23a2a8/2f35ed62ed14afb6d9e8b886e95e846f0cfa0d2a.ts deleted file mode 100644 index 7cd90d53..00000000 --- a/tests/act/tests/23a2a8/2f35ed62ed14afb6d9e8b886e95e846f0cfa0d2a.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[23a2a8]Image has non-empty accessible name", function () { - it("Passed Example 5 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/23a2a8/2f35ed62ed14afb6d9e8b886e95e846f0cfa0d2a.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 5 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/23a2a8/32bfac8a98cc212aa7bf9151bf40f665a7f51696.ts b/tests/act/tests/23a2a8/32bfac8a98cc212aa7bf9151bf40f665a7f51696.ts deleted file mode 100644 index c0976b14..00000000 --- a/tests/act/tests/23a2a8/32bfac8a98cc212aa7bf9151bf40f665a7f51696.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[23a2a8]Image has non-empty accessible name", function () { - it("Passed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/23a2a8/32bfac8a98cc212aa7bf9151bf40f665a7f51696.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 1 - - - W3C logo - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/23a2a8/38cc6a87fcc81fcc2248f0cd74ca48396b7aa432.ts b/tests/act/tests/23a2a8/38cc6a87fcc81fcc2248f0cd74ca48396b7aa432.ts deleted file mode 100644 index 67b741a8..00000000 --- a/tests/act/tests/23a2a8/38cc6a87fcc81fcc2248f0cd74ca48396b7aa432.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[23a2a8]Image has non-empty accessible name", function () { - it("Passed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/23a2a8/38cc6a87fcc81fcc2248f0cd74ca48396b7aa432.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 2 - - -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/23a2a8/40d83620b0bcbcf0e7380177384f48596823e7a9.ts b/tests/act/tests/23a2a8/40d83620b0bcbcf0e7380177384f48596823e7a9.ts deleted file mode 100644 index f4017c9d..00000000 --- a/tests/act/tests/23a2a8/40d83620b0bcbcf0e7380177384f48596823e7a9.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[23a2a8]Image has non-empty accessible name", function () { - it("Passed Example 4 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/23a2a8/40d83620b0bcbcf0e7380177384f48596823e7a9.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 4 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/23a2a8/496963cfd35d4873c010469c47c84d4358fba035.ts b/tests/act/tests/23a2a8/496963cfd35d4873c010469c47c84d4358fba035.ts deleted file mode 100644 index dc35c321..00000000 --- a/tests/act/tests/23a2a8/496963cfd35d4873c010469c47c84d4358fba035.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[23a2a8]Image has non-empty accessible name", function () { - it("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/23a2a8/496963cfd35d4873c010469c47c84d4358fba035.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 2 - - -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/23a2a8/8006d1541dc71b93e6ec4d101a386e0043d1a521.ts b/tests/act/tests/23a2a8/8006d1541dc71b93e6ec4d101a386e0043d1a521.ts deleted file mode 100644 index eecb7eaa..00000000 --- a/tests/act/tests/23a2a8/8006d1541dc71b93e6ec4d101a386e0043d1a521.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[23a2a8]Image has non-empty accessible name", function () { - it("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/23a2a8/8006d1541dc71b93e6ec4d101a386e0043d1a521.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 1 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/23a2a8/b0348c1e6fced2df1ebd93caef4d383f6c7a0461.ts b/tests/act/tests/23a2a8/b0348c1e6fced2df1ebd93caef4d383f6c7a0461.ts deleted file mode 100644 index 2b50207f..00000000 --- a/tests/act/tests/23a2a8/b0348c1e6fced2df1ebd93caef4d383f6c7a0461.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[23a2a8]Image has non-empty accessible name", function () { - it("Failed Example 4 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/23a2a8/b0348c1e6fced2df1ebd93caef4d383f6c7a0461.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 4 - - -  - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/23a2a8/ba9cdf6d0c336f0abf7cd2992c4a2a62c6c719fd.ts b/tests/act/tests/23a2a8/ba9cdf6d0c336f0abf7cd2992c4a2a62c6c719fd.ts deleted file mode 100644 index f34d467b..00000000 --- a/tests/act/tests/23a2a8/ba9cdf6d0c336f0abf7cd2992c4a2a62c6c719fd.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[23a2a8]Image has non-empty accessible name", function () { - it("Passed Example 8 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/23a2a8/ba9cdf6d0c336f0abf7cd2992c4a2a62c6c719fd.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 8 - - -
- -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/23a2a8/d70470a37db713810be85275e5d0c698f85ab320.ts b/tests/act/tests/23a2a8/d70470a37db713810be85275e5d0c698f85ab320.ts deleted file mode 100644 index 5ad8844c..00000000 --- a/tests/act/tests/23a2a8/d70470a37db713810be85275e5d0c698f85ab320.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[23a2a8]Image has non-empty accessible name", function () { - it("Failed Example 5 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/23a2a8/d70470a37db713810be85275e5d0c698f85ab320.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 5 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/23a2a8/e8f40f5af06646ef15283302903f6c78f7d7a505.ts b/tests/act/tests/23a2a8/e8f40f5af06646ef15283302903f6c78f7d7a505.ts deleted file mode 100644 index 394e6e7f..00000000 --- a/tests/act/tests/23a2a8/e8f40f5af06646ef15283302903f6c78f7d7a505.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[23a2a8]Image has non-empty accessible name", function () { - it("Passed Example 6 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/23a2a8/e8f40f5af06646ef15283302903f6c78f7d7a505.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 6 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/23a2a8/feb06eece7b158ab66a25bfa2c47a196309f0d93.ts b/tests/act/tests/23a2a8/feb06eece7b158ab66a25bfa2c47a196309f0d93.ts deleted file mode 100644 index 85bbbb40..00000000 --- a/tests/act/tests/23a2a8/feb06eece7b158ab66a25bfa2c47a196309f0d93.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[23a2a8]Image has non-empty accessible name", function () { - it("Passed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/23a2a8/feb06eece7b158ab66a25bfa2c47a196309f0d93.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 3 - - -
W3C logo
-
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/23a2a8/fef9a3ad8b2f2a6beeaf44ef7dafce08e743ea67.ts b/tests/act/tests/23a2a8/fef9a3ad8b2f2a6beeaf44ef7dafce08e743ea67.ts deleted file mode 100644 index 81a62e98..00000000 --- a/tests/act/tests/23a2a8/fef9a3ad8b2f2a6beeaf44ef7dafce08e743ea67.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[23a2a8]Image has non-empty accessible name", function () { - it("Failed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/23a2a8/fef9a3ad8b2f2a6beeaf44ef7dafce08e743ea67.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 3 - - -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/2779a5/0ad882dffaf6edd16058119e1c513b4746b0ac27.ts b/tests/act/tests/2779a5/0ad882dffaf6edd16058119e1c513b4746b0ac27.ts deleted file mode 100644 index d2706ecd..00000000 --- a/tests/act/tests/2779a5/0ad882dffaf6edd16058119e1c513b4746b0ac27.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[2779a5]HTML page has non-empty title", function () { - it("Passed Example 5 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/2779a5/0ad882dffaf6edd16058119e1c513b4746b0ac27.html)", async () => { - const document = parser.parseFromString(` - - - Title of the page. - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/2779a5/314d991fa5328e41f8a806bfbac84d748b41f7ed.ts b/tests/act/tests/2779a5/314d991fa5328e41f8a806bfbac84d748b41f7ed.ts deleted file mode 100644 index d77bfe2a..00000000 --- a/tests/act/tests/2779a5/314d991fa5328e41f8a806bfbac84d748b41f7ed.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[2779a5]HTML page has non-empty title", function () { - it("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/2779a5/314d991fa5328e41f8a806bfbac84d748b41f7ed.html)", async () => { - const document = parser.parseFromString(` - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/2779a5/4eeff9c95f15e90ca5abc972079112d1ea5c3d51.ts b/tests/act/tests/2779a5/4eeff9c95f15e90ca5abc972079112d1ea5c3d51.ts deleted file mode 100644 index cb1f4d4f..00000000 --- a/tests/act/tests/2779a5/4eeff9c95f15e90ca5abc972079112d1ea5c3d51.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[2779a5]HTML page has non-empty title", function () { - it("Failed Example 5 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/2779a5/4eeff9c95f15e90ca5abc972079112d1ea5c3d51.html)", async () => { - const document = parser.parseFromString(` - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/2779a5/5fd6fda771cf8810eef5166464622d6979e0406e.ts b/tests/act/tests/2779a5/5fd6fda771cf8810eef5166464622d6979e0406e.ts deleted file mode 100644 index a092d273..00000000 --- a/tests/act/tests/2779a5/5fd6fda771cf8810eef5166464622d6979e0406e.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[2779a5]HTML page has non-empty title", function () { - it("Failed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/2779a5/5fd6fda771cf8810eef5166464622d6979e0406e.html)", async () => { - const document = parser.parseFromString(` - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/2779a5/6b3d2e2147cfc618b744f2dabfaf2e66327055d7.ts b/tests/act/tests/2779a5/6b3d2e2147cfc618b744f2dabfaf2e66327055d7.ts deleted file mode 100644 index 0c68c4cb..00000000 --- a/tests/act/tests/2779a5/6b3d2e2147cfc618b744f2dabfaf2e66327055d7.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[2779a5]HTML page has non-empty title", function () { - it("Passed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/2779a5/6b3d2e2147cfc618b744f2dabfaf2e66327055d7.html)", async () => { - const document = parser.parseFromString(` - - - Title of the page. - - - Title of the page. - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/2779a5/7f9f315b5041f3726662bf269613c43678af99d4.ts b/tests/act/tests/2779a5/7f9f315b5041f3726662bf269613c43678af99d4.ts deleted file mode 100644 index d472eb42..00000000 --- a/tests/act/tests/2779a5/7f9f315b5041f3726662bf269613c43678af99d4.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[2779a5]HTML page has non-empty title", function () { - it("Passed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/2779a5/7f9f315b5041f3726662bf269613c43678af99d4.html)", async () => { - const document = parser.parseFromString(` - - This page has a title -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/2779a5/820fb18c9bb20fb1a940a0806a87c6f6e468bb5b.ts b/tests/act/tests/2779a5/820fb18c9bb20fb1a940a0806a87c6f6e468bb5b.ts deleted file mode 100644 index 8354736f..00000000 --- a/tests/act/tests/2779a5/820fb18c9bb20fb1a940a0806a87c6f6e468bb5b.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[2779a5]HTML page has non-empty title", function () { - it("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/2779a5/820fb18c9bb20fb1a940a0806a87c6f6e468bb5b.html)", async () => { - const document = parser.parseFromString(` - -

this page has no title

-`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/2779a5/9c5eeb535181f3709e13b548a04b9d0054532cdd.ts b/tests/act/tests/2779a5/9c5eeb535181f3709e13b548a04b9d0054532cdd.ts deleted file mode 100644 index 87b489e7..00000000 --- a/tests/act/tests/2779a5/9c5eeb535181f3709e13b548a04b9d0054532cdd.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[2779a5]HTML page has non-empty title", function () { - it("Failed Example 6 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/2779a5/9c5eeb535181f3709e13b548a04b9d0054532cdd.html)", async () => { - const document = parser.parseFromString(` - - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/2779a5/efa1e0438bb515332ec6b4d943044c336ca77fab.ts b/tests/act/tests/2779a5/efa1e0438bb515332ec6b4d943044c336ca77fab.ts deleted file mode 100644 index 54d1289d..00000000 --- a/tests/act/tests/2779a5/efa1e0438bb515332ec6b4d943044c336ca77fab.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[2779a5]HTML page has non-empty title", function () { - it("Passed Example 4 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/2779a5/efa1e0438bb515332ec6b4d943044c336ca77fab.html)", async () => { - const document = parser.parseFromString(` - - - Title of the page. - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/307n5z/3798f2c4c821019fe59bbcc671d46b4e9d2c9d50.ts b/tests/act/tests/307n5z/3798f2c4c821019fe59bbcc671d46b4e9d2c9d50.ts deleted file mode 100644 index 133b1aa8..00000000 --- a/tests/act/tests/307n5z/3798f2c4c821019fe59bbcc671d46b4e9d2c9d50.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[307n5z]Element with presentational children has no focusable content", function () { - it("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/307n5z/3798f2c4c821019fe59bbcc671d46b4e9d2c9d50.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 1 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/307n5z/61a402c2eb82ccb8614aa62918cff81b8306ddf2.ts b/tests/act/tests/307n5z/61a402c2eb82ccb8614aa62918cff81b8306ddf2.ts deleted file mode 100644 index ad3993dc..00000000 --- a/tests/act/tests/307n5z/61a402c2eb82ccb8614aa62918cff81b8306ddf2.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[307n5z]Element with presentational children has no focusable content", function () { - it("Failed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/307n5z/61a402c2eb82ccb8614aa62918cff81b8306ddf2.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 3 - - -
    -
  • - - Sort by Last Modified -
  • -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/307n5z/7bfb3a2d5783ade108f4f9fee10597a2343f8665.ts b/tests/act/tests/307n5z/7bfb3a2d5783ade108f4f9fee10597a2343f8665.ts deleted file mode 100644 index 7a26546b..00000000 --- a/tests/act/tests/307n5z/7bfb3a2d5783ade108f4f9fee10597a2343f8665.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[307n5z]Element with presentational children has no focusable content", function () { - it("Failed Example 4 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/307n5z/7bfb3a2d5783ade108f4f9fee10597a2343f8665.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 4 - - -
    -
  • - Tab 1 -
  • -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/307n5z/9bdea8c670e441afe5299bed4ea02b304becaaf8.ts b/tests/act/tests/307n5z/9bdea8c670e441afe5299bed4ea02b304becaaf8.ts deleted file mode 100644 index b1a51bd0..00000000 --- a/tests/act/tests/307n5z/9bdea8c670e441afe5299bed4ea02b304becaaf8.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[307n5z]Element with presentational children has no focusable content", function () { - it("Passed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/307n5z/9bdea8c670e441afe5299bed4ea02b304becaaf8.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 2 - - -

- - I agree to the - - terms of service -

- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/307n5z/b9f6f775efc8d7cdc38782087ccc6abaa88babb6.ts b/tests/act/tests/307n5z/b9f6f775efc8d7cdc38782087ccc6abaa88babb6.ts deleted file mode 100644 index b0c11653..00000000 --- a/tests/act/tests/307n5z/b9f6f775efc8d7cdc38782087ccc6abaa88babb6.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[307n5z]Element with presentational children has no focusable content", function () { - it("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/307n5z/b9f6f775efc8d7cdc38782087ccc6abaa88babb6.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 2 - - -

I agree to the terms of service

- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/4b1c6c/486f868f7a1f41507a2bc214eb94087a8e906b4c.ts b/tests/act/tests/4b1c6c/486f868f7a1f41507a2bc214eb94087a8e906b4c.ts deleted file mode 100644 index ac78fc5b..00000000 --- a/tests/act/tests/4b1c6c/486f868f7a1f41507a2bc214eb94087a8e906b4c.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[4b1c6c]Iframe elements with identical accessible names have equivalent purpose", function () { - it("Failed Example 4 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/4b1c6c/486f868f7a1f41507a2bc214eb94087a8e906b4c.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 4 - - - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/4b1c6c/4d33680e81b31e47fc46d3b6543cc050e369525b.ts b/tests/act/tests/4b1c6c/4d33680e81b31e47fc46d3b6543cc050e369525b.ts deleted file mode 100644 index 1342fdf9..00000000 --- a/tests/act/tests/4b1c6c/4d33680e81b31e47fc46d3b6543cc050e369525b.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[4b1c6c]Iframe elements with identical accessible names have equivalent purpose", function () { - it("Failed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/4b1c6c/4d33680e81b31e47fc46d3b6543cc050e369525b.html)", async () => { - const document = parser.parseFromString(` - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/4b1c6c/ac65ce86f38bce79d12b797567bb8d85875aab88.ts b/tests/act/tests/4b1c6c/ac65ce86f38bce79d12b797567bb8d85875aab88.ts deleted file mode 100644 index f4e4b56c..00000000 --- a/tests/act/tests/4b1c6c/ac65ce86f38bce79d12b797567bb8d85875aab88.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[4b1c6c]Iframe elements with identical accessible names have equivalent purpose", function () { - it("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/4b1c6c/ac65ce86f38bce79d12b797567bb8d85875aab88.html)", async () => { - const document = parser.parseFromString(` - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/4b1c6c/c1cc2a71e88c5fec2bc41175d63339404747bf00.ts b/tests/act/tests/4b1c6c/c1cc2a71e88c5fec2bc41175d63339404747bf00.ts deleted file mode 100644 index e7875214..00000000 --- a/tests/act/tests/4b1c6c/c1cc2a71e88c5fec2bc41175d63339404747bf00.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[4b1c6c]Iframe elements with identical accessible names have equivalent purpose", function () { - it("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/4b1c6c/c1cc2a71e88c5fec2bc41175d63339404747bf00.html)", async () => { - const document = parser.parseFromString(` - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/4e8ab6/3da0918b07e5736d55b4b405a22860d889931c15.ts b/tests/act/tests/4e8ab6/3da0918b07e5736d55b4b405a22860d889931c15.ts deleted file mode 100644 index 98266ec7..00000000 --- a/tests/act/tests/4e8ab6/3da0918b07e5736d55b4b405a22860d889931c15.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[4e8ab6]Element with role attribute has required states and properties", function () { - it("Passed Example 4 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/4e8ab6/3da0918b07e5736d55b4b405a22860d889931c15.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 4 - - -
Tags
-
    -
  • Zebra
  • -
  • Zoom
  • -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/4e8ab6/58a35afd2998bb6f9c670cb74fa7b550e80897b4.ts b/tests/act/tests/4e8ab6/58a35afd2998bb6f9c670cb74fa7b550e80897b4.ts deleted file mode 100644 index bf0821a4..00000000 --- a/tests/act/tests/4e8ab6/58a35afd2998bb6f9c670cb74fa7b550e80897b4.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[4e8ab6]Element with role attribute has required states and properties", function () { - it("Passed Example 5 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/4e8ab6/58a35afd2998bb6f9c670cb74fa7b550e80897b4.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 5 - - -

My first HTML

-
-

My last HTML

- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/4e8ab6/5b39aa37000933c7b9a766970b829ce5fada62d6.ts b/tests/act/tests/4e8ab6/5b39aa37000933c7b9a766970b829ce5fada62d6.ts deleted file mode 100644 index 4e1931f0..00000000 --- a/tests/act/tests/4e8ab6/5b39aa37000933c7b9a766970b829ce5fada62d6.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[4e8ab6]Element with role attribute has required states and properties", function () { - it("Passed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/4e8ab6/5b39aa37000933c7b9a766970b829ce5fada62d6.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 2 - - -
-
Check me
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/4e8ab6/7a1942d2d52f50c5df458877a0ee18dc5a22b0c3.ts b/tests/act/tests/4e8ab6/7a1942d2d52f50c5df458877a0ee18dc5a22b0c3.ts deleted file mode 100644 index 8a502178..00000000 --- a/tests/act/tests/4e8ab6/7a1942d2d52f50c5df458877a0ee18dc5a22b0c3.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[4e8ab6]Element with role attribute has required states and properties", function () { - it("Failed Example 5 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/4e8ab6/7a1942d2d52f50c5df458877a0ee18dc5a22b0c3.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 5 - - - - -
    -
  • Zebra
  • -
  • Zoom
  • -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/4e8ab6/80462b7b8c490305d1de7e3136c0bcfaef31789f.ts b/tests/act/tests/4e8ab6/80462b7b8c490305d1de7e3136c0bcfaef31789f.ts deleted file mode 100644 index e8919432..00000000 --- a/tests/act/tests/4e8ab6/80462b7b8c490305d1de7e3136c0bcfaef31789f.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[4e8ab6]Element with role attribute has required states and properties", function () { - it("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/4e8ab6/80462b7b8c490305d1de7e3136c0bcfaef31789f.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 1 - - -
- My First Heading -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/4e8ab6/907f05aed287f7407d5f95e7d39bfc1435ec0812.ts b/tests/act/tests/4e8ab6/907f05aed287f7407d5f95e7d39bfc1435ec0812.ts deleted file mode 100644 index a0d1376f..00000000 --- a/tests/act/tests/4e8ab6/907f05aed287f7407d5f95e7d39bfc1435ec0812.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[4e8ab6]Element with role attribute has required states and properties", function () { - it("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/4e8ab6/907f05aed287f7407d5f95e7d39bfc1435ec0812.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 2 - - -
- Toggle me -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/4e8ab6/9bb1bdb3e95aa9b895fc4f32b0c2cfc917a07a72.ts b/tests/act/tests/4e8ab6/9bb1bdb3e95aa9b895fc4f32b0c2cfc917a07a72.ts deleted file mode 100644 index 58e7340c..00000000 --- a/tests/act/tests/4e8ab6/9bb1bdb3e95aa9b895fc4f32b0c2cfc917a07a72.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[4e8ab6]Element with role attribute has required states and properties", function () { - it("Failed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/4e8ab6/9bb1bdb3e95aa9b895fc4f32b0c2cfc917a07a72.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 3 - - -
-
Check me
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/4e8ab6/eadf2a087a82575bcdf9f9158e698a576e9627c8.ts b/tests/act/tests/4e8ab6/eadf2a087a82575bcdf9f9158e698a576e9627c8.ts deleted file mode 100644 index 7cb1cf34..00000000 --- a/tests/act/tests/4e8ab6/eadf2a087a82575bcdf9f9158e698a576e9627c8.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[4e8ab6]Element with role attribute has required states and properties", function () { - it("Passed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/4e8ab6/eadf2a087a82575bcdf9f9158e698a576e9627c8.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 1 - - -
- My First Heading -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/59796f/04342a3834e0003f3057807937d617e432e83d33.ts b/tests/act/tests/59796f/04342a3834e0003f3057807937d617e432e83d33.ts deleted file mode 100644 index b0adc59b..00000000 --- a/tests/act/tests/59796f/04342a3834e0003f3057807937d617e432e83d33.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[59796f]Image button has non-empty accessible name", function () { - it("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/59796f/04342a3834e0003f3057807937d617e432e83d33.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 1 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/59796f/0bbd55ba8e418361f99f717418206a37d57fd978.ts b/tests/act/tests/59796f/0bbd55ba8e418361f99f717418206a37d57fd978.ts deleted file mode 100644 index 7cba5cb8..00000000 --- a/tests/act/tests/59796f/0bbd55ba8e418361f99f717418206a37d57fd978.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[59796f]Image button has non-empty accessible name", function () { - it("Failed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/59796f/0bbd55ba8e418361f99f717418206a37d57fd978.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 3 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/59796f/5c71cdabc04f9038e21d872e20a516cb429a7619.ts b/tests/act/tests/59796f/5c71cdabc04f9038e21d872e20a516cb429a7619.ts deleted file mode 100644 index 218b7990..00000000 --- a/tests/act/tests/59796f/5c71cdabc04f9038e21d872e20a516cb429a7619.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[59796f]Image button has non-empty accessible name", function () { - it("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/59796f/5c71cdabc04f9038e21d872e20a516cb429a7619.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 2 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/59796f/7d97d6b2f3fa16760bf66026691281a8179f3260.ts b/tests/act/tests/59796f/7d97d6b2f3fa16760bf66026691281a8179f3260.ts deleted file mode 100644 index 1f0ddbf0..00000000 --- a/tests/act/tests/59796f/7d97d6b2f3fa16760bf66026691281a8179f3260.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[59796f]Image button has non-empty accessible name", function () { - it("Passed Example 4 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/59796f/7d97d6b2f3fa16760bf66026691281a8179f3260.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 4 - - - -
Search
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/59796f/8c29bcb24ac0f448846a2ffdad4c9693d5aef8c6.ts b/tests/act/tests/59796f/8c29bcb24ac0f448846a2ffdad4c9693d5aef8c6.ts deleted file mode 100644 index 04813f78..00000000 --- a/tests/act/tests/59796f/8c29bcb24ac0f448846a2ffdad4c9693d5aef8c6.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[59796f]Image button has non-empty accessible name", function () { - it("Passed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/59796f/8c29bcb24ac0f448846a2ffdad4c9693d5aef8c6.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 1 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/59796f/b413c09531b239e27bcf79cb57302b429ef59fe6.ts b/tests/act/tests/59796f/b413c09531b239e27bcf79cb57302b429ef59fe6.ts deleted file mode 100644 index f2d82856..00000000 --- a/tests/act/tests/59796f/b413c09531b239e27bcf79cb57302b429ef59fe6.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[59796f]Image button has non-empty accessible name", function () { - it("Passed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/59796f/b413c09531b239e27bcf79cb57302b429ef59fe6.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 2 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/59796f/cab9b2d06e5a44e2056ccbdbb7096f55ab42859c.ts b/tests/act/tests/59796f/cab9b2d06e5a44e2056ccbdbb7096f55ab42859c.ts deleted file mode 100644 index 0a6aa0de..00000000 --- a/tests/act/tests/59796f/cab9b2d06e5a44e2056ccbdbb7096f55ab42859c.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[59796f]Image button has non-empty accessible name", function () { - it("Passed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/59796f/cab9b2d06e5a44e2056ccbdbb7096f55ab42859c.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 3 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/5c01ea/0401164ef77abe96fd6502d35ed04952a057a8fe.ts b/tests/act/tests/5c01ea/0401164ef77abe96fd6502d35ed04952a057a8fe.ts deleted file mode 100644 index 71bd0dba..00000000 --- a/tests/act/tests/5c01ea/0401164ef77abe96fd6502d35ed04952a057a8fe.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[5c01ea]ARIA state or property is permitted", function () { - it("Passed Example 11 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/5c01ea/0401164ef77abe96fd6502d35ed04952a057a8fe.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 11 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/5c01ea/1449cc0526959d274a89345e9b479846577aac5c.ts b/tests/act/tests/5c01ea/1449cc0526959d274a89345e9b479846577aac5c.ts deleted file mode 100644 index 75f1c694..00000000 --- a/tests/act/tests/5c01ea/1449cc0526959d274a89345e9b479846577aac5c.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[5c01ea]ARIA state or property is permitted", function () { - it("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/5c01ea/1449cc0526959d274a89345e9b479846577aac5c.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 2 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/5c01ea/2c80908133ee63545a20ea45952de6f7d6cf845b.ts b/tests/act/tests/5c01ea/2c80908133ee63545a20ea45952de6f7d6cf845b.ts deleted file mode 100644 index 794994d0..00000000 --- a/tests/act/tests/5c01ea/2c80908133ee63545a20ea45952de6f7d6cf845b.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[5c01ea]ARIA state or property is permitted", function () { - it("Passed Example 13 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/5c01ea/2c80908133ee63545a20ea45952de6f7d6cf845b.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 13 - - -
My separator
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/5c01ea/34f5126e4a87269f583d2c2963ed31b4e852f041.ts b/tests/act/tests/5c01ea/34f5126e4a87269f583d2c2963ed31b4e852f041.ts deleted file mode 100644 index cc42ef69..00000000 --- a/tests/act/tests/5c01ea/34f5126e4a87269f583d2c2963ed31b4e852f041.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[5c01ea]ARIA state or property is permitted", function () { - it("Passed Example 7 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/5c01ea/34f5126e4a87269f583d2c2963ed31b4e852f041.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 7 - - -
My combobox
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/5c01ea/4240276511703c9bfa881ac80f7c0af5c92c97cc.ts b/tests/act/tests/5c01ea/4240276511703c9bfa881ac80f7c0af5c92c97cc.ts deleted file mode 100644 index 428749e2..00000000 --- a/tests/act/tests/5c01ea/4240276511703c9bfa881ac80f7c0af5c92c97cc.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[5c01ea]ARIA state or property is permitted", function () { - it("Passed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/5c01ea/4240276511703c9bfa881ac80f7c0af5c92c97cc.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 1 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/5c01ea/5d1719662b77567eec3b9c37510f76a38f769deb.ts b/tests/act/tests/5c01ea/5d1719662b77567eec3b9c37510f76a38f769deb.ts deleted file mode 100644 index 15d784e9..00000000 --- a/tests/act/tests/5c01ea/5d1719662b77567eec3b9c37510f76a38f769deb.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[5c01ea]ARIA state or property is permitted", function () { - it("Passed Example 8 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/5c01ea/5d1719662b77567eec3b9c37510f76a38f769deb.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 8 - - -
My combobox
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/5c01ea/5e4eedbbef33766005c6f92c3dede1b1b40a2dac.ts b/tests/act/tests/5c01ea/5e4eedbbef33766005c6f92c3dede1b1b40a2dac.ts deleted file mode 100644 index ed6de885..00000000 --- a/tests/act/tests/5c01ea/5e4eedbbef33766005c6f92c3dede1b1b40a2dac.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[5c01ea]ARIA state or property is permitted", function () { - it("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/5c01ea/5e4eedbbef33766005c6f92c3dede1b1b40a2dac.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 1 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/5c01ea/6c0718872b1d915b49c48fe135b9fc251bcff561.ts b/tests/act/tests/5c01ea/6c0718872b1d915b49c48fe135b9fc251bcff561.ts deleted file mode 100644 index b74d767c..00000000 --- a/tests/act/tests/5c01ea/6c0718872b1d915b49c48fe135b9fc251bcff561.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[5c01ea]ARIA state or property is permitted", function () { - it("Passed Example 9 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/5c01ea/6c0718872b1d915b49c48fe135b9fc251bcff561.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 9 - - - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/5c01ea/f91d77e96c069380252b674faaf08eecab375503.ts b/tests/act/tests/5c01ea/f91d77e96c069380252b674faaf08eecab375503.ts deleted file mode 100644 index a6dd3bdc..00000000 --- a/tests/act/tests/5c01ea/f91d77e96c069380252b674faaf08eecab375503.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[5c01ea]ARIA state or property is permitted", function () { - it("Passed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/5c01ea/f91d77e96c069380252b674faaf08eecab375503.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 2 - - -
My button
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/5c01ea/fec2c81ca23a9647c00ccd1fb5e74d06841ed6fa.ts b/tests/act/tests/5c01ea/fec2c81ca23a9647c00ccd1fb5e74d06841ed6fa.ts deleted file mode 100644 index 33be4f7d..00000000 --- a/tests/act/tests/5c01ea/fec2c81ca23a9647c00ccd1fb5e74d06841ed6fa.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[5c01ea]ARIA state or property is permitted", function () { - it("Passed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/5c01ea/fec2c81ca23a9647c00ccd1fb5e74d06841ed6fa.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 3 - - -
My busy div
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/5f99a7/261dcd3214e87532fc2f9c8db7fdce05de9e07f0.ts b/tests/act/tests/5f99a7/261dcd3214e87532fc2f9c8db7fdce05de9e07f0.ts index a592a295..1abf0569 100644 --- a/tests/act/tests/5f99a7/261dcd3214e87532fc2f9c8db7fdce05de9e07f0.ts +++ b/tests/act/tests/5f99a7/261dcd3214e87532fc2f9c8db7fdce05de9e07f0.ts @@ -19,6 +19,8 @@ describe("[5f99a7]ARIA attribute is defined in WAI-ARIA", function () { return { text, url }; }); - expect(results).to.be.empty; + const expectedUrls = ["https://dequeuniversity.com/rules/axe/4.11/aria-valid-attr"]; + const relevant = results.filter(r => expectedUrls.includes(r.url)); + expect(relevant).to.be.empty; }); }); diff --git a/tests/act/tests/5f99a7/287a72860814f903d561dc3e7765f507ca041624.ts b/tests/act/tests/5f99a7/287a72860814f903d561dc3e7765f507ca041624.ts index 4d1abb36..2538106a 100644 --- a/tests/act/tests/5f99a7/287a72860814f903d561dc3e7765f507ca041624.ts +++ b/tests/act/tests/5f99a7/287a72860814f903d561dc3e7765f507ca041624.ts @@ -19,6 +19,8 @@ describe("[5f99a7]ARIA attribute is defined in WAI-ARIA", function () { return { text, url }; }); - expect(results).to.be.empty; + const expectedUrls = ["https://dequeuniversity.com/rules/axe/4.11/aria-valid-attr"]; + const relevant = results.filter(r => expectedUrls.includes(r.url)); + expect(relevant).to.be.empty; }); }); diff --git a/tests/act/tests/5f99a7/31ac49fcb186ee2a233355494fc5e774212ca3d7.ts b/tests/act/tests/5f99a7/31ac49fcb186ee2a233355494fc5e774212ca3d7.ts index fedba08c..f560cf1b 100644 --- a/tests/act/tests/5f99a7/31ac49fcb186ee2a233355494fc5e774212ca3d7.ts +++ b/tests/act/tests/5f99a7/31ac49fcb186ee2a233355494fc5e774212ca3d7.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[5f99a7]ARIA attribute is defined in WAI-ARIA", function () { - it.skip("Passed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/5f99a7/31ac49fcb186ee2a233355494fc5e774212ca3d7.html)", async () => { + it("Passed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/5f99a7/31ac49fcb186ee2a233355494fc5e774212ca3d7.html)", async () => { const document = parser.parseFromString(` @@ -19,6 +19,8 @@ describe("[5f99a7]ARIA attribute is defined in WAI-ARIA", function () { return { text, url }; }); - expect(results).to.be.empty; + const expectedUrls = ["https://dequeuniversity.com/rules/axe/4.11/aria-valid-attr"]; + const relevant = results.filter(r => expectedUrls.includes(r.url)); + expect(relevant).to.be.empty; }); }); diff --git a/tests/act/tests/5f99a7/3314945d4bbec5b34f9a3c2d90da7cb9f8e7ce5a.ts b/tests/act/tests/5f99a7/3314945d4bbec5b34f9a3c2d90da7cb9f8e7ce5a.ts index 8afbbb9c..57cc8dcc 100644 --- a/tests/act/tests/5f99a7/3314945d4bbec5b34f9a3c2d90da7cb9f8e7ce5a.ts +++ b/tests/act/tests/5f99a7/3314945d4bbec5b34f9a3c2d90da7cb9f8e7ce5a.ts @@ -25,6 +25,8 @@ describe("[5f99a7]ARIA attribute is defined in WAI-ARIA", function () { return { text, url }; }); - expect(results).to.be.empty; + const expectedUrls = ["https://dequeuniversity.com/rules/axe/4.11/aria-valid-attr"]; + const relevant = results.filter(r => expectedUrls.includes(r.url)); + expect(relevant).to.be.empty; }); }); diff --git a/tests/act/tests/5f99a7/830f50dcf51acb0b97b948000d7c163e50858312.ts b/tests/act/tests/5f99a7/830f50dcf51acb0b97b948000d7c163e50858312.ts index 5cc14662..55a7c9a2 100644 --- a/tests/act/tests/5f99a7/830f50dcf51acb0b97b948000d7c163e50858312.ts +++ b/tests/act/tests/5f99a7/830f50dcf51acb0b97b948000d7c163e50858312.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[5f99a7]ARIA attribute is defined in WAI-ARIA", function () { - it.skip("Passed Example 4 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/5f99a7/830f50dcf51acb0b97b948000d7c163e50858312.html)", async () => { + it("Passed Example 4 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/5f99a7/830f50dcf51acb0b97b948000d7c163e50858312.html)", async () => { const document = parser.parseFromString(` @@ -20,6 +20,8 @@ describe("[5f99a7]ARIA attribute is defined in WAI-ARIA", function () { return { text, url }; }); - expect(results).to.be.empty; + const expectedUrls = ["https://dequeuniversity.com/rules/axe/4.11/aria-valid-attr"]; + const relevant = results.filter(r => expectedUrls.includes(r.url)); + expect(relevant).to.be.empty; }); }); diff --git a/tests/act/tests/674b10/4b0aaf07c6e9fb6ea3495dd9cecf55d47b9539b8.ts b/tests/act/tests/674b10/4b0aaf07c6e9fb6ea3495dd9cecf55d47b9539b8.ts deleted file mode 100644 index 39a7f657..00000000 --- a/tests/act/tests/674b10/4b0aaf07c6e9fb6ea3495dd9cecf55d47b9539b8.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[674b10]Role attribute has valid value", function () { - it("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/674b10/4b0aaf07c6e9fb6ea3495dd9cecf55d47b9539b8.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 1 - - - - I love ACT rules. - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/674b10/527c265ba570f0131dddef3687981b66f6dd156f.ts b/tests/act/tests/674b10/527c265ba570f0131dddef3687981b66f6dd156f.ts deleted file mode 100644 index f802106c..00000000 --- a/tests/act/tests/674b10/527c265ba570f0131dddef3687981b66f6dd156f.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[674b10]Role attribute has valid value", function () { - it("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/674b10/527c265ba570f0131dddef3687981b66f6dd156f.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 2 - - - - See [ACT rules]. - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/674b10/8ee31c22ec3fa0bccf46e3f44e9a5d8e752bc776.ts b/tests/act/tests/674b10/8ee31c22ec3fa0bccf46e3f44e9a5d8e752bc776.ts deleted file mode 100644 index b4f60f60..00000000 --- a/tests/act/tests/674b10/8ee31c22ec3fa0bccf46e3f44e9a5d8e752bc776.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[674b10]Role attribute has valid value", function () { - it("Passed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/674b10/8ee31c22ec3fa0bccf46e3f44e9a5d8e752bc776.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 3 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/674b10/9980fd3a6f30b20069618708b2c8fa79d444e0a4.ts b/tests/act/tests/674b10/9980fd3a6f30b20069618708b2c8fa79d444e0a4.ts deleted file mode 100644 index 36ef981a..00000000 --- a/tests/act/tests/674b10/9980fd3a6f30b20069618708b2c8fa79d444e0a4.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[674b10]Role attribute has valid value", function () { - it("Passed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/674b10/9980fd3a6f30b20069618708b2c8fa79d444e0a4.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 2 - - - - See [ACT rules]. - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/6a7281/0496ff9d59d514f97c8739004b2b941dd7ca97bf.ts b/tests/act/tests/6a7281/0496ff9d59d514f97c8739004b2b941dd7ca97bf.ts deleted file mode 100644 index 4bd9b0b1..00000000 --- a/tests/act/tests/6a7281/0496ff9d59d514f97c8739004b2b941dd7ca97bf.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[6a7281]ARIA state or property has valid value", function () { - it("Passed Example 9 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/6a7281/0496ff9d59d514f97c8739004b2b941dd7ca97bf.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 9 - - - Home - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/6a7281/0959137934bd17ea8c95b86120b1c7331e4facc2.ts b/tests/act/tests/6a7281/0959137934bd17ea8c95b86120b1c7331e4facc2.ts deleted file mode 100644 index 1b942922..00000000 --- a/tests/act/tests/6a7281/0959137934bd17ea8c95b86120b1c7331e4facc2.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[6a7281]ARIA state or property has valid value", function () { - it("Failed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/6a7281/0959137934bd17ea8c95b86120b1c7331e4facc2.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 3 - - -
An other button
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/6a7281/1f586827cecc5b1b4d9f60dcaba1e77f4a90c54a.ts b/tests/act/tests/6a7281/1f586827cecc5b1b4d9f60dcaba1e77f4a90c54a.ts deleted file mode 100644 index befd63c4..00000000 --- a/tests/act/tests/6a7281/1f586827cecc5b1b4d9f60dcaba1e77f4a90c54a.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[6a7281]ARIA state or property has valid value", function () { - it("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/6a7281/1f586827cecc5b1b4d9f60dcaba1e77f4a90c54a.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 2 - - -
A button
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/6a7281/38b0160bfc6c056fa0d02affbc02e49dce284467.ts b/tests/act/tests/6a7281/38b0160bfc6c056fa0d02affbc02e49dce284467.ts deleted file mode 100644 index 5b00a94c..00000000 --- a/tests/act/tests/6a7281/38b0160bfc6c056fa0d02affbc02e49dce284467.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[6a7281]ARIA state or property has valid value", function () { - it("Passed Example 4 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/6a7281/38b0160bfc6c056fa0d02affbc02e49dce284467.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 4 - - -
Partially pressed button
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/6a7281/4078701ed7982e75316b51adb59b6d05c1583aa5.ts b/tests/act/tests/6a7281/4078701ed7982e75316b51adb59b6d05c1583aa5.ts deleted file mode 100644 index c77f5e2e..00000000 --- a/tests/act/tests/6a7281/4078701ed7982e75316b51adb59b6d05c1583aa5.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[6a7281]ARIA state or property has valid value", function () { - it("Failed Example 5 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/6a7281/4078701ed7982e75316b51adb59b6d05c1583aa5.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 5 - - -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/6a7281/766a5eb6a54c5b83a882a0d78731d808480a1b3e.ts b/tests/act/tests/6a7281/766a5eb6a54c5b83a882a0d78731d808480a1b3e.ts deleted file mode 100644 index 546caf4e..00000000 --- a/tests/act/tests/6a7281/766a5eb6a54c5b83a882a0d78731d808480a1b3e.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[6a7281]ARIA state or property has valid value", function () { - it("Passed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/6a7281/766a5eb6a54c5b83a882a0d78731d808480a1b3e.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 3 - - -
A button
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/6a7281/83f5e9df90e96c1af508ad8b4e2cda78c0dae7c4.ts b/tests/act/tests/6a7281/83f5e9df90e96c1af508ad8b4e2cda78c0dae7c4.ts deleted file mode 100644 index ddb4c395..00000000 --- a/tests/act/tests/6a7281/83f5e9df90e96c1af508ad8b4e2cda78c0dae7c4.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[6a7281]ARIA state or property has valid value", function () { - it("Passed Example 8 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/6a7281/83f5e9df90e96c1af508ad8b4e2cda78c0dae7c4.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 8 - - -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/6a7281/88ff0942922e48b686413cf12cd0fd3510a8b29f.ts b/tests/act/tests/6a7281/88ff0942922e48b686413cf12cd0fd3510a8b29f.ts deleted file mode 100644 index 9bc7d4b2..00000000 --- a/tests/act/tests/6a7281/88ff0942922e48b686413cf12cd0fd3510a8b29f.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[6a7281]ARIA state or property has valid value", function () { - it("Failed Example 6 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/6a7281/88ff0942922e48b686413cf12cd0fd3510a8b29f.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 6 - - -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/6a7281/b78f507edd1866cc5b1a7fae8b530da964b470fb.ts b/tests/act/tests/6a7281/b78f507edd1866cc5b1a7fae8b530da964b470fb.ts deleted file mode 100644 index c69cb6db..00000000 --- a/tests/act/tests/6a7281/b78f507edd1866cc5b1a7fae8b530da964b470fb.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[6a7281]ARIA state or property has valid value", function () { - it("Failed Example 7 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/6a7281/b78f507edd1866cc5b1a7fae8b530da964b470fb.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 7 - - -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/6a7281/ce27fcdd85fbf37a953727cdc454f3e504041a31.ts b/tests/act/tests/6a7281/ce27fcdd85fbf37a953727cdc454f3e504041a31.ts deleted file mode 100644 index 49b9a7ad..00000000 --- a/tests/act/tests/6a7281/ce27fcdd85fbf37a953727cdc454f3e504041a31.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[6a7281]ARIA state or property has valid value", function () { - it("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/6a7281/ce27fcdd85fbf37a953727cdc454f3e504041a31.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 1 - - -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/6a7281/db10f30be20aebf661f0b81b2c0cfc698b1453eb.ts b/tests/act/tests/6a7281/db10f30be20aebf661f0b81b2c0cfc698b1453eb.ts deleted file mode 100644 index 7425f8f9..00000000 --- a/tests/act/tests/6a7281/db10f30be20aebf661f0b81b2c0cfc698b1453eb.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[6a7281]ARIA state or property has valid value", function () { - it("Passed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/6a7281/db10f30be20aebf661f0b81b2c0cfc698b1453eb.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 2 - - -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/6a7281/e1bd70b33e2d53e3b9bc105a5cad59a76b4c54d5.ts b/tests/act/tests/6a7281/e1bd70b33e2d53e3b9bc105a5cad59a76b4c54d5.ts deleted file mode 100644 index a240f950..00000000 --- a/tests/act/tests/6a7281/e1bd70b33e2d53e3b9bc105a5cad59a76b4c54d5.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[6a7281]ARIA state or property has valid value", function () { - it("Failed Example 4 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/6a7281/e1bd70b33e2d53e3b9bc105a5cad59a76b4c54d5.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 4 - - -
Fred
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/6a7281/e970b77c1137e5fd4627f70663da4d1fcda36b23.ts b/tests/act/tests/6a7281/e970b77c1137e5fd4627f70663da4d1fcda36b23.ts deleted file mode 100644 index d08af85e..00000000 --- a/tests/act/tests/6a7281/e970b77c1137e5fd4627f70663da4d1fcda36b23.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[6a7281]ARIA state or property has valid value", function () { - it("Passed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/6a7281/e970b77c1137e5fd4627f70663da4d1fcda36b23.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 1 - - -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/73f2c2/0411dce372604b1c0b14fe48aae6190882e8110c.ts b/tests/act/tests/73f2c2/0411dce372604b1c0b14fe48aae6190882e8110c.ts deleted file mode 100644 index f5181b39..00000000 --- a/tests/act/tests/73f2c2/0411dce372604b1c0b14fe48aae6190882e8110c.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[73f2c2]`autocomplete` attribute has valid value", function () { - it("Passed Example 6 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/73f2c2/0411dce372604b1c0b14fe48aae6190882e8110c.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 6 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/73f2c2/130d7f761a6a43b896b2f1d0ded311da6a7aebf1.ts b/tests/act/tests/73f2c2/130d7f761a6a43b896b2f1d0ded311da6a7aebf1.ts deleted file mode 100644 index a3c03726..00000000 --- a/tests/act/tests/73f2c2/130d7f761a6a43b896b2f1d0ded311da6a7aebf1.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[73f2c2]Autocomplete attribute has valid value", function () { - it("Failed Example 8 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/73f2c2/130d7f761a6a43b896b2f1d0ded311da6a7aebf1.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 8 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/73f2c2/2512c24c9a793fa8a30958e203090f955a3fc262.ts b/tests/act/tests/73f2c2/2512c24c9a793fa8a30958e203090f955a3fc262.ts deleted file mode 100644 index 26dc7f61..00000000 --- a/tests/act/tests/73f2c2/2512c24c9a793fa8a30958e203090f955a3fc262.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[73f2c2]Autocomplete attribute has valid value", function () { - it("Failed Example 6 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/73f2c2/2512c24c9a793fa8a30958e203090f955a3fc262.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 6 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/73f2c2/2ed049a75aaa549c0ba477c5048f7f2bb34cb160.ts b/tests/act/tests/73f2c2/2ed049a75aaa549c0ba477c5048f7f2bb34cb160.ts deleted file mode 100644 index 058dc05c..00000000 --- a/tests/act/tests/73f2c2/2ed049a75aaa549c0ba477c5048f7f2bb34cb160.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[73f2c2]`autocomplete` attribute has valid value", function () { - it("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/73f2c2/2ed049a75aaa549c0ba477c5048f7f2bb34cb160.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 1 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/73f2c2/35d0948a2cb309923e9a7cc5dd99a8ffc975088b.ts b/tests/act/tests/73f2c2/35d0948a2cb309923e9a7cc5dd99a8ffc975088b.ts deleted file mode 100644 index 15ceba3e..00000000 --- a/tests/act/tests/73f2c2/35d0948a2cb309923e9a7cc5dd99a8ffc975088b.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[73f2c2]`autocomplete` attribute has valid value", function () { - it("Passed Example 8 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/73f2c2/35d0948a2cb309923e9a7cc5dd99a8ffc975088b.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 8 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/73f2c2/3d79434f382323a20bc7dda8cd01e8d084a3c3bf.ts b/tests/act/tests/73f2c2/3d79434f382323a20bc7dda8cd01e8d084a3c3bf.ts deleted file mode 100644 index 23ee4c27..00000000 --- a/tests/act/tests/73f2c2/3d79434f382323a20bc7dda8cd01e8d084a3c3bf.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[73f2c2]Autocomplete attribute has valid value", function () { - it("Failed Example 9 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/73f2c2/3d79434f382323a20bc7dda8cd01e8d084a3c3bf.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 9 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/73f2c2/512d17179ce05f1d10bccf46b7e294864bfa308d.ts b/tests/act/tests/73f2c2/512d17179ce05f1d10bccf46b7e294864bfa308d.ts deleted file mode 100644 index 5612a913..00000000 --- a/tests/act/tests/73f2c2/512d17179ce05f1d10bccf46b7e294864bfa308d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[73f2c2]`autocomplete` attribute has valid value", function () { - it("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/73f2c2/512d17179ce05f1d10bccf46b7e294864bfa308d.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 2 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/73f2c2/55ce632e85a0243abf196c59242b2af699e5c0d4.ts b/tests/act/tests/73f2c2/55ce632e85a0243abf196c59242b2af699e5c0d4.ts deleted file mode 100644 index f87edaff..00000000 --- a/tests/act/tests/73f2c2/55ce632e85a0243abf196c59242b2af699e5c0d4.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[73f2c2]Autocomplete attribute has valid value", function () { - it("Failed Example 7 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/73f2c2/55ce632e85a0243abf196c59242b2af699e5c0d4.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 7 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/73f2c2/7f282d49777b1261a3907ca35c6549b2210b18df.ts b/tests/act/tests/73f2c2/7f282d49777b1261a3907ca35c6549b2210b18df.ts deleted file mode 100644 index f590a572..00000000 --- a/tests/act/tests/73f2c2/7f282d49777b1261a3907ca35c6549b2210b18df.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[73f2c2]`autocomplete` attribute has valid value", function () { - it("Failed Example 5 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/73f2c2/7f282d49777b1261a3907ca35c6549b2210b18df.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 5 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/73f2c2/81de203102fe8bf98e7f95aa9959374c1f6a3d3b.ts b/tests/act/tests/73f2c2/81de203102fe8bf98e7f95aa9959374c1f6a3d3b.ts deleted file mode 100644 index d1643282..00000000 --- a/tests/act/tests/73f2c2/81de203102fe8bf98e7f95aa9959374c1f6a3d3b.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[73f2c2]`autocomplete` attribute has valid value", function () { - it("Failed Example 4 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/73f2c2/81de203102fe8bf98e7f95aa9959374c1f6a3d3b.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 4 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/73f2c2/92214e0008b9b2e7bd98d991d27c09bb33d4c92c.ts b/tests/act/tests/73f2c2/92214e0008b9b2e7bd98d991d27c09bb33d4c92c.ts deleted file mode 100644 index 6d0ab3ac..00000000 --- a/tests/act/tests/73f2c2/92214e0008b9b2e7bd98d991d27c09bb33d4c92c.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[73f2c2]Autocomplete attribute has valid value", function () { - it("Failed Example 10 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/73f2c2/92214e0008b9b2e7bd98d991d27c09bb33d4c92c.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 10 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/73f2c2/93ac216a885112ab9882b119a62532c7f6b6c528.ts b/tests/act/tests/73f2c2/93ac216a885112ab9882b119a62532c7f6b6c528.ts deleted file mode 100644 index b0208aa2..00000000 --- a/tests/act/tests/73f2c2/93ac216a885112ab9882b119a62532c7f6b6c528.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[73f2c2]`autocomplete` attribute has valid value", function () { - it("Passed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/73f2c2/93ac216a885112ab9882b119a62532c7f6b6c528.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 2 - - -
- -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/73f2c2/9a55c66417d240eec2078684cd95c37cd35660ec.ts b/tests/act/tests/73f2c2/9a55c66417d240eec2078684cd95c37cd35660ec.ts deleted file mode 100644 index f67b07f2..00000000 --- a/tests/act/tests/73f2c2/9a55c66417d240eec2078684cd95c37cd35660ec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[73f2c2]`autocomplete` attribute has valid value", function () { - it("Failed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/73f2c2/9a55c66417d240eec2078684cd95c37cd35660ec.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 3 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/73f2c2/d64a0231dbcc95b21aafe3b554b9fdcbc9855301.ts b/tests/act/tests/73f2c2/d64a0231dbcc95b21aafe3b554b9fdcbc9855301.ts deleted file mode 100644 index c8edd3ed..00000000 --- a/tests/act/tests/73f2c2/d64a0231dbcc95b21aafe3b554b9fdcbc9855301.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[73f2c2]`autocomplete` attribute has valid value", function () { - it("Passed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/73f2c2/d64a0231dbcc95b21aafe3b554b9fdcbc9855301.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 3 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/73f2c2/e9f07d1795d34f948d3dd42051963623109a0bae.ts b/tests/act/tests/73f2c2/e9f07d1795d34f948d3dd42051963623109a0bae.ts deleted file mode 100644 index fbadd97e..00000000 --- a/tests/act/tests/73f2c2/e9f07d1795d34f948d3dd42051963623109a0bae.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[73f2c2]`autocomplete` attribute has valid value", function () { - it("Passed Example 5 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/73f2c2/e9f07d1795d34f948d3dd42051963623109a0bae.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 5 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/73f2c2/eabc191efa65e6613739042a0ae21937cda02428.ts b/tests/act/tests/73f2c2/eabc191efa65e6613739042a0ae21937cda02428.ts deleted file mode 100644 index 837ca87b..00000000 --- a/tests/act/tests/73f2c2/eabc191efa65e6613739042a0ae21937cda02428.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[73f2c2]`autocomplete` attribute has valid value", function () { - it("Passed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/73f2c2/eabc191efa65e6613739042a0ae21937cda02428.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 1 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/73f2c2/efcd5df49b39506dac34a310f4b8bc0df71716d3.ts b/tests/act/tests/73f2c2/efcd5df49b39506dac34a310f4b8bc0df71716d3.ts deleted file mode 100644 index d0f0f5a5..00000000 --- a/tests/act/tests/73f2c2/efcd5df49b39506dac34a310f4b8bc0df71716d3.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[73f2c2]Autocomplete attribute has valid value", function () { - it("Passed Example 9 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/73f2c2/efcd5df49b39506dac34a310f4b8bc0df71716d3.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 8 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/7d6734/2847ca922fa3564341094245c34ef3120167bc0b.ts b/tests/act/tests/7d6734/2847ca922fa3564341094245c34ef3120167bc0b.ts deleted file mode 100644 index 4b66ff62..00000000 --- a/tests/act/tests/7d6734/2847ca922fa3564341094245c34ef3120167bc0b.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[7d6734]SVG element with explicit role has non-empty accessible name", function () { - it("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/7d6734/2847ca922fa3564341094245c34ef3120167bc0b.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 1 - - -

How many circles are there?

- - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/7d6734/8ad324fd8d3f5113f72ac40f978a85e1777d43d1.ts b/tests/act/tests/7d6734/8ad324fd8d3f5113f72ac40f978a85e1777d43d1.ts deleted file mode 100644 index f1cc1022..00000000 --- a/tests/act/tests/7d6734/8ad324fd8d3f5113f72ac40f978a85e1777d43d1.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[7d6734]SVG element with explicit role has non-empty accessible name", function () { - it("Passed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/7d6734/8ad324fd8d3f5113f72ac40f978a85e1777d43d1.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 2 - - -

How many circles are there?

- - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/7d6734/94396aaa5928a68aba7320ea3690ca6c302fdcab.ts b/tests/act/tests/7d6734/94396aaa5928a68aba7320ea3690ca6c302fdcab.ts deleted file mode 100644 index 3287578e..00000000 --- a/tests/act/tests/7d6734/94396aaa5928a68aba7320ea3690ca6c302fdcab.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[7d6734]SVG element with explicit role has non-empty accessible name", function () { - it("Failed Example 4 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/7d6734/94396aaa5928a68aba7320ea3690ca6c302fdcab.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 4 - - -

How many circles are there?

- - - - 1 circle - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/7d6734/e1724dd3a91aff66b84807df1b9dbbaeaf272189.ts b/tests/act/tests/7d6734/e1724dd3a91aff66b84807df1b9dbbaeaf272189.ts deleted file mode 100644 index 38f1854e..00000000 --- a/tests/act/tests/7d6734/e1724dd3a91aff66b84807df1b9dbbaeaf272189.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[7d6734]SVG element with explicit role has non-empty accessible name", function () { - it("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/7d6734/e1724dd3a91aff66b84807df1b9dbbaeaf272189.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 2 - - -

How many circles are there?

- - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/97a4e1/1a6035f4f09b339ac53bc547fc727a51ab05a3c6.ts b/tests/act/tests/97a4e1/1a6035f4f09b339ac53bc547fc727a51ab05a3c6.ts deleted file mode 100644 index b92c94c1..00000000 --- a/tests/act/tests/97a4e1/1a6035f4f09b339ac53bc547fc727a51ab05a3c6.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[97a4e1]Button has non-empty accessible name", function () { - it("Failed Example 4 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/97a4e1/1a6035f4f09b339ac53bc547fc727a51ab05a3c6.html)", async () => { - const document = parser.parseFromString(` - - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/97a4e1/1ec8deb0b18514b612774d3af39b5ad41f2a792b.ts b/tests/act/tests/97a4e1/1ec8deb0b18514b612774d3af39b5ad41f2a792b.ts deleted file mode 100644 index df07a648..00000000 --- a/tests/act/tests/97a4e1/1ec8deb0b18514b612774d3af39b5ad41f2a792b.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[97a4e1]Button has non-empty accessible name", function () { - it("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/97a4e1/1ec8deb0b18514b612774d3af39b5ad41f2a792b.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 1 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/97a4e1/2c5b0625e21b3503d1cd4c4daf53b15ae41c562d.ts b/tests/act/tests/97a4e1/2c5b0625e21b3503d1cd4c4daf53b15ae41c562d.ts deleted file mode 100644 index 604fbf24..00000000 --- a/tests/act/tests/97a4e1/2c5b0625e21b3503d1cd4c4daf53b15ae41c562d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[97a4e1]Button has non-empty accessible name", function () { - it("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/97a4e1/2c5b0625e21b3503d1cd4c4daf53b15ae41c562d.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 2 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/97a4e1/3004e7b1a47b2e5a5c77b3eef36b50d495c9e4a1.ts b/tests/act/tests/97a4e1/3004e7b1a47b2e5a5c77b3eef36b50d495c9e4a1.ts deleted file mode 100644 index c50d8b92..00000000 --- a/tests/act/tests/97a4e1/3004e7b1a47b2e5a5c77b3eef36b50d495c9e4a1.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[97a4e1]Button has non-empty accessible name", function () { - it("Passed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/97a4e1/3004e7b1a47b2e5a5c77b3eef36b50d495c9e4a1.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 3 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/97a4e1/3fe70212e0020d7fa552b7c6c035a466c900c4b9.ts b/tests/act/tests/97a4e1/3fe70212e0020d7fa552b7c6c035a466c900c4b9.ts deleted file mode 100644 index d66944ef..00000000 --- a/tests/act/tests/97a4e1/3fe70212e0020d7fa552b7c6c035a466c900c4b9.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[97a4e1]Button has non-empty accessible name", function () { - it("Passed Example 7 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/97a4e1/3fe70212e0020d7fa552b7c6c035a466c900c4b9.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 7 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/97a4e1/5bfdf45a98f7d2f0e93a700f7ce0fe5f723bf0f7.ts b/tests/act/tests/97a4e1/5bfdf45a98f7d2f0e93a700f7ce0fe5f723bf0f7.ts deleted file mode 100644 index a3d8a18b..00000000 --- a/tests/act/tests/97a4e1/5bfdf45a98f7d2f0e93a700f7ce0fe5f723bf0f7.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[97a4e1]Button has non-empty accessible name", function () { - it("Passed Example 5 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/97a4e1/5bfdf45a98f7d2f0e93a700f7ce0fe5f723bf0f7.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 5 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/97a4e1/a4cc71b0434f71f4ea0069c409f73e0207dfb403.ts b/tests/act/tests/97a4e1/a4cc71b0434f71f4ea0069c409f73e0207dfb403.ts deleted file mode 100644 index a7680956..00000000 --- a/tests/act/tests/97a4e1/a4cc71b0434f71f4ea0069c409f73e0207dfb403.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[97a4e1]Button has non-empty accessible name", function () { - it("Passed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/97a4e1/a4cc71b0434f71f4ea0069c409f73e0207dfb403.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 1 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/97a4e1/ac9a749a026c47209c34677ca6ac0dc093d24888.ts b/tests/act/tests/97a4e1/ac9a749a026c47209c34677ca6ac0dc093d24888.ts deleted file mode 100644 index 48e2cd87..00000000 --- a/tests/act/tests/97a4e1/ac9a749a026c47209c34677ca6ac0dc093d24888.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[97a4e1]Button has non-empty accessible name", function () { - it("Failed Example 5 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/97a4e1/ac9a749a026c47209c34677ca6ac0dc093d24888.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 5 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/97a4e1/d9adf41033a5b71a0730b6df8c1c7e01088e9022.ts b/tests/act/tests/97a4e1/d9adf41033a5b71a0730b6df8c1c7e01088e9022.ts deleted file mode 100644 index 1204754f..00000000 --- a/tests/act/tests/97a4e1/d9adf41033a5b71a0730b6df8c1c7e01088e9022.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[97a4e1]Button has non-empty accessible name", function () { - it("Passed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/97a4e1/d9adf41033a5b71a0730b6df8c1c7e01088e9022.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 2 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/97a4e1/ff4b76894bd9aaad29242e72fe93fd9798bf85af.ts b/tests/act/tests/97a4e1/ff4b76894bd9aaad29242e72fe93fd9798bf85af.ts deleted file mode 100644 index ff84ac95..00000000 --- a/tests/act/tests/97a4e1/ff4b76894bd9aaad29242e72fe93fd9798bf85af.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[97a4e1]Button has non-empty accessible name", function () { - it("Passed Example 4 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/97a4e1/ff4b76894bd9aaad29242e72fe93fd9798bf85af.html)", async () => { - const document = parser.parseFromString(` - - - Passed Example 4 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/97a4e1/ffe1796f06e1082a8ddae54a471dcca66c783c4e.ts b/tests/act/tests/97a4e1/ffe1796f06e1082a8ddae54a471dcca66c783c4e.ts deleted file mode 100644 index 9d7c871d..00000000 --- a/tests/act/tests/97a4e1/ffe1796f06e1082a8ddae54a471dcca66c783c4e.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[97a4e1]Button has non-empty accessible name", function () { - it("Failed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/97a4e1/ffe1796f06e1082a8ddae54a471dcca66c783c4e.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 3 - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/b4f0c3/08e8943b849762eb7f18654c7f9e479ad33b2840.ts b/tests/act/tests/b4f0c3/08e8943b849762eb7f18654c7f9e479ad33b2840.ts deleted file mode 100644 index b09fa61e..00000000 --- a/tests/act/tests/b4f0c3/08e8943b849762eb7f18654c7f9e479ad33b2840.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[b4f0c3]Meta viewport allows for zoom", function () { - it("Passed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/b4f0c3/08e8943b849762eb7f18654c7f9e479ad33b2840.html)", async () => { - const document = parser.parseFromString(` - - - Simple page showing random text - - - -

- Lorem ipsum -

- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/b4f0c3/30b40365b4e59aa103ff04c369f31658fa6e2790.ts b/tests/act/tests/b4f0c3/30b40365b4e59aa103ff04c369f31658fa6e2790.ts deleted file mode 100644 index 04d25585..00000000 --- a/tests/act/tests/b4f0c3/30b40365b4e59aa103ff04c369f31658fa6e2790.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[b4f0c3]Meta viewport allows for zoom", function () { - it("Passed Example 5 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/b4f0c3/30b40365b4e59aa103ff04c369f31658fa6e2790.html)", async () => { - const document = parser.parseFromString(` - - - Simple page showing random text - - - -

- Lorem ipsum -

- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/b4f0c3/312146d84331c7214ed6919391ad955098eff516.ts b/tests/act/tests/b4f0c3/312146d84331c7214ed6919391ad955098eff516.ts deleted file mode 100644 index e96f0769..00000000 --- a/tests/act/tests/b4f0c3/312146d84331c7214ed6919391ad955098eff516.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[b4f0c3]Meta viewport allows for zoom", function () { - it("Passed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/b4f0c3/312146d84331c7214ed6919391ad955098eff516.html)", async () => { - const document = parser.parseFromString(` - - - Simple page showing random text - - - -

- Lorem ipsum -

- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/b4f0c3/8735b02e59dd802a5a9e9a7ea1934a106d2963eb.ts b/tests/act/tests/b4f0c3/8735b02e59dd802a5a9e9a7ea1934a106d2963eb.ts deleted file mode 100644 index ee4190be..00000000 --- a/tests/act/tests/b4f0c3/8735b02e59dd802a5a9e9a7ea1934a106d2963eb.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[b4f0c3]Meta viewport allows for zoom", function () { - it("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/b4f0c3/8735b02e59dd802a5a9e9a7ea1934a106d2963eb.html)", async () => { - const document = parser.parseFromString(` - - - Simple page showing random text - - - -

- Lorem ipsum -

- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/b4f0c3/a1240b31761f65c92a8f6d08ed7105ee822d0ebc.ts b/tests/act/tests/b4f0c3/a1240b31761f65c92a8f6d08ed7105ee822d0ebc.ts deleted file mode 100644 index 9ad67dc3..00000000 --- a/tests/act/tests/b4f0c3/a1240b31761f65c92a8f6d08ed7105ee822d0ebc.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[b4f0c3]Meta viewport allows for zoom", function () { - it("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/b4f0c3/a1240b31761f65c92a8f6d08ed7105ee822d0ebc.html)", async () => { - const document = parser.parseFromString(` - - - Simple page showing random text - - - -

- Lorem ipsum -

- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/b4f0c3/accc6adf094723693593ca3c6308f81945930dae.ts b/tests/act/tests/b4f0c3/accc6adf094723693593ca3c6308f81945930dae.ts deleted file mode 100644 index 1a5a7e91..00000000 --- a/tests/act/tests/b4f0c3/accc6adf094723693593ca3c6308f81945930dae.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[b4f0c3]Meta viewport allows for zoom", function () { - it("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/b4f0c3/accc6adf094723693593ca3c6308f81945930dae.html)", async () => { - const document = parser.parseFromString(` - - - Simple page showing random text - - - -

- Lorem ipsum -

- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/b4f0c3/c7e4980eb42d0b138684ac1e28318a197d86ccfc.ts b/tests/act/tests/b4f0c3/c7e4980eb42d0b138684ac1e28318a197d86ccfc.ts deleted file mode 100644 index c2d1979f..00000000 --- a/tests/act/tests/b4f0c3/c7e4980eb42d0b138684ac1e28318a197d86ccfc.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[b4f0c3]Meta viewport allows for zoom", function () { - it("Failed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/b4f0c3/c7e4980eb42d0b138684ac1e28318a197d86ccfc.html)", async () => { - const document = parser.parseFromString(` - - - Simple page showing random text - - - -

- Lorem ipsum -

- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/b4f0c3/c94a59f8c3b17d722781af36da3556ff4b418776.ts b/tests/act/tests/b4f0c3/c94a59f8c3b17d722781af36da3556ff4b418776.ts deleted file mode 100644 index 7832d769..00000000 --- a/tests/act/tests/b4f0c3/c94a59f8c3b17d722781af36da3556ff4b418776.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[b4f0c3]Meta viewport allows for zoom", function () { - it("Failed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/b4f0c3/c94a59f8c3b17d722781af36da3556ff4b418776.html)", async () => { - const document = parser.parseFromString(` - - - Simple page showing random text - - - -

- Lorem ipsum -

- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/bc659a/49d79a4e4e4a994a8eb7cf2eaf59c99d2251cac5.ts b/tests/act/tests/bc659a/49d79a4e4e4a994a8eb7cf2eaf59c99d2251cac5.ts index 9bd92675..ffd4412c 100644 --- a/tests/act/tests/bc659a/49d79a4e4e4a994a8eb7cf2eaf59c99d2251cac5.ts +++ b/tests/act/tests/bc659a/49d79a4e4e4a994a8eb7cf2eaf59c99d2251cac5.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[bc659a]Meta element has no refresh delay", function () { - it.skip("Passed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bc659a/49d79a4e4e4a994a8eb7cf2eaf59c99d2251cac5.html)", async () => { + it("Passed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bc659a/49d79a4e4e4a994a8eb7cf2eaf59c99d2251cac5.html)", async () => { const document = parser.parseFromString(` @@ -16,6 +16,8 @@ describe("[bc659a]Meta element has no refresh delay", function () { return { text, url }; }); - expect(results).to.be.empty; + const expectedUrls = ["https://dequeuniversity.com/rules/axe/4.11/meta-refresh"]; + const relevant = results.filter(r => expectedUrls.includes(r.url)); + expect(relevant).to.be.empty; }); }); diff --git a/tests/act/tests/bc659a/56857820788db21498e95a5cbba65d59a9a2b892.ts b/tests/act/tests/bc659a/56857820788db21498e95a5cbba65d59a9a2b892.ts index 88e53989..f21f7a56 100644 --- a/tests/act/tests/bc659a/56857820788db21498e95a5cbba65d59a9a2b892.ts +++ b/tests/act/tests/bc659a/56857820788db21498e95a5cbba65d59a9a2b892.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[bc659a]Meta element has no refresh delay", function () { - it.skip("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bc659a/56857820788db21498e95a5cbba65d59a9a2b892.html)", async () => { + it("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bc659a/56857820788db21498e95a5cbba65d59a9a2b892.html)", async () => { const document = parser.parseFromString(` diff --git a/tests/act/tests/bc659a/5d4d5b214459c8a0779600ab39a5668003271c62.ts b/tests/act/tests/bc659a/5d4d5b214459c8a0779600ab39a5668003271c62.ts index 716a715a..ca0db42c 100644 --- a/tests/act/tests/bc659a/5d4d5b214459c8a0779600ab39a5668003271c62.ts +++ b/tests/act/tests/bc659a/5d4d5b214459c8a0779600ab39a5668003271c62.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[bc659a]Meta element has no refresh delay", function () { - it.skip("Failed Example 4 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bc659a/5d4d5b214459c8a0779600ab39a5668003271c62.html)", async () => { + it("Failed Example 4 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bc659a/5d4d5b214459c8a0779600ab39a5668003271c62.html)", async () => { const document = parser.parseFromString(` diff --git a/tests/act/tests/bc659a/96c7657d21888cd05edd297d44a8fd554b21c908.ts b/tests/act/tests/bc659a/96c7657d21888cd05edd297d44a8fd554b21c908.ts index 9e644656..1cf1522e 100644 --- a/tests/act/tests/bc659a/96c7657d21888cd05edd297d44a8fd554b21c908.ts +++ b/tests/act/tests/bc659a/96c7657d21888cd05edd297d44a8fd554b21c908.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[bc659a]Meta element has no refresh delay", function () { - it.skip("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bc659a/96c7657d21888cd05edd297d44a8fd554b21c908.html)", async () => { + it("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bc659a/96c7657d21888cd05edd297d44a8fd554b21c908.html)", async () => { const document = parser.parseFromString(` diff --git a/tests/act/tests/bc659a/b2e7f3e00ffce0a2a1078f860452814e6445445d.ts b/tests/act/tests/bc659a/b2e7f3e00ffce0a2a1078f860452814e6445445d.ts index 70fee807..3348c537 100644 --- a/tests/act/tests/bc659a/b2e7f3e00ffce0a2a1078f860452814e6445445d.ts +++ b/tests/act/tests/bc659a/b2e7f3e00ffce0a2a1078f860452814e6445445d.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[bc659a]Meta element has no refresh delay", function () { - it.skip("Failed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bc659a/b2e7f3e00ffce0a2a1078f860452814e6445445d.html)", async () => { + it("Failed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bc659a/b2e7f3e00ffce0a2a1078f860452814e6445445d.html)", async () => { const document = parser.parseFromString(` diff --git a/tests/act/tests/bc659a/b5ca868de7980f6944142ecdb849f47ad2cdfb5c.ts b/tests/act/tests/bc659a/b5ca868de7980f6944142ecdb849f47ad2cdfb5c.ts index fa5b50fc..08a5a45d 100644 --- a/tests/act/tests/bc659a/b5ca868de7980f6944142ecdb849f47ad2cdfb5c.ts +++ b/tests/act/tests/bc659a/b5ca868de7980f6944142ecdb849f47ad2cdfb5c.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[bc659a]Meta element has no refresh delay", function () { - it.skip("Passed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bc659a/b5ca868de7980f6944142ecdb849f47ad2cdfb5c.html)", async () => { + it("Passed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bc659a/b5ca868de7980f6944142ecdb849f47ad2cdfb5c.html)", async () => { const document = parser.parseFromString(` @@ -16,6 +16,8 @@ describe("[bc659a]Meta element has no refresh delay", function () { return { text, url }; }); - expect(results).to.be.empty; + const expectedUrls = ["https://dequeuniversity.com/rules/axe/4.11/meta-refresh"]; + const relevant = results.filter(r => expectedUrls.includes(r.url)); + expect(relevant).to.be.empty; }); }); diff --git a/tests/act/tests/bc659a/d48be8e9b638b9c27714cb3118a335376ed65f0f.ts b/tests/act/tests/bc659a/d48be8e9b638b9c27714cb3118a335376ed65f0f.ts index 9e928607..01445eee 100644 --- a/tests/act/tests/bc659a/d48be8e9b638b9c27714cb3118a335376ed65f0f.ts +++ b/tests/act/tests/bc659a/d48be8e9b638b9c27714cb3118a335376ed65f0f.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[bc659a]Meta element has no refresh delay", function () { - it.skip("Passed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bc659a/d48be8e9b638b9c27714cb3118a335376ed65f0f.html)", async () => { + it("Passed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bc659a/d48be8e9b638b9c27714cb3118a335376ed65f0f.html)", async () => { const document = parser.parseFromString(` @@ -17,6 +17,8 @@ describe("[bc659a]Meta element has no refresh delay", function () { return { text, url }; }); - expect(results).to.be.empty; + const expectedUrls = ["https://dequeuniversity.com/rules/axe/4.11/meta-refresh"]; + const relevant = results.filter(r => expectedUrls.includes(r.url)); + expect(relevant).to.be.empty; }); }); diff --git a/tests/act/tests/bisz58/24a98a3ff6a69e073f768bb198671ea6a1c4568a.ts b/tests/act/tests/bisz58/24a98a3ff6a69e073f768bb198671ea6a1c4568a.ts index 3d22ab1e..58efbeae 100644 --- a/tests/act/tests/bisz58/24a98a3ff6a69e073f768bb198671ea6a1c4568a.ts +++ b/tests/act/tests/bisz58/24a98a3ff6a69e073f768bb198671ea6a1c4568a.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[bisz58]Meta element has no refresh delay (no exception)", function () { - it.skip("Passed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bisz58/24a98a3ff6a69e073f768bb198671ea6a1c4568a.html)", async () => { + it("Passed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bisz58/24a98a3ff6a69e073f768bb198671ea6a1c4568a.html)", async () => { const document = parser.parseFromString(` @@ -17,6 +17,8 @@ describe("[bisz58]Meta element has no refresh delay (no exception)", function () return { text, url }; }); - expect(results).to.be.empty; + const expectedUrls = ["https://dequeuniversity.com/rules/axe/4.11/meta-refresh-no-exceptions"]; + const relevant = results.filter(r => expectedUrls.includes(r.url)); + expect(relevant).to.be.empty; }); }); diff --git a/tests/act/tests/bisz58/6a414a1455a58e4505d7c550486d628f0fd80fdd.ts b/tests/act/tests/bisz58/6a414a1455a58e4505d7c550486d628f0fd80fdd.ts index dc150a8b..9cf29f49 100644 --- a/tests/act/tests/bisz58/6a414a1455a58e4505d7c550486d628f0fd80fdd.ts +++ b/tests/act/tests/bisz58/6a414a1455a58e4505d7c550486d628f0fd80fdd.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[bisz58]Meta element has no refresh delay (no exception)", function () { - it.skip("Passed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bisz58/6a414a1455a58e4505d7c550486d628f0fd80fdd.html)", async () => { + it("Passed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bisz58/6a414a1455a58e4505d7c550486d628f0fd80fdd.html)", async () => { const document = parser.parseFromString(` @@ -16,6 +16,8 @@ describe("[bisz58]Meta element has no refresh delay (no exception)", function () return { text, url }; }); - expect(results).to.be.empty; + const expectedUrls = ["https://dequeuniversity.com/rules/axe/4.11/meta-refresh-no-exceptions"]; + const relevant = results.filter(r => expectedUrls.includes(r.url)); + expect(relevant).to.be.empty; }); }); diff --git a/tests/act/tests/bisz58/b8aad77e3ff2fa8d0272fac5362566ff79afad7f.ts b/tests/act/tests/bisz58/b8aad77e3ff2fa8d0272fac5362566ff79afad7f.ts index 5ae9425e..81ecffdf 100644 --- a/tests/act/tests/bisz58/b8aad77e3ff2fa8d0272fac5362566ff79afad7f.ts +++ b/tests/act/tests/bisz58/b8aad77e3ff2fa8d0272fac5362566ff79afad7f.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[bisz58]Meta element has no refresh delay (no exception)", function () { - it.skip("Failed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bisz58/b8aad77e3ff2fa8d0272fac5362566ff79afad7f.html)", async () => { + it("Failed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bisz58/b8aad77e3ff2fa8d0272fac5362566ff79afad7f.html)", async () => { const document = parser.parseFromString(` diff --git a/tests/act/tests/bisz58/d0672e81d17313f7ef156f3bc6e43c68143a5f45.ts b/tests/act/tests/bisz58/d0672e81d17313f7ef156f3bc6e43c68143a5f45.ts index 667cdcdb..60a6c753 100644 --- a/tests/act/tests/bisz58/d0672e81d17313f7ef156f3bc6e43c68143a5f45.ts +++ b/tests/act/tests/bisz58/d0672e81d17313f7ef156f3bc6e43c68143a5f45.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[bisz58]Meta element has no refresh delay (no exception)", function () { - it.skip("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bisz58/d0672e81d17313f7ef156f3bc6e43c68143a5f45.html)", async () => { + it("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bisz58/d0672e81d17313f7ef156f3bc6e43c68143a5f45.html)", async () => { const document = parser.parseFromString(` diff --git a/tests/act/tests/bisz58/ecc787569c06640f3748ae90e2b57fb51c1e22d8.ts b/tests/act/tests/bisz58/ecc787569c06640f3748ae90e2b57fb51c1e22d8.ts index 01488d61..b04d0f6c 100644 --- a/tests/act/tests/bisz58/ecc787569c06640f3748ae90e2b57fb51c1e22d8.ts +++ b/tests/act/tests/bisz58/ecc787569c06640f3748ae90e2b57fb51c1e22d8.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[bisz58]Meta element has no refresh delay (no exception)", function () { - it.skip("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bisz58/ecc787569c06640f3748ae90e2b57fb51c1e22d8.html)", async () => { + it("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bisz58/ecc787569c06640f3748ae90e2b57fb51c1e22d8.html)", async () => { const document = parser.parseFromString(` diff --git a/tests/act/tests/c487ae/3f34996d204260b1b0b50fc8f77b10ab640ba303.ts b/tests/act/tests/c487ae/3f34996d204260b1b0b50fc8f77b10ab640ba303.ts index 651aab8f..1502e420 100644 --- a/tests/act/tests/c487ae/3f34996d204260b1b0b50fc8f77b10ab640ba303.ts +++ b/tests/act/tests/c487ae/3f34996d204260b1b0b50fc8f77b10ab640ba303.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[c487ae]Link has non-empty accessible name", function () { - it.skip("Failed Example 6 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/3f34996d204260b1b0b50fc8f77b10ab640ba303.html)", async () => { + it("Failed Example 6 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/3f34996d204260b1b0b50fc8f77b10ab640ba303.html)", async () => { const document = parser.parseFromString(` diff --git a/tests/act/tests/c487ae/4493c4b542c8e059e8423c77945ce5895428ab88.ts b/tests/act/tests/c487ae/4493c4b542c8e059e8423c77945ce5895428ab88.ts index 641c1145..69f15c93 100644 --- a/tests/act/tests/c487ae/4493c4b542c8e059e8423c77945ce5895428ab88.ts +++ b/tests/act/tests/c487ae/4493c4b542c8e059e8423c77945ce5895428ab88.ts @@ -21,6 +21,8 @@ describe("[c487ae]Link has non-empty accessible name", function () { return { text, url }; }); - expect(results).to.be.empty; + const expectedUrls = ["https://dequeuniversity.com/rules/axe/4.11/area-alt","https://dequeuniversity.com/rules/axe/4.11/link-name"]; + const relevant = results.filter(r => expectedUrls.includes(r.url)); + expect(relevant).to.be.empty; }); }); diff --git a/tests/act/tests/c487ae/5d16da98a4089b29ff76c611036c65e1c504c7bc.ts b/tests/act/tests/c487ae/5d16da98a4089b29ff76c611036c65e1c504c7bc.ts index 2af8abd1..0dcb913d 100644 --- a/tests/act/tests/c487ae/5d16da98a4089b29ff76c611036c65e1c504c7bc.ts +++ b/tests/act/tests/c487ae/5d16da98a4089b29ff76c611036c65e1c504c7bc.ts @@ -21,6 +21,8 @@ describe("[c487ae]Link has non-empty accessible name", function () { return { text, url }; }); - expect(results).to.be.empty; + const expectedUrls = ["https://dequeuniversity.com/rules/axe/4.11/area-alt","https://dequeuniversity.com/rules/axe/4.11/link-name"]; + const relevant = results.filter(r => expectedUrls.includes(r.url)); + expect(relevant).to.be.empty; }); }); diff --git a/tests/act/tests/c487ae/633d9136ef3e040b7653b287651c65e4302fe417.ts b/tests/act/tests/c487ae/633d9136ef3e040b7653b287651c65e4302fe417.ts index 8ecc9752..2ac4c36b 100644 --- a/tests/act/tests/c487ae/633d9136ef3e040b7653b287651c65e4302fe417.ts +++ b/tests/act/tests/c487ae/633d9136ef3e040b7653b287651c65e4302fe417.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[c487ae]Link has non-empty accessible name", function () { - it.skip("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/633d9136ef3e040b7653b287651c65e4302fe417.html)", async () => { + it("Failed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/633d9136ef3e040b7653b287651c65e4302fe417.html)", async () => { const document = parser.parseFromString(` diff --git a/tests/act/tests/c487ae/7b3b94c0e39bed9d432f379efa77ba9f54c81c6d.ts b/tests/act/tests/c487ae/7b3b94c0e39bed9d432f379efa77ba9f54c81c6d.ts index 1e5caecd..3fffbba2 100644 --- a/tests/act/tests/c487ae/7b3b94c0e39bed9d432f379efa77ba9f54c81c6d.ts +++ b/tests/act/tests/c487ae/7b3b94c0e39bed9d432f379efa77ba9f54c81c6d.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[c487ae]Link has non-empty accessible name", function () { - it.skip("Failed Example 11 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/7b3b94c0e39bed9d432f379efa77ba9f54c81c6d.html)", async () => { + it("Failed Example 11 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/7b3b94c0e39bed9d432f379efa77ba9f54c81c6d.html)", async () => { const document = parser.parseFromString(` diff --git a/tests/act/tests/c487ae/7b6b235a0fd8bf9b2023a5d0e446f7ed46e1a40f.ts b/tests/act/tests/c487ae/7b6b235a0fd8bf9b2023a5d0e446f7ed46e1a40f.ts index 70b5c84e..3fa35e9a 100644 --- a/tests/act/tests/c487ae/7b6b235a0fd8bf9b2023a5d0e446f7ed46e1a40f.ts +++ b/tests/act/tests/c487ae/7b6b235a0fd8bf9b2023a5d0e446f7ed46e1a40f.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[c487ae]Link has non-empty accessible name", function () { - it.skip("Failed Example 7 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/7b6b235a0fd8bf9b2023a5d0e446f7ed46e1a40f.html)", async () => { + it("Failed Example 7 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/7b6b235a0fd8bf9b2023a5d0e446f7ed46e1a40f.html)", async () => { const document = parser.parseFromString(` diff --git a/tests/act/tests/c487ae/8816eee206375f88c562d618852cb0383b89fe6e.ts b/tests/act/tests/c487ae/8816eee206375f88c562d618852cb0383b89fe6e.ts index 8752083e..b0a7d616 100644 --- a/tests/act/tests/c487ae/8816eee206375f88c562d618852cb0383b89fe6e.ts +++ b/tests/act/tests/c487ae/8816eee206375f88c562d618852cb0383b89fe6e.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[c487ae]Link has non-empty accessible name", function () { - it.skip("Failed Example 8 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/8816eee206375f88c562d618852cb0383b89fe6e.html)", async () => { + it("Failed Example 8 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/8816eee206375f88c562d618852cb0383b89fe6e.html)", async () => { const document = parser.parseFromString(` diff --git a/tests/act/tests/c487ae/954326e5ba700d4616d924807f427002816e9fc3.ts b/tests/act/tests/c487ae/954326e5ba700d4616d924807f427002816e9fc3.ts index 8ba1bfd6..35874920 100644 --- a/tests/act/tests/c487ae/954326e5ba700d4616d924807f427002816e9fc3.ts +++ b/tests/act/tests/c487ae/954326e5ba700d4616d924807f427002816e9fc3.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[c487ae]Link has non-empty accessible name", function () { - it.skip("Failed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/954326e5ba700d4616d924807f427002816e9fc3.html)", async () => { + it("Failed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/954326e5ba700d4616d924807f427002816e9fc3.html)", async () => { const document = parser.parseFromString(` diff --git a/tests/act/tests/c487ae/97b115a032fc4178230306e2d0f4e334b2cfe8a9.ts b/tests/act/tests/c487ae/97b115a032fc4178230306e2d0f4e334b2cfe8a9.ts index 48674a38..17185eef 100644 --- a/tests/act/tests/c487ae/97b115a032fc4178230306e2d0f4e334b2cfe8a9.ts +++ b/tests/act/tests/c487ae/97b115a032fc4178230306e2d0f4e334b2cfe8a9.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[c487ae]Link has non-empty accessible name", function () { - it.skip("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/97b115a032fc4178230306e2d0f4e334b2cfe8a9.html)", async () => { + it("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/97b115a032fc4178230306e2d0f4e334b2cfe8a9.html)", async () => { const document = parser.parseFromString(` diff --git a/tests/act/tests/c487ae/a8cc66de4d60e34c7ee0d09fd6ab965ac23d9b4f.ts b/tests/act/tests/c487ae/a8cc66de4d60e34c7ee0d09fd6ab965ac23d9b4f.ts index 8f806276..6a71c139 100644 --- a/tests/act/tests/c487ae/a8cc66de4d60e34c7ee0d09fd6ab965ac23d9b4f.ts +++ b/tests/act/tests/c487ae/a8cc66de4d60e34c7ee0d09fd6ab965ac23d9b4f.ts @@ -19,6 +19,8 @@ describe("[c487ae]Link has non-empty accessible name", function () { return { text, url }; }); - expect(results).to.be.empty; + const expectedUrls = ["https://dequeuniversity.com/rules/axe/4.11/area-alt","https://dequeuniversity.com/rules/axe/4.11/link-name"]; + const relevant = results.filter(r => expectedUrls.includes(r.url)); + expect(relevant).to.be.empty; }); }); diff --git a/tests/act/tests/c487ae/ada7438401aba500eb03f678b05b9821a758336a.ts b/tests/act/tests/c487ae/ada7438401aba500eb03f678b05b9821a758336a.ts index 201e8b15..4e2a21df 100644 --- a/tests/act/tests/c487ae/ada7438401aba500eb03f678b05b9821a758336a.ts +++ b/tests/act/tests/c487ae/ada7438401aba500eb03f678b05b9821a758336a.ts @@ -19,6 +19,8 @@ describe("[c487ae]Link has non-empty accessible name", function () { return { text, url }; }); - expect(results).to.be.empty; + const expectedUrls = ["https://dequeuniversity.com/rules/axe/4.11/area-alt","https://dequeuniversity.com/rules/axe/4.11/link-name"]; + const relevant = results.filter(r => expectedUrls.includes(r.url)); + expect(relevant).to.be.empty; }); }); diff --git a/tests/act/tests/c487ae/b9a3949e2a7521698472a966c782434c4d9ce6fb.ts b/tests/act/tests/c487ae/b9a3949e2a7521698472a966c782434c4d9ce6fb.ts index 1fe5f856..949a89f7 100644 --- a/tests/act/tests/c487ae/b9a3949e2a7521698472a966c782434c4d9ce6fb.ts +++ b/tests/act/tests/c487ae/b9a3949e2a7521698472a966c782434c4d9ce6fb.ts @@ -23,6 +23,8 @@ describe("[c487ae]Link has non-empty accessible name", function () { return { text, url }; }); - expect(results).to.be.empty; + const expectedUrls = ["https://dequeuniversity.com/rules/axe/4.11/area-alt","https://dequeuniversity.com/rules/axe/4.11/link-name"]; + const relevant = results.filter(r => expectedUrls.includes(r.url)); + expect(relevant).to.be.empty; }); }); diff --git a/tests/act/tests/c487ae/cc73351605ff3dc9766ad28a1a267a96976ad77b.ts b/tests/act/tests/c487ae/cc73351605ff3dc9766ad28a1a267a96976ad77b.ts index 2a586cc8..ba0ea820 100644 --- a/tests/act/tests/c487ae/cc73351605ff3dc9766ad28a1a267a96976ad77b.ts +++ b/tests/act/tests/c487ae/cc73351605ff3dc9766ad28a1a267a96976ad77b.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[c487ae]Link has non-empty accessible name", function () { - it.skip("Failed Example 10 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/cc73351605ff3dc9766ad28a1a267a96976ad77b.html)", async () => { + it("Failed Example 10 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/cc73351605ff3dc9766ad28a1a267a96976ad77b.html)", async () => { const document = parser.parseFromString(` diff --git a/tests/act/tests/c487ae/d13a75a2a0b539a39063eb946505e3d3dd5aeef1.ts b/tests/act/tests/c487ae/d13a75a2a0b539a39063eb946505e3d3dd5aeef1.ts index 4282fb60..5b3aeeeb 100644 --- a/tests/act/tests/c487ae/d13a75a2a0b539a39063eb946505e3d3dd5aeef1.ts +++ b/tests/act/tests/c487ae/d13a75a2a0b539a39063eb946505e3d3dd5aeef1.ts @@ -21,6 +21,8 @@ describe("[c487ae]Link has non-empty accessible name", function () { return { text, url }; }); - expect(results).to.be.empty; + const expectedUrls = ["https://dequeuniversity.com/rules/axe/4.11/area-alt","https://dequeuniversity.com/rules/axe/4.11/link-name"]; + const relevant = results.filter(r => expectedUrls.includes(r.url)); + expect(relevant).to.be.empty; }); }); diff --git a/tests/act/tests/c487ae/d36abfa44924a4d4088bada05f439ae392dfd662.ts b/tests/act/tests/c487ae/d36abfa44924a4d4088bada05f439ae392dfd662.ts index 977c48ae..a7635556 100644 --- a/tests/act/tests/c487ae/d36abfa44924a4d4088bada05f439ae392dfd662.ts +++ b/tests/act/tests/c487ae/d36abfa44924a4d4088bada05f439ae392dfd662.ts @@ -19,6 +19,8 @@ describe("[c487ae]Link has non-empty accessible name", function () { return { text, url }; }); - expect(results).to.be.empty; + const expectedUrls = ["https://dequeuniversity.com/rules/axe/4.11/area-alt","https://dequeuniversity.com/rules/axe/4.11/link-name"]; + const relevant = results.filter(r => expectedUrls.includes(r.url)); + expect(relevant).to.be.empty; }); }); diff --git a/tests/act/tests/c487ae/d6a239059266b317de6a6e73dbf443c5ca8a6f5f.ts b/tests/act/tests/c487ae/d6a239059266b317de6a6e73dbf443c5ca8a6f5f.ts index 4184a955..3ba80c30 100644 --- a/tests/act/tests/c487ae/d6a239059266b317de6a6e73dbf443c5ca8a6f5f.ts +++ b/tests/act/tests/c487ae/d6a239059266b317de6a6e73dbf443c5ca8a6f5f.ts @@ -19,6 +19,8 @@ describe("[c487ae]Link has non-empty accessible name", function () { return { text, url }; }); - expect(results).to.be.empty; + const expectedUrls = ["https://dequeuniversity.com/rules/axe/4.11/area-alt","https://dequeuniversity.com/rules/axe/4.11/link-name"]; + const relevant = results.filter(r => expectedUrls.includes(r.url)); + expect(relevant).to.be.empty; }); }); diff --git a/tests/act/tests/c487ae/d761116217a5875490cd7a2adf0219bdb1bff5cf.ts b/tests/act/tests/c487ae/d761116217a5875490cd7a2adf0219bdb1bff5cf.ts index e930d9e2..55694184 100644 --- a/tests/act/tests/c487ae/d761116217a5875490cd7a2adf0219bdb1bff5cf.ts +++ b/tests/act/tests/c487ae/d761116217a5875490cd7a2adf0219bdb1bff5cf.ts @@ -28,6 +28,8 @@ describe("[c487ae]Link has non-empty accessible name", function () { return { text, url }; }); - expect(results).to.be.empty; + const expectedUrls = ["https://dequeuniversity.com/rules/axe/4.11/area-alt","https://dequeuniversity.com/rules/axe/4.11/link-name"]; + const relevant = results.filter(r => expectedUrls.includes(r.url)); + expect(relevant).to.be.empty; }); }); diff --git a/tests/act/tests/c487ae/dee6c55162904cfb77c7f65614c4e6ae2baacea2.ts b/tests/act/tests/c487ae/dee6c55162904cfb77c7f65614c4e6ae2baacea2.ts index d3bfc21b..ff460e51 100644 --- a/tests/act/tests/c487ae/dee6c55162904cfb77c7f65614c4e6ae2baacea2.ts +++ b/tests/act/tests/c487ae/dee6c55162904cfb77c7f65614c4e6ae2baacea2.ts @@ -4,7 +4,7 @@ import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[c487ae]Link has non-empty accessible name", function () { - it.skip("Passed Example 9 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/dee6c55162904cfb77c7f65614c4e6ae2baacea2.html)", async () => { + it("Passed Example 9 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/dee6c55162904cfb77c7f65614c4e6ae2baacea2.html)", async () => { const document = parser.parseFromString(` -
- -
-`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/m6b1q3/f3a40579bcb3cab4f12a31639bc9dd0ca5c14d87.ts b/tests/act/tests/m6b1q3/f3a40579bcb3cab4f12a31639bc9dd0ca5c14d87.ts deleted file mode 100644 index f287a38e..00000000 --- a/tests/act/tests/m6b1q3/f3a40579bcb3cab4f12a31639bc9dd0ca5c14d87.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[m6b1q3]Menuitem has non-empty accessible name", function () { - it("Failed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/m6b1q3/f3a40579bcb3cab4f12a31639bc9dd0ca5c14d87.html)", async () => { - const document = parser.parseFromString(` - - - Failed Example 1 - - -
- -
- -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.not.be.empty; - }); -}); diff --git a/tests/act/tests/qt1vmo/2a66c7b8d8ef78d350b1c995e0ad232008f6564f.ts b/tests/act/tests/qt1vmo/2a66c7b8d8ef78d350b1c995e0ad232008f6564f.ts deleted file mode 100644 index 52d31fca..00000000 --- a/tests/act/tests/qt1vmo/2a66c7b8d8ef78d350b1c995e0ad232008f6564f.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[qt1vmo]Image accessible name is descriptive", function () { - it.skip("Passed Example 3 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/qt1vmo/2a66c7b8d8ef78d350b1c995e0ad232008f6564f.html)", async () => { - const document = parser.parseFromString(` - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/qt1vmo/5d314574052bf16676abb0e9a67e48dd70116c2e.ts b/tests/act/tests/qt1vmo/5d314574052bf16676abb0e9a67e48dd70116c2e.ts deleted file mode 100644 index d3a965e5..00000000 --- a/tests/act/tests/qt1vmo/5d314574052bf16676abb0e9a67e48dd70116c2e.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[qt1vmo]Image accessible name is descriptive", function () { - it.skip("Passed Example 2 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/qt1vmo/5d314574052bf16676abb0e9a67e48dd70116c2e.html)", async () => { - const document = parser.parseFromString(` - - - - - - - - -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); diff --git a/tests/act/tests/qt1vmo/af4423575333947073fa3729f502ff0a0c6c2fbf.ts b/tests/act/tests/qt1vmo/af4423575333947073fa3729f502ff0a0c6c2fbf.ts deleted file mode 100644 index f15a4e54..00000000 --- a/tests/act/tests/qt1vmo/af4423575333947073fa3729f502ff0a0c6c2fbf.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { expect } from "@open-wc/testing"; -import { scan } from "../../../../src/scanner"; - -const parser = new DOMParser(); - -describe("[qt1vmo]Image accessible name is descriptive", function () { - it.skip("Passed Example 1 (https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/qt1vmo/af4423575333947073fa3729f502ff0a0c6c2fbf.html)", async () => { - const document = parser.parseFromString(` - - W3C logo -`, 'text/html'); - - const results = (await scan(document.body)).map(({ text, url }) => { - return { text, url }; - }); - - expect(results).to.be.empty; - }); -}); From 6507c5c027fbb4d89fb33beb9b31365b62c710c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Oddsson?= Date: Fri, 13 Mar 2026 10:49:23 +0000 Subject: [PATCH 2/2] Add skippedExamples to generator to preserve it.skip for known failures The generator now rm's the test directory before regenerating, which wiped manually-added .skip annotations. Add a skippedExamples list that generates it.skip instead of it for 26 tests across bc659a, bisz58, c487ae, and de46e4 rules where the scanner lacks the needed checks. Co-Authored-By: Claude Opus 4.6 --- generate-act-tests.js | 43 ++++++++++++++++++- src/rules/aria-input-field-name.ts | 10 ++++- ...6857820788db21498e95a5cbba65d59a9a2b892.ts | 2 +- ...d4d5b214459c8a0779600ab39a5668003271c62.ts | 2 +- ...6c7657d21888cd05edd297d44a8fd554b21c908.ts | 2 +- ...2e7f3e00ffce0a2a1078f860452814e6445445d.ts | 2 +- ...8aad77e3ff2fa8d0272fac5362566ff79afad7f.ts | 2 +- ...0672e81d17313f7ef156f3bc6e43c68143a5f45.ts | 2 +- ...cc787569c06640f3748ae90e2b57fb51c1e22d8.ts | 2 +- ...f34996d204260b1b0b50fc8f77b10ab640ba303.ts | 2 +- ...33d9136ef3e040b7653b287651c65e4302fe417.ts | 2 +- ...b3b94c0e39bed9d432f379efa77ba9f54c81c6d.ts | 2 +- ...b6b235a0fd8bf9b2023a5d0e446f7ed46e1a40f.ts | 2 +- ...816eee206375f88c562d618852cb0383b89fe6e.ts | 2 +- ...54326e5ba700d4616d924807f427002816e9fc3.ts | 2 +- ...7b115a032fc4178230306e2d0f4e334b2cfe8a9.ts | 2 +- ...c73351605ff3dc9766ad28a1a267a96976ad77b.ts | 2 +- ...5b522e069394fa6666bef3746705b70b4628819.ts | 2 +- ...729027165e293dc32ea88b7264e4c62c306fdd5.ts | 2 +- ...9b66676ed867c75368e31c1e06b28255df8089e.ts | 2 +- ...0e733e0c505a556fc53e6265eb5b432823570f7.ts | 2 +- ...ba0306adadd581e4331b9415c2ef9f8ecccc0f2.ts | 2 +- ...1f81c57325a77a89481f036e4e2116399fb6714.ts | 2 +- ...8de8b1ca470302aebb53065c32eddf08da008b5.ts | 2 +- ...95698c08fc5d404b649d0c367bedc3e83462d43.ts | 2 +- ...15cdae554a817caa4792101fde1adf14563227d.ts | 2 +- ...1765660b28464b5a73e502ef30b7370ba294ff5.ts | 2 +- ...8ba52b5fa5e123def1f778821219aaec20ca0fe.ts | 2 +- 28 files changed, 77 insertions(+), 28 deletions(-) diff --git a/generate-act-tests.js b/generate-act-tests.js index 1e7440f8..52168bf2 100644 --- a/generate-act-tests.js +++ b/generate-act-tests.js @@ -181,6 +181,45 @@ const ignoredExamples = [ "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/in6db8/ee9eeebf0a0b1a514df6202443345d999d2bd575.html", ]; +// Tests that are generated but marked as it.skip — known failures that +// document what the scanner doesn't handle yet. Unlike ignoredExamples +// (which omit the test entirely), these remain visible as pending work. +const skippedExamples = [ + // [bc659a] meta-refresh: scanner doesn't detect meta refresh delays + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bc659a/56857820788db21498e95a5cbba65d59a9a2b892.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bc659a/5d4d5b214459c8a0779600ab39a5668003271c62.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bc659a/96c7657d21888cd05edd297d44a8fd554b21c908.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bc659a/b2e7f3e00ffce0a2a1078f860452814e6445445d.html", + + // [bisz58] letter-spacing-not-important: scanner doesn't detect !important style conflicts + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bisz58/b8aad77e3ff2fa8d0272fac5362566ff79afad7f.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bisz58/d0672e81d17313f7ef156f3bc6e43c68143a5f45.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/bisz58/ecc787569c06640f3748ae90e2b57fb51c1e22d8.html", + + // [c487ae] link-in-text-block: scanner doesn't detect links distinguished only by color + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/3f34996d204260b1b0b50fc8f77b10ab640ba303.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/633d9136ef3e040b7653b287651c65e4302fe417.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/7b3b94c0e39bed9d432f379efa77ba9f54c81c6d.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/7b6b235a0fd8bf9b2023a5d0e446f7ed46e1a40f.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/8816eee206375f88c562d618852cb0383b89fe6e.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/954326e5ba700d4616d924807f427002816e9fc3.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/97b115a032fc4178230306e2d0f4e334b2cfe8a9.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/cc73351605ff3dc9766ad28a1a267a96976ad77b.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/e5b522e069394fa6666bef3746705b70b4628819.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/c487ae/e729027165e293dc32ea88b7264e4c62c306fdd5.html", + + // [de46e4] valid-lang: scanner doesn't detect invalid lang subtags on non-root elements + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/de46e4/49b66676ed867c75368e31c1e06b28255df8089e.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/de46e4/50e733e0c505a556fc53e6265eb5b432823570f7.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/de46e4/5ba0306adadd581e4331b9415c2ef9f8ecccc0f2.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/de46e4/61f81c57325a77a89481f036e4e2116399fb6714.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/de46e4/78de8b1ca470302aebb53065c32eddf08da008b5.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/de46e4/795698c08fc5d404b649d0c367bedc3e83462d43.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/de46e4/915cdae554a817caa4792101fde1adf14563227d.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/de46e4/b1765660b28464b5a73e502ef30b7370ba294ff5.html", + "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/de46e4/d8ba52b5fa5e123def1f778821219aaec20ca0fe.html", +]; + for (const rule of applicableRules) { const { ruleId, @@ -236,13 +275,15 @@ for (const rule of applicableRules) { throw new Error(`Unknown expected state: ${expected}`); } + const itFn = skippedExamples.includes(exampleURL) ? "it.skip" : "it"; + const suite = `import { expect } from "@open-wc/testing"; import { scan } from "../../../../src/scanner"; const parser = new DOMParser(); describe("[${ruleId}]${ruleName}", function () { - it("${testcaseTitle} (${exampleURL})", async () => { + ${itFn}("${testcaseTitle} (${exampleURL})", async () => { const document = parser.parseFromString(\`${html}\`, 'text/html'); const results = (await scan(document.body)).map(({ text, url }) => { diff --git a/src/rules/aria-input-field-name.ts b/src/rules/aria-input-field-name.ts index 0b143e33..55de5cf1 100644 --- a/src/rules/aria-input-field-name.ts +++ b/src/rules/aria-input-field-name.ts @@ -38,7 +38,15 @@ function hasAccessibleName(element: Element): boolean { // Check for associated