Skip to content

Commit

Permalink
fix: hasMany integ test
Browse files Browse the repository at this point in the history
  • Loading branch information
bombguy committed Nov 30, 2022
1 parent 97b2c4d commit 927d61b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,6 @@ describe('CreateForms', () => {
});
clickAddToArray();

// HasMany Autocomplete
getArrayFieldButtonByLabel('Has many students').click();
cy.get(`.amplify-autocomplete`).within(() => {
cy.get('input').type(`{downArrow}{enter}`);
});
clickAddToArray();

getArrayFieldButtonByLabel('Has many students').click();
cy.get(`.amplify-autocomplete`).within(() => {
cy.get('input').type(`Sa{downArrow}{enter}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,14 @@ export default function CreateFormTests() {
return promises;
}, []),
);
// sort to make sure order
ManyToManyTags.sort((a, b) => a.label?.localeCompare(b.label as string) as number);

setDataStoreFormCreateAllSupportedFormFieldsRecord(
JSON.stringify({
...record,
HasOneUser: await record.HasOneUser,
BelongsToOwner: await record.BelongsToOwner,
HasManyStudents: await record.HasManyStudents?.toArray(),
HasManyStudents: await record.HasManyStudents,
ManyToManyTags,
}),
);
Expand Down

0 comments on commit 927d61b

Please sign in to comment.