Skip to content

Commit

Permalink
Remove "Swarming" from one more place in the UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Mar 6, 2024
1 parent e58d2c2 commit cf69f94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions locust/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ <h2>Edit running load test</h2>
<input type="text" name="spawn_rate" id="new_spawn_rate" class="val" value="{{ spawn_rate or "1" }}" onfocus="this.select()"/><br>
{% endif %}
{% if hide_common_options %}
<button type="submit" disabled>Start swarming</button>
<button type="submit" disabled>Start</button>
{% else %}
<button type="submit">Start swarming</button>
<button type="submit">Start</button>
{% endif %}
</form>
<div style="clear:right;"></div>
Expand Down
10 changes: 5 additions & 5 deletions locust/webui/src/components/SwarmForm/tests/SwarmForm.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('SwarmForm', () => {
const { getByText } = renderWithProvider(<SwarmForm />);

act(() => {
fireEvent.click(getByText('Start Swarm'));
fireEvent.click(getByText('Start'));
});

await waitFor(async () => {
Expand Down Expand Up @@ -74,7 +74,7 @@ describe('SwarmForm', () => {
target: { value: 'https://localhost:5000' },
});

fireEvent.click(getByText('Start Swarm'));
fireEvent.click(getByText('Start'));
});

await waitFor(async () => {
Expand Down Expand Up @@ -121,7 +121,7 @@ describe('SwarmForm', () => {
fireEvent.click(getAllByRole('checkbox')[2]);
});
act(() => {
fireEvent.click(getByText('Start Swarm'));
fireEvent.click(getByText('Start'));
});

await waitFor(async () => {
Expand Down Expand Up @@ -168,7 +168,7 @@ describe('SwarmForm', () => {
});

act(() => {
fireEvent.click(getByText('Start Swarm'));
fireEvent.click(getByText('Start'));
});

await waitFor(() => {
Expand Down Expand Up @@ -225,7 +225,7 @@ describe('SwarmForm', () => {
target: { value: 'Option2' },
});

fireEvent.click(getByText('Start Swarm'));
fireEvent.click(getByText('Start'));
});

await waitFor(async () => {
Expand Down

0 comments on commit cf69f94

Please sign in to comment.