Skip to content

Commit

Permalink
feat: add freebsd as an OS filter (#407)
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Rabson <[email protected]>
  • Loading branch information
dfr committed Dec 21, 2023
1 parent f4600b8 commit 1efa813
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/utilities/filterConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ const osFilters = [
{
label: 'linux',
value: 'linux'
},
{
label: 'freebsd',
value: 'freebsd'
}
];

Expand Down
8 changes: 7 additions & 1 deletion tests/explore.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,14 @@ test.describe('explore page test', () => {

await expect(exploreFirst).toBeVisible({ timeout: 250000 });

const windowsFilter = page.getByRole('checkbox', { name: 'windows' });
await linuxFilter.uncheck();
await page.getByRole('checkbox', { name: 'windows' }).check();
await windowsFilter.check();
await expect(exploreFirst).not.toBeVisible({ timeout: 250000 });

const freebsdFilter = page.getByRole('checkbox', { name: 'freebsd' });
await windowsFilter.uncheck();
await freebsdFilter.check();
await expect(exploreFirst).not.toBeVisible({ timeout: 250000 });
});
});

0 comments on commit 1efa813

Please sign in to comment.