💬 Update submit button text (#522)

This commit is contained in:
Luke Vella 2023-02-24 11:30:36 +05:30 committed by GitHub
parent 584fc85297
commit d66663a1f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 3 deletions

View file

@ -62,6 +62,7 @@
"logout": "Logout", "logout": "Logout",
"manage": "Manage", "manage": "Manage",
"menu": "Menu", "menu": "Menu",
"submit": "Submit",
"mixedOptionsDescription": "You can't have both time and date options in the same poll. Which would you like to keep?", "mixedOptionsDescription": "You can't have both time and date options in the same poll. Which would you like to keep?",
"mixedOptionsKeepDates": "Keep date options", "mixedOptionsKeepDates": "Keep date options",
"mixedOptionsKeepTimes": "Keep time options", "mixedOptionsKeepTimes": "Keep time options",

View file

@ -143,7 +143,7 @@ export const NewParticipantModal = (props: NewParticipantModalProps) => {
type="primary" type="primary"
loading={formState.isSubmitting} loading={formState.isSubmitting}
> >
{t("save")} {t("submit")}
</Button> </Button>
</div> </div>
</form> </form>

View file

@ -14,7 +14,7 @@ test("should be able to vote and comment on a poll", async ({ page }) => {
await page.getByText("Continue").click(); await page.getByText("Continue").click();
await page.getByPlaceholder("Jessie Smith").type("Test user"); 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(page.locator("data-testid=user")).toBeVisible();
await expect( await expect(

View file

@ -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.click("button >> text='Continue'");
await page.type('[placeholder="Jessie Smith"]', "Test user"); 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(page.locator("text='Test user'")).toBeVisible();
await expect( await expect(