Skip to content

Commit

Permalink
Skip cypress test if entity has a required relationship with a derive…
Browse files Browse the repository at this point in the history
…d primary key.
  • Loading branch information
mshima authored and emilpaw committed Mar 16, 2022
1 parent e3df699 commit a813573
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const otherEntities = _.uniq(Object.values(differentRelationships).filter(rels =
const skipCreateTest =
(
!cypressBootstrapEntities ||
requiredRelationships.some(rel => rel.otherEntity.primaryKey && rel.otherEntity.primaryKey.derived) ||
requiredRelationships.some(rel => rel.otherEntity.builtInUser || rel.otherEntity === this.entity) ||
requiredRelationships.map(rel => rel.otherEntity.relationships).flat().some(rel => rel.relationshipRequired) ||
!entityFakeData
Expand Down

0 comments on commit a813573

Please sign in to comment.