fix tests some moar
This commit is contained in:
parent
176605c302
commit
fc724cfe70
1 changed files with 3 additions and 3 deletions
|
@ -82,14 +82,14 @@ describe("RovingTabIndex", () => {
|
||||||
|
|
||||||
// update the children, it should remain on the same button
|
// update the children, it should remain on the same button
|
||||||
wrapper.setProps({
|
wrapper.setProps({
|
||||||
children: [button1, button4, button2, button3],
|
children: () => [button1, button4, button2, button3],
|
||||||
});
|
});
|
||||||
wrapper.update();
|
wrapper.update();
|
||||||
checkTabIndexes(wrapper.find("button"), [-1, -1, 0, -1]);
|
checkTabIndexes(wrapper.find("button"), [-1, -1, 0, -1]);
|
||||||
|
|
||||||
// update the children, remove the active button, it should move to the next one
|
// update the children, remove the active button, it should move to the next one
|
||||||
wrapper.setProps({
|
wrapper.setProps({
|
||||||
children: [button1, button4, button3],
|
children: () => [button1, button4, button3],
|
||||||
});
|
});
|
||||||
wrapper.update();
|
wrapper.update();
|
||||||
checkTabIndexes(wrapper.find("button"), [-1, -1, 0]);
|
checkTabIndexes(wrapper.find("button"), [-1, -1, 0]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue