Skip to content

Commit

Permalink
Change UI button texts from Start Swarming / Update Swarm to just Sta…
Browse files Browse the repository at this point in the history
…rt / Update.
  • Loading branch information
cyberw committed Mar 6, 2024
1 parent 00e2e29 commit e58d2c2
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion locust/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h2>Start new load test</h2>
{{key}}<br>
{% endif %}
{% endfor %}
<button type="submit">Start swarming</button>
<button type="submit">Start</button>
</form>
<div style="clear:right;margin-bottom: 60px;"></div>
</div>
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion locust/webui/dist/auth.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="theme-color" content="#000000" />

<title>Locust</title>
<script type="module" crossorigin src="./assets/index-0d6d578a.js"></script>
<script type="module" crossorigin src="./assets/index-5328b7d2.js"></script>
</head>
<body>
<div id="root"></div>
Expand Down
2 changes: 1 addition & 1 deletion locust/webui/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="theme-color" content="#000000" />

<title>Locust</title>
<script type="module" crossorigin src="./assets/index-0d6d578a.js"></script>
<script type="module" crossorigin src="./assets/index-5328b7d2.js"></script>
</head>
<body>
<div id="root"></div>
Expand Down
2 changes: 1 addition & 1 deletion locust/webui/src/components/SwarmForm/SwarmEditForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function SwarmEditForm({ onSubmit, numUsers, spawnRate }: ISwarmForm) {
/>

<Button size='large' type='submit' variant='contained'>
Update Swarm
Update
</Button>
</Box>
</Form>
Expand Down
2 changes: 1 addition & 1 deletion locust/webui/src/components/SwarmForm/SwarmForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function SwarmForm({
</Accordion>
{!isEmpty(extraOptions) && <CustomParameters extraOptions={extraOptions} />}
<Button size='large' type='submit' variant='contained'>
Start Swarm
Start
</Button>
</Box>
</Form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('SwarmEditForm', () => {
target: { value: '10' },
});

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

await waitFor(async () => {
Expand Down

0 comments on commit e58d2c2

Please sign in to comment.