Skip to content
Merged
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions apps/ehr/tests/e2e/specs/in-person/inPersonChartData.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,11 +672,11 @@ test.describe('In-Person Visit Chart Data', async () => {
// Check default text
await assessmentPage.expectMdmField({ text: '' });

// Edit the text
// Edit the text and wait for the debounced save to complete
const newText = 'Updated medical decision making text';
const saveResponsePromise = page.waitForResponse((resp) => resp.url().includes('save-chart-data'));
await assessmentPage.fillMdmField(newText);
await page.getByTestId(dataTestIds.assessmentCard.medicalDecisionLoading).waitFor({ state: 'visible' });
await page.getByTestId(dataTestIds.assessmentCard.medicalDecisionLoading).waitFor({ state: 'hidden' });
await saveResponsePromise;

// Verify text is updated
await assessmentPage.expectMdmField({ text: newText });
Expand Down
Loading