File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
generators/cypress/templates/src/test/javascript/cypress/e2e/entity Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,7 @@ describe('<%= entityClass %> e2e test', () => {
275275
276276< % _ } _% >
277277< % _ if (! readOnly) { _% >
278+ < % if (skipCreateTest) { % > // Reason: cannot create a required entity with relationship with required relationships.<% } %>
278279 it< %= skipCreateTest % > (' last delete button click should delete instance of <%= entityClass %>' , () => {
279280 < % _ if (clientFrameworkReact) { _% >
280281 cy .intercept (' GET' , ' /<%= baseApi + entityApiUrl %>/*' ).as (' dialogDeleteRequest' );
@@ -308,6 +309,7 @@ describe('<%= entityClass %> e2e test', () => {
308309 cy .getEntityCreateUpdateHeading (' <%= entityClass %>' );
309310 });
310311
312+ < % if (skipCreateTest) { % > // Reason: cannot create a required entity with relationship with required relationships.<% } %>
311313 it< %= skipCreateTest % > (' should create an instance of <%= entityClass %>' , () => {
312314 < % _ fields .filter (field => (! field .id || ! field .autoGenerate ) && ! field .hidden && ! field .readonly ).forEach ((field ) => {
313315 const fieldName = field .fieldName ;
You can’t perform that action at this time.
0 commit comments