Skip to content

Commit 1c4c917

Browse files
committed
Renamed button label
1 parent 645f5b9 commit 1c4c917

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/lib/components/projects/ProjectsList.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,6 @@
200200
</svelte:fragment>
201201
<svelte:fragment slot="footer">
202202
<button class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
203-
<button class="btn btn-primary" form="create-project-form">Confirm</button>
203+
<button class="btn btn-primary" form="create-project-form">Create</button>
204204
</svelte:fragment>
205205
</Modal>

tests/create_project.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test('Create and delete a project', async ({ page }) => {
1717
// Fill form and submit
1818
const projectNameInput = page.getByLabel('Project name');
1919
await projectNameInput.fill(randomProjectName);
20-
const createProjectBtn = page.locator('.modal.show').getByRole('button', { name: 'Confirm' });
20+
const createProjectBtn = page.locator('.modal.show').getByRole('button', { name: 'Create' });
2121
await createProjectBtn.click();
2222

2323
// Verify that the user is redirected to the project page
@@ -76,7 +76,7 @@ test('Create and delete a project', async ({ page }) => {
7676
// Fill form and submit
7777
const projectNameInput = page.getByLabel('Project name');
7878
await projectNameInput.fill(randomProjectName);
79-
const createProjectBtn = page.locator('.modal.show').getByRole('button', { name: 'Confirm' });
79+
const createProjectBtn = page.locator('.modal.show').getByRole('button', { name: 'Create' });
8080
await createProjectBtn.click();
8181

8282
// Check validation error

tests/login_logout.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ test.describe(() => {
6060
await modalTitle.waitFor();
6161
const projectNameInput = page.getByLabel('Project name');
6262
await projectNameInput.fill('unauthorized');
63-
const createProjectBtn = page.locator('.modal.show').getByRole('button', { name: 'Confirm' });
63+
const createProjectBtn = page.locator('.modal.show').getByRole('button', { name: 'Create' });
6464
await createProjectBtn.click();
6565
await page.waitForURL('/auth/login?invalidate=true');
6666
await verifySessionExpiredMessage(page);

tests/project_fixture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class PageWithProject {
2626
await projectNameInput.fill(this.projectName);
2727
const createProjectBtn = this.page
2828
.locator('.modal.show')
29-
.getByRole('button', { name: 'Confirm' });
29+
.getByRole('button', { name: 'Create' });
3030
await createProjectBtn.click();
3131

3232
// Verify that the user is redirected to the project page

0 commit comments

Comments
 (0)