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
5 changes: 3 additions & 2 deletions airflow/ui/test/Pipelines.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,11 @@ describe('Test Pipelines Table', () => {

await waitFor(() => expect(getByText(sampleDag.dagId)).toBeInTheDocument());
const toggle = getByRole('switch');
expect(toggle.firstChild?.checked).toBeTruthy();
const input = toggle.querySelector('input') as HTMLInputElement;
expect(input.checked).toBeTruthy();
fireEvent.click(toggle);
// 'Dag Updated' is the toast confirming the change happened
await waitFor(() => expect(getByText('Pipeline Updated')).toBeInTheDocument());
await waitFor(() => expect(toggle.firstChild?.checked).toBeFalsy());
await waitFor(() => expect(input.checked).toBeFalsy());
});
});