Skip to content

Commit

Permalink
chore: fix chip-field tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DRiFTy17 committed Feb 23, 2024
1 parent 1c35c24 commit 4fe3264
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/spec/chip-field/chip-field.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ describe('ChipFieldComponent', function(this: ITestContext) {
const chip2 = addMember(this.context.component, 'test2');
getNativeInput(this.context.component).focus();
dispatchKeydownEvent(getNativeInput(this.context.component), 'ArrowLeft');
const chip2IsActive = chip2.hasAttribute('focused');
const chip2IsActive = chip2.matches(':focus');
expect(chip2IsActive).toBeTrue();
});

Expand All @@ -1181,7 +1181,7 @@ describe('ChipFieldComponent', function(this: ITestContext) {
const chip2 = addMember(this.context.component, 'test2');
chip2.focus();
dispatchKeydownEvent(chip2, 'ArrowLeft');
const chip1IsActive = chip1.hasAttribute('focused');
const chip1IsActive = chip1.matches(':focus');
expect(chip1IsActive).toBeTrue();
});

Expand All @@ -1191,7 +1191,7 @@ describe('ChipFieldComponent', function(this: ITestContext) {
const chip2 = addMember(this.context.component, 'test2');
chip1.focus();
dispatchKeydownEvent(chip1, 'ArrowRight');
const chip2IsActive = chip2.hasAttribute('focused');
const chip2IsActive = chip2.matches(':focus');
expect(chip2IsActive).toBeTrue();
});

Expand Down

0 comments on commit 4fe3264

Please sign in to comment.