Skip to content

Commit

Permalink
[frontend] fix e2e (1)
Browse files Browse the repository at this point in the history
  • Loading branch information
labo-flg committed Sep 13, 2024
1 parent 1bfdd81 commit c7ab85f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import ObjectAssigneeField from '../../common/form/ObjectAssigneeField';
import { useSchemaCreationValidation } from '../../../../utils/hooks/useEntitySettings';
import { Option } from '../../common/form/ReferenceField';
import type { Theme } from '../../../../components/Theme';
import { ReportCreationMutation, ReportCreationMutation$variables } from './__generated__/ReportCreationMutation.graphql';
import { ReportCreationMutation, ReportAddInput } from './__generated__/ReportCreationMutation.graphql';
import useDefaultValues from '../../../../utils/hooks/useDefaultValues';
import RichTextField from '../../../../components/fields/RichTextField';
import ObjectParticipantField from '../../common/form/ObjectParticipantField';
Expand Down Expand Up @@ -127,7 +127,7 @@ export const ReportCreationForm: FunctionComponent<ReportFormProps> = ({
values,
{ setSubmitting, setErrors, resetForm },
) => {
const input: ReportCreationMutation$variables['input'] = {
const input = {
name: values.name,
description: values.description,
content: values.content,
Expand All @@ -142,7 +142,7 @@ export const ReportCreationForm: FunctionComponent<ReportFormProps> = ({
objectLabel: values.objectLabel.map((v) => v.value),
externalReferences: values.externalReferences.map(({ value }) => value),
file: values.file,
};
} as ReportAddInput;
commit({
variables: {
input,
Expand Down Expand Up @@ -185,7 +185,7 @@ export const ReportCreationForm: FunctionComponent<ReportFormProps> = ({
objectLabel: [],
externalReferences: [],
file: undefined,
});
} as ReportAddInput);
return (
<Formik<ReportAddInput>
initialValues={initialValues}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import TextFieldPageModel from '../field/TextField.pageModel';
import FileFieldPageModel from '../field/FileField.pageModel';

export default class ReportFormPage {
nameField = new TextFieldPageModel(this.page, 'Name', 'text');
nameField = new TextFieldPageModel(this.page, 'Name', 'text-no-label');
contentField = new TextFieldPageModel(this.page, 'Content', 'rich-content');
descriptionField = new TextFieldPageModel(this.page, 'Description', 'text-area');

Expand Down

0 comments on commit c7ab85f

Please sign in to comment.