mirror of
https://github.com/gethomepage/homepage.git
synced 2026-04-09 19:51:20 -07:00
Chore: homepage tests (#6278)
This commit is contained in:
4
src/test-utils/widget-assertions.js
Normal file
4
src/test-utils/widget-assertions.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export function findServiceBlockByLabel(container, label) {
|
||||
const blocks = Array.from(container.querySelectorAll(".service-block"));
|
||||
return blocks.find((b) => b.textContent?.includes(label));
|
||||
}
|
||||
Reference in New Issue
Block a user