diff --git a/packages/connectors/connector-alipay-native/README.md b/packages/connectors/connector-alipay-native/README.md index c48d77debbb2..ef6ac9a20b59 100644 --- a/packages/connectors/connector-alipay-native/README.md +++ b/packages/connectors/connector-alipay-native/README.md @@ -68,7 +68,7 @@ Alipay Native connector works closely with Logto SDK on mobile platforms. It tak 3. Fill out the Logto connector settings: - Fill out the `appId` field with APPID you've got from step 1. - Fill out the `privateKey` field with contents from the private key file mentioned in step 2. Please MAKE SURE to use '\n' to replace all newline characters. You don't need to remove header and footer in private key file. - - Fill out the `signType` filed with 'RSA2' due to the `Public key` signing mode we chose in step 7 of "Create And Configure Alipay Apps". + - Fill out the `signType` field with 'RSA2' due to the `Public key` signing mode we chose in step 7 of "Create And Configure Alipay Apps". ### Config types diff --git a/packages/connectors/connector-huggingface/src/index.test.ts b/packages/connectors/connector-huggingface/src/index.test.ts index e0b79e4904c9..7c2ce1978380 100644 --- a/packages/connectors/connector-huggingface/src/index.test.ts +++ b/packages/connectors/connector-huggingface/src/index.test.ts @@ -91,7 +91,7 @@ describe('Hugging Face connector', () => { nock.cleanAll(); nock(tokenEndpoint).post('').reply(200, { - invalid_filed: true, + invalid_field: true, }); const connector = await createConnector({ getConfig }); diff --git a/packages/console/src/assets/docs/guides/web-go/README.mdx b/packages/console/src/assets/docs/guides/web-go/README.mdx index 3044cb21d9d4..00e6aab80c2e 100644 --- a/packages/console/src/assets/docs/guides/web-go/README.mdx +++ b/packages/console/src/assets/docs/guides/web-go/README.mdx @@ -300,7 +300,7 @@ func main() { Similar to the sign-in flow, when the user signs out, Logto will redirect the user to the post sign-out redirect URI. -Assuming that you add `http://localhost:8080` to the Post Sign-out Redirect URI filed, Logto will redirect the user to the home page after signing out. +Assuming that you add `http://localhost:8080` to the Post Sign-out Redirect URI field, Logto will redirect the user to the home page after signing out. diff --git a/packages/console/src/pages/SignInExperience/PageContent/Content/LanguagesForm/ManageLanguage/LanguageEditor/LanguageDetails.tsx b/packages/console/src/pages/SignInExperience/PageContent/Content/LanguagesForm/ManageLanguage/LanguageEditor/LanguageDetails.tsx index d46e47ce1e76..fe64750ba4db 100644 --- a/packages/console/src/pages/SignInExperience/PageContent/Content/LanguagesForm/ManageLanguage/LanguageEditor/LanguageDetails.tsx +++ b/packages/console/src/pages/SignInExperience/PageContent/Content/LanguagesForm/ManageLanguage/LanguageEditor/LanguageDetails.tsx @@ -108,7 +108,7 @@ function LanguageDetails() { setIsDirty(isFormStateDirty && Object.keys(dirtyFields).length > 0); }, [ /** - * Note: `isDirty` is used to trigger this `useEffect`; for `dirtyFields` object only marks filed dirty at field level. + * Note: `isDirty` is used to trigger this `useEffect`; for `dirtyFields` object only marks field dirty at field level. * When `dirtyFields` is changed from `{keyA: false}` to `{keyA: true}`, this `useEffect` won't be triggered. */ isFormStateDirty, diff --git a/packages/integration-tests/src/tests/console/applications/index.test.ts b/packages/integration-tests/src/tests/console/applications/index.test.ts index b8c880f015fd..b96eefbdafd2 100644 --- a/packages/integration-tests/src/tests/console/applications/index.test.ts +++ b/packages/integration-tests/src/tests/console/applications/index.test.ts @@ -165,13 +165,13 @@ describe('applications', () => { await expectToSaveChanges(page); await waitForToast(page, { text: 'Saved' }); - const redirectUriFiled = await expect(page).toMatchElement( + const redirectUriField = await expect(page).toMatchElement( 'div[class$=field]:has(>div[class$=headline]>div[class$=title]', { text: 'Redirect URIs' } ); // Add and remove redirect uri - await expect(redirectUriFiled).toClick('div[class$=multilineInput]>button>span', { + await expect(redirectUriField).toClick('div[class$=multilineInput]>button>span', { text: 'Add another', }); @@ -180,7 +180,7 @@ describe('applications', () => { 'div:has(>div[class$=deletableInput]):last-of-type button:has(svg[class$=minusIcon])' ); - await expect(redirectUriFiled).toFill( + await expect(redirectUriField).toFill( 'div:has(>div[class$=deletableInput]):last-of-type input', `${testApp.redirectUri}/v2` ); @@ -190,7 +190,7 @@ describe('applications', () => { await waitForToast(page, { text: 'Saved' }); // Click delete button - await expect(redirectUriFiled).toClick( + await expect(redirectUriField).toClick( 'div:has(>div[class$=deletableInput]):last-of-type button:has(svg[class$=minusIcon])' ); diff --git a/packages/integration-tests/src/tests/console/sign-in-experience/sign-up-and-sign-in/helpers.ts b/packages/integration-tests/src/tests/console/sign-in-experience/sign-up-and-sign-in/helpers.ts index b18de8c067c2..ef563acb7cfe 100644 --- a/packages/integration-tests/src/tests/console/sign-in-experience/sign-up-and-sign-in/helpers.ts +++ b/packages/integration-tests/src/tests/console/sign-in-experience/sign-up-and-sign-in/helpers.ts @@ -31,14 +31,14 @@ export const expectToSelectSignUpIdentifier = async (page: Page, identifier: str }; export const expectToClickSignUpAuthnOption = async (page: Page, option: string) => { - const signUpAuthnSettingsFiled = await expect(page).toMatchElement( + const signUpAuthnSettingsField = await expect(page).toMatchElement( 'div[class$=field]:has(div[class$=headline] > div[class$=title])', { text: 'Authentication setting for sign-up', } ); - await expect(signUpAuthnSettingsFiled).toClick('div[class$=selections] span[class$=label]', { + await expect(signUpAuthnSettingsField).toClick('div[class$=selections] span[class$=label]', { text: option, }); }; @@ -126,14 +126,14 @@ export const expectSignInMethodError = async (page: Page, method: string) => { ); }; -type ExpectNotificationOnFiledOptions = { +type ExpectNotificationOnFieldOptions = { field: string; content?: RegExp | string; }; -export const expectNotificationInFiled = async ( +export const expectNotificationInField = async ( page: Page, - { field, content }: ExpectNotificationOnFiledOptions + { field, content }: ExpectNotificationOnFieldOptions ) => { const signInMethodsField = await expect(page).toMatchElement( 'div[class$=field]:has(div[class$=headline] > div[class$=title])', diff --git a/packages/integration-tests/src/tests/console/sign-in-experience/sign-up-and-sign-in/sad-path.test.ts b/packages/integration-tests/src/tests/console/sign-in-experience/sign-up-and-sign-in/sad-path.test.ts index 1f86825f4ef2..288fee655cba 100644 --- a/packages/integration-tests/src/tests/console/sign-in-experience/sign-up-and-sign-in/sad-path.test.ts +++ b/packages/integration-tests/src/tests/console/sign-in-experience/sign-up-and-sign-in/sad-path.test.ts @@ -16,7 +16,7 @@ import { } from './connector-setup-helpers.js'; import { expectToSelectSignUpIdentifier, - expectNotificationInFiled, + expectNotificationInField, expectSignUpIdentifierSelectorError, expectToAddSignInMethod, expectSignInMethodError, @@ -62,7 +62,7 @@ describe('sign-in experience(sad path): sign-up and sign-in', () => { // Disable password settings for sign-up settings await expectToClickSignUpAuthnOption(page, 'Create your password'); - await expectNotificationInFiled(page, { + await expectNotificationInField(page, { field: 'Sign-up identifier', content: /No email connector set-up yet./, }); @@ -79,7 +79,7 @@ describe('sign-in experience(sad path): sign-up and sign-in', () => { it('should fail to add phone number sign-in method', async () => { await expectToAddSignInMethod(page, 'Phone number'); - await expectNotificationInFiled(page, { + await expectNotificationInField(page, { field: 'Identifier and authentication settings for sign-in', content: /No SMS connector set-up yet./, }); @@ -118,7 +118,7 @@ describe('sign-in experience(sad path): sign-up and sign-in', () => { // Disable password settings for sign-up settings await expectToClickSignUpAuthnOption(page, 'Create your password'); - await expectNotificationInFiled(page, { + await expectNotificationInField(page, { field: 'Sign-up identifier', content: /No SMS connector set-up yet./, }); @@ -135,7 +135,7 @@ describe('sign-in experience(sad path): sign-up and sign-in', () => { it('should fail to add email address sign-in method', async () => { await expectToAddSignInMethod(page, 'Email address'); - await expectNotificationInFiled(page, { + await expectNotificationInField(page, { field: 'Identifier and authentication settings for sign-in', content: /No email connector set-up yet./, }); @@ -166,7 +166,7 @@ describe('sign-in experience(sad path): sign-up and sign-in', () => { describe('social sign-in', () => { it('should display no social connector notification in social sign-in field', async () => { - await expectNotificationInFiled(page, { + await expectNotificationInField(page, { field: 'Social sign-in', content: /You haven’t set up any social connector yet./, }); @@ -210,7 +210,7 @@ describe('sign-in experience(sad path): sign-up and sign-in', () => { it('should fail to add phone number sign-in method', async () => { await expectToAddSignInMethod(page, 'Phone number'); - await expectNotificationInFiled(page, { + await expectNotificationInField(page, { field: 'Identifier and authentication settings for sign-in', content: /No SMS connector set-up yet./, }); @@ -275,7 +275,7 @@ describe('sign-in experience(sad path): sign-up and sign-in', () => { it('should fail to add email sign-in method', async () => { await expectToAddSignInMethod(page, 'Email address'); - await expectNotificationInFiled(page, { + await expectNotificationInField(page, { field: 'Identifier and authentication settings for sign-in', content: /No email connector set-up yet./, });