Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix typo #6110

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/connectors/connector-alipay-native/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<UriInputField name="postLogoutRedirectUris" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});

Expand All @@ -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`
);
Expand All @@ -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])'
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
};
Expand Down Expand Up @@ -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])',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
} from './connector-setup-helpers.js';
import {
expectToSelectSignUpIdentifier,
expectNotificationInFiled,
expectNotificationInField,
expectSignUpIdentifierSelectorError,
expectToAddSignInMethod,
expectSignInMethodError,
Expand Down Expand Up @@ -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./,
});
Expand All @@ -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./,
});
Expand Down Expand Up @@ -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./,
});
Expand All @@ -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./,
});
Expand Down Expand Up @@ -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./,
});
Expand Down Expand Up @@ -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./,
});
Expand Down Expand Up @@ -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./,
});
Expand Down
Loading