https://cypress.io logo
Regarding point 2: In the pic you will see that th...
# e2e-testing
c
Regarding point 2: In the pic you will see that there is no insight regarding the test of the function. Furthermore the function is never exiting, even though the timer stops.
Copy code
ts
export function checkHeader(url: string): any {
  const currentUrl = url;
  describe('App Header', () => {
    beforeEach(() => {
      cy.restoreLocalStorage('logged in');
    });

    it('... appears', () => {
      cy.visit(currentUrl).get('[data-testid="app-header"]');
    });
    // ... more tests
  });
}