| | |
| | | selected_cards = [card for column in columns for card in column.get("cards", []) if card.get("isSelected") is True] |
| | | require(len(selected_cards) == 1, "Waterfall must expose exactly one selected card after keyboard navigation") |
| | | require(selected_cards[0].get("windowID") == expected_selected_window_id, "selected Waterfall card must match selectedWindowID") |
| | | require("selected" in selected_cards[0].get("visualStates", []), "selected Waterfall card must expose selected visual state") |
| | | require(selected_cards[0].get("shineVisible") is True, "selected Waterfall card must expose shine") |
| | | require(selected_cards[0].get("zPosition", 0) > 0, "selected Waterfall card must float above normal cards") |
| | | require("selectedVisualSuppressed" in selected_cards[0].get("visualStates", []), "non-hovered keyboard-selected Waterfall card must suppress selected visual state") |
| | | require(selected_cards[0].get("shineVisible") is False, "non-hovered keyboard-selected Waterfall card must not expose shine") |
| | | require(selected_cards[0].get("zPosition", 0) == 0, "non-hovered keyboard-selected Waterfall card must not float above normal cards") |
| | | |
| | | selected_items = [item for item in items if item.get("isSelected") is True] |
| | | require(len(selected_items) == 1, "App Shelf must expose exactly one selected App") |