diff --git a/generators/entity-client/templates/common/src/test/javascript/cypress/integration/entity/entity.spec.ts.ejs b/generators/entity-client/templates/common/src/test/javascript/cypress/integration/entity/entity.spec.ts.ejs index 2ce529404e6..3e15ff576ec 100644 --- a/generators/entity-client/templates/common/src/test/javascript/cypress/integration/entity/entity.spec.ts.ejs +++ b/generators/entity-client/templates/common/src/test/javascript/cypress/integration/entity/entity.spec.ts.ejs @@ -55,7 +55,7 @@ describe('<%= entityClass %> e2e test', () => { <%_ } _%> beforeEach(() => { - cy.intercept('GET', '/<%= baseApi + entityApiUrl %>+(?*)').as('entitiesRequest'); + cy.intercept('GET', '/<%= baseApi + entityApiUrl %>').as('entitiesRequest'); cy.intercept('POST', '/<%= baseApi + entityApiUrl %>').as('postEntityRequest'); cy.intercept('DELETE', '/<%= baseApi + entityApiUrl %>/*').as('deleteEntityRequest'); });