MCPcopy Create free account
hub / github.com/bugy/script-server / assertVisible

Function assertVisible

web-src/tests/unit/combobox_test.js:378–386  ·  view source on GitHub ↗
(element, visible)

Source from the content-addressed store, hash-verified

376 }
377
378 function assertVisible(element, visible) {
379 const displayStyle = window.getComputedStyle(element).display;
380
381 if (visible) {
382 expect(displayStyle).not.toBe('none');
383 } else {
384 expect(displayStyle).toBe('none');
385 }
386 }
387
388 function assertVisibleItems(combobox, expectedVisible) {
389 const [header, ...listItems] = combobox.findAll('li').wrappers;

Callers 1

combobox_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected