From 2144d649402e6bcc2954edfcae84694e93f0477d Mon Sep 17 00:00:00 2001 From: Bobbykumar706584 Date: Mon, 9 Oct 2023 17:17:56 +0530 Subject: [PATCH] updating text tranaltion license --- e2e-tests/base.test.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/e2e-tests/base.test.ts b/e2e-tests/base.test.ts index f26923f52..ac27c5483 100644 --- a/e2e-tests/base.test.ts +++ b/e2e-tests/base.test.ts @@ -334,6 +334,19 @@ test("Update/Edit text transaltion project scope custom book genesis and exodus expect(await title).toBe('Projects') }) +test("Update/Edit text translation project license", async ({ textProject }) => { + await goToEditProject(window, expect, textProject) + await expect(window.locator('//button[@id="open-advancesettings"]')).toBeVisible() + await window.locator('//button[@id="open-advancesettings"]').click() + await window.getByRole('button', { name: 'CC BY-SA' }).click() + await window.getByRole('option', { name: 'CC BY', exact: true }).click() + await expect(window.locator('//button[@aria-label="save-edit-project"]')).toBeVisible() + await window.locator('//button[@aria-label="save-edit-project"]').click() + await window.waitForTimeout(3000) + const title = await window.textContent('[aria-label=projects]'); + expect(await title).toBe('Projects') +}) + /*signing out */ test("Sign out the Application", async () => {