fix(qa): verify private investor continuity across dossiers
This commit is contained in:
@@ -188,6 +188,15 @@ test('summary focus and click wait for the native open toggle; closing a stage d
|
||||
};
|
||||
try {
|
||||
let tree = render();
|
||||
const action = new Target(false);
|
||||
tree.props.children.props.onPointerDownCapture();
|
||||
tree.props.children.props.onFocusCapture({ target: action });
|
||||
assert.equal(
|
||||
render().props.value.active,
|
||||
null,
|
||||
'pointer focus must not insert help before the action receives its click',
|
||||
);
|
||||
tree.props.children.props.onPointerUpCapture();
|
||||
const summary = new Target(true);
|
||||
tree.props.children.props.onFocusCapture({ target: summary });
|
||||
tree.props.children.props.onClickCapture({ target: summary });
|
||||
@@ -200,6 +209,12 @@ test('summary focus and click wait for the native open toggle; closing a stage d
|
||||
target: new Disclosure(false, false),
|
||||
});
|
||||
assert.equal(render().props.value.active, null);
|
||||
tree.props.children.props.onClickCapture({ target: action });
|
||||
assert.equal(
|
||||
render().props.value.active,
|
||||
'S02',
|
||||
'the completed click may open automatic help',
|
||||
);
|
||||
listeners.toggle({
|
||||
target: new Disclosure(false, true),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user