Skip to content
Merged
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0a90b43
feature
fzhao99 Jun 17, 2026
a5f3758
new files
fzhao99 Jun 17, 2026
0836bff
Merge branch 'bob/840-cg-to-snomed-search' into bob/840-cg-snomed-map…
fzhao99 Jun 17, 2026
b371573
code gen new files
fzhao99 Jun 17, 2026
2295f26
add a test
fzhao99 Jun 17, 2026
514a441
a name
fzhao99 Jun 17, 2026
4245310
split apart values
fzhao99 Jun 17, 2026
6bbf222
revert to old summary query
fzhao99 Jun 17, 2026
ecc79be
merge
fzhao99 Jun 17, 2026
df4c4b4
fix test pt 1
fzhao99 Jun 17, 2026
1bc4e54
Merge branch 'main' into bob/840-cg-snomed-mapping
fzhao99 Jun 17, 2026
a7a3543
prune extra fields
fzhao99 Jun 17, 2026
b1da0d7
fix test pt 2
fzhao99 Jun 17, 2026
c87336d
fix button styling
fzhao99 Jun 17, 2026
c55e3c5
lint
fzhao99 Jun 17, 2026
b88426b
lint pt 2
fzhao99 Jun 17, 2026
a27ee60
test pt 3
fzhao99 Jun 17, 2026
09b3b1d
pull styles into export
fzhao99 Jun 17, 2026
544e5e3
fix spacing and alignment
fzhao99 Jun 17, 2026
0b3fbec
revert button styles split
fzhao99 Jun 17, 2026
7a3ec72
pr feedback pt 1
fzhao99 Jun 17, 2026
e928945
fix interface
fzhao99 Jun 17, 2026
d7efdce
Merge branch 'main' into bob/840-cg-snomed-mapping
fzhao99 Jun 17, 2026
340ce95
more spacing
fzhao99 Jun 18, 2026
1f446ac
Merge branch 'bob/840-cg-snomed-mapping' of https://github.com/CDCgov…
fzhao99 Jun 18, 2026
361f382
simplify banner dismissal functions
fzhao99 Jun 22, 2026
e51ec9f
pr feedback
fzhao99 Jun 22, 2026
e7fe6a3
Merge branch 'main' into bob/840-cg-snomed-mapping
fzhao99 Jun 22, 2026
8bad0f7
install
fzhao99 Jun 22, 2026
2420d0f
reinstall lock
fzhao99 Jun 22, 2026
dc95d63
recreate after removal
fzhao99 Jun 22, 2026
fa24712
fix backend test
fzhao99 Jun 22, 2026
2309194
revert to old response pattern
fzhao99 Jun 22, 2026
320da0b
rebuild package json
fzhao99 Jun 22, 2026
fc55cfc
fix import
fzhao99 Jun 22, 2026
fcdf470
Merge branch 'main' into bob/840-cg-snomed-mapping
fzhao99 Jun 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 36 additions & 2 deletions client/e2e/configurations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,43 @@ test.describe('Configurations screen', () => {
})
).toBeVisible();
await expect(page.getByRole('searchbox')).not.toBeVisible();
const setupConfigurationButton = page.getByRole('button', {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice tests πŸ‘

name: 'Set up new configuration',
});

await expect(setupConfigurationButton).toBeEnabled();

// test the setup comboxbox search
await setupConfigurationButton.click();
await expect(
page.getByRole('heading', { name: 'Set up new configuration' })
).toBeVisible();
const conditionInput = page.getByLabel('Select condition');

await conditionInput.fill('COVID');
await expect(page.getByRole('option', { name: 'COVID-19' })).toBeVisible();
// by CG code
await conditionInput.clear();
await conditionInput.fill('1001411000124108');
await expect(page.getByRole('option', { name: 'COVID-19' })).toBeVisible();

// by CG display
await conditionInput.clear();
await conditionInput.fill(
'Death associated with disease caused by severe acute respiratory syndrome coronavirus 2 (event)'
);
await expect(page.getByRole('option', { name: 'COVID-19' })).toBeVisible();
await page.getByRole('option', { name: 'COVID-19' }).click();

await expect(page.getByText('COVID-19')).toBeVisible();
await expect(page.getByText('1001411000124108')).toBeVisible();
await expect(
page.getByRole('button', { name: 'Set up new configuration' })
).toBeEnabled();
page.getByText(
'Death associated with disease caused by severe acute respiratory syndrome coronavirus 2 (event)'
)
).toBeVisible();
await page.getByRole('button', { name: 'Close this window' }).click();

await expect(page.locator('table tbody tr')).toHaveCount(1);
await expect(page.getByRole('cell')).toHaveText(
'No configurations available'
Expand Down
6 changes: 6 additions & 0 deletions client/e2e/fixtures/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ type Configuration = {
name: string;
};

type CodedConcept = {
code: string;
display: string;
};

type Condition = {
id: string;
display_name: string;
rsg_codes: CodedConcept[];
};

type CustomCode = {
Expand Down
Loading
Loading