Dashboard: a focused tile's Left and Right, and a control's own arrows, tested
The arrows test also moves a focused tile right and back; a new test focuses a button inside a card and shows its arrows leave the tiles. A card given for a key with no tile fails loud, in both layouts.
This commit is contained in:
1 parent
9fddf4b6bf
commit
15e34fcb35
3 files changed
+43
-4
No files matched your search
@@ -137,6 +137,11 @@ fn stacked(
|
||||
.child(card)
|
||||
})
|
||||
.collect();
|
||||
assert!(
|
||||
cards.is_empty(),
|
||||
"dashboard grid: cards with no tile: {:?}",
|
||||
cards.iter().map(|(key, _)| key).collect::<Vec<_>>()
|
||||
);
|
||||
div()
|
||||
.id(id)
|
||||
.relative()
|
||||
@@ -293,6 +298,11 @@ impl RenderOnce for DashboardGrid {
|
||||
.into_any_element()
|
||||
})
|
||||
.collect();
|
||||
assert!(
|
||||
cards.is_empty(),
|
||||
"dashboard grid: cards with no tile: {:?}",
|
||||
cards.iter().map(|(key, _)| key).collect::<Vec<_>>()
|
||||
);
|
||||
let ghost = landing.as_ref().map(|tile| {
|
||||
div()
|
||||
.absolute()
|
||||
|
||||
Reference in new issue
Block a user