Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

💬 Update submit button text (#522)

Luke Vellad66663a1f121
diff --git a/public/locales/en/app.json b/public/locales/en/app.json
index b59570b8c..33708f01f 100644
--- a/public/locales/en/app.json
+++ b/public/locales/en/app.json
@@ -62,6 +62,7 @@
"logout": "Logout",
"manage": "Manage",
"menu": "Menu",
+ "submit": "Submit",
"mixedOptionsDescription": "You can't have both time and date options in the same poll. Which would you like to keep?",
"mixedOptionsKeepDates": "Keep date options",
"mixedOptionsKeepTimes": "Keep time options",
diff --git a/src/components/new-participant-modal.tsx b/src/components/new-participant-modal.tsx
index 01f57898c..a7fbe9678 100644
--- a/src/components/new-participant-modal.tsx
+++ b/src/components/new-participant-modal.tsx
@@ -143,7 +143,7 @@ export const NewParticipantModal = (props: NewParticipantModalProps) => {
type="primary"
loading={formState.isSubmitting}
>
- {t("save")}
+ {t("submit")}
</Button>
</div>
</form>
diff --git a/tests/mobile-test.spec.ts b/tests/mobile-test.spec.ts
index fcf2ae4a4..f9ba06d37 100644
--- a/tests/mobile-test.spec.ts
+++ b/tests/mobile-test.spec.ts
@@ -14,7 +14,7 @@ test("should be able to vote and comment on a poll", async ({ page }) => {
await page.getByText("Continue").click();
await page.getByPlaceholder("Jessie Smith").type("Test user");
- await page.getByText("Save").click();
+ await page.getByText(/^Submit$/).click();
await expect(page.locator("data-testid=user")).toBeVisible();
await expect(
diff --git a/tests/vote-and-comment.spec.ts b/tests/vote-and-comment.spec.ts
index 8661a9eb0..208c81e02 100644
--- a/tests/vote-and-comment.spec.ts
+++ b/tests/vote-and-comment.spec.ts
@@ -18,7 +18,7 @@ test("should be able to vote and comment on a poll", async ({ page }) => {
await page.click("button >> text='Continue'");
await page.type('[placeholder="Jessie Smith"]', "Test user");
- await page.click("text='Save'");
+ await page.click("text='Submit'");
await expect(page.locator("text='Test user'")).toBeVisible();
await expect(