Skip to content

Commit f25d08d

Browse files
asynclizcopybara-github
authored andcommitted
fix(testing): reset harnesses before interaction
PiperOrigin-RevId: 449016399
1 parent e422225 commit f25d08d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/testing/templates.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ export class TemplateBuilder<H extends Harness = never,
252252
element.harness as H :
253253
new this.harnessCtor(element);
254254
// Common shared component state harness actions
255+
await harness.reset();
255256
switch (state) {
256257
case State.FOCUS:
257258
await harness.focusWithKeyboard();

0 commit comments

Comments
 (0)