diff --git a/src/__tests__/SystemFields.cy.ts b/src/__tests__/SystemFields.cy.ts index 3d9f620..06d760d 100644 --- a/src/__tests__/SystemFields.cy.ts +++ b/src/__tests__/SystemFields.cy.ts @@ -18,9 +18,9 @@ describe('SystemFields - no data', () => { mount(TestComponent); }); - it('has an empty status field', () => { + it('hides the status field when empty', () => { mount(TestComponent); - cy.dataCy('systemfield-status').should('have.text', 'Status: -'); + cy.dataCy('systemfield-status').should('not.exist'); }); it('has an empty aangemaakt door field', () => { diff --git a/src/components/dumb/SystemFields.vue b/src/components/dumb/SystemFields.vue index 421db07..fe09fbd 100644 --- a/src/components/dumb/SystemFields.vue +++ b/src/components/dumb/SystemFields.vue @@ -1,6 +1,6 @@