Skip to content

Commit 1ca78db

Browse files
authored
cypress: add reason to skipped tests (#28083)
1 parent 824a152 commit 1ca78db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

generators/cypress/templates/src/test/javascript/cypress/e2e/entity/_entity_.cy.ts.ejs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)