Skip to content

Commit

Permalink
test: fix test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Oct 14, 2024
1 parent 5754b3e commit a4973b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions elements/rh-tile/test/rh-tile-group.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ describe('<rh-tile-group>', function() {
it('has only one checked radio button', async function() {
const snapshot = await a11ySnapshot();
expect(snapshot)
.to.axContainQuery({ role: 'radio', name: 'Tile 1', focused: false, checked: false }).and
.to.axContainQuery({ role: 'radio', name: 'Tile 2', checked: true }).and
.to.axContainQuery({ role: 'radio', name: 'Tile 1', checked: false }).and
.to.axContainQuery({ role: 'radio', name: 'Tile 2', checked: true, focused: true }).and
.to.axContainQuery({ role: 'radio', name: 'Tile 3', checked: false });
});
});
Expand All @@ -118,7 +118,7 @@ describe('<rh-tile-group>', function() {
const snapshot = await a11ySnapshot();
expect(snapshot)
.to.axContainQuery({ role: 'radio', name: 'Tile 1', focused: true, checked: false }).and
.to.axContainQuery({ role: 'radio', name: 'carreau numéro 2', checked: true }).and
.to.axContainQuery({ role: 'radio', name: 'carreau numéro 2', checked: false }).and
.to.axContainQuery({ role: 'radio', name: 'Tile 3', checked: false });
});
});
Expand Down
2 changes: 1 addition & 1 deletion elements/rh-tile/test/rh-tile.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe('<rh-tile>', function() {
it('has a checkbox', async function() {
const snapshot = await a11ySnapshot();
expect(snapshot).to.axContainRole('checkbox');
expect(snapshot.children).to.have.length(0);
expect(snapshot.children).to.have.length(1);
});

describe('pressing Enter', async function() {
Expand Down
2 changes: 1 addition & 1 deletion elements/rh-video-embed/test/rh-video-embed.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('<rh-video-embed>', function() {

it('thumbnail button is in a11y tree', async function() {
const snapshot = await a11ySnapshot();
expect(snapshot).to.axContainName('fakethumbk');
expect(snapshot).to.axContainName('fakethumb');
});

it('shows thumbnail', function() {
Expand Down

0 comments on commit a4973b9

Please sign in to comment.