Skip to content

Commit

Permalink
[WM-2484] Make test not flaky (#4636)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpierre13 authored Feb 8, 2024
1 parent 72c80e5 commit 0704eff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/workspaces/workspace/workflows/WorkflowView.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { act, screen } from '@testing-library/react';
import { act, fireEvent, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { h } from 'react-hyperscript-helpers';
import { Ajax } from 'src/libs/ajax';
Expand Down Expand Up @@ -331,7 +331,7 @@ describe('Workflow View (GCP)', () => {
await user.click(okButton);

const attributeTextbox = screen.getByRole('textbox', { name: /echo_to_file input1 attribute/i });
await user.type(attributeTextbox, 'this.string');
fireEvent.change(attributeTextbox, { target: { value: 'this.string' } });

const saveButton = screen.getAllByRole('button').filter((button) => button.textContent.includes('Save'))[0];
await user.click(saveButton);
Expand Down

0 comments on commit 0704eff

Please sign in to comment.