message: Test if signature field is shown/hidden properly
diff: @@ -83,4 +83,36 @@ describe('Generator component', () => {
  .should('have.attr', 'href')
  .and('contains', 'Date%3A%202222-02-22%0AMAGICSTRING%0ASECONDMAGICSTRING');
  });
  +
  + it('shows and hides the signature field according to the transport medium', () => {
  + cy.contains('Signature').should('not.exist');
  + cy.contains('Reset signature').should('not.exist');
  + cy.get('#signature').should('not.exist');
  +
  + cy.contains('Fax').click();
  +
  + cy.contains('Signature');
  + cy.contains('Reset signature');
  + cy.get('#signature');
  +
  + cy.contains('Email').click();
  +
  + // check if its hidden again
  + cy.contains('Signature').should('not.exist');
  + cy.contains('Reset signature').should('not.exist');
  + cy.get('#signature').should('not.exist');
  +
  + cy.contains('Letter').click();
  +
  + cy.contains('Signature');
  + cy.contains('Reset signature');
  + cy.get('#signature');
  +
  + cy.contains('Email').click();
  +
  + // check if its hidden again
  + cy.contains('Signature').should('not.exist');
  + cy.contains('Reset signature').should('not.exist');
  + cy.get('#signature').should('not.exist');
  + });
  });
  