diff --git a/packages/integration-tests/src/tests/console/webhooks/helpers.ts b/packages/integration-tests/src/tests/console/webhooks/helpers.ts index 9d38da29f592..bfdfb03bdaf2 100644 --- a/packages/integration-tests/src/tests/console/webhooks/helpers.ts +++ b/packages/integration-tests/src/tests/console/webhooks/helpers.ts @@ -2,8 +2,8 @@ import { type Page } from 'puppeteer'; export const expectToCreateWebhook = async (page: Page) => { await expect(page).toClick('div[class$=main] div[class$=headline] > button'); - await expect(page).toClick('span[class$=label]', { text: 'Create new account' }); - await expect(page).toClick('span[class$=label]', { text: 'Sign in' }); + await expect(page).toClick('span[class$=label]', { text: 'PostRegister' }); + await expect(page).toClick('span[class$=label]', { text: 'User.Updated' }); await expect(page).toFill('input[name=name]', 'hook_name'); await expect(page).toFill('input[name=url]', 'https://localhost/webhook'); await expect(page).toClick('button[type=submit]'); diff --git a/packages/integration-tests/src/tests/console/webhooks/index.test.ts b/packages/integration-tests/src/tests/console/webhooks/index.test.ts index 4573c52f8de9..4ad99d4b8808 100644 --- a/packages/integration-tests/src/tests/console/webhooks/index.test.ts +++ b/packages/integration-tests/src/tests/console/webhooks/index.test.ts @@ -1,13 +1,13 @@ import { logtoConsoleUrl as logtoConsoleUrlString } from '#src/constants.js'; import { - goToAdminConsole, - expectToSaveChanges, - waitForToast, - expectToClickModalAction, - expectToClickDetailsPageOption, - expectModalWithTitle, expectConfirmModalAndAct, expectMainPageWithTitle, + expectModalWithTitle, + expectToClickDetailsPageOption, + expectToClickModalAction, + expectToSaveChanges, + goToAdminConsole, + waitForToast, } from '#src/ui-helpers/index.js'; import { appendPathname, dcls, expectNavigation } from '#src/utils.js'; @@ -63,8 +63,8 @@ describe('webhooks', () => { await expectNavigation(page.goto(appendPathname('/console/webhooks', logtoConsoleUrl).href)); await expect(page).toClick('div[class$=main] div[class$=headline] > button'); - await expect(page).toClick('span[class$=label]', { text: 'Create new account' }); - await expect(page).toClick('span[class$=label]', { text: 'Sign in' }); + await expect(page).toClick('span[class$=label]', { text: 'PostRegister' }); + await expect(page).toClick('span[class$=label]', { text: 'User.Create' }); await expect(page).toFill('input[name=name]', 'hook_name'); await expect(page).toFill('input[name=url]', 'http://localhost/webhook'); await expect(page).toClick('button[type=submit]');