From bca9e9471f08ff91cf01ca62ccd3094d5d2f7e5f Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Sat, 21 May 2022 14:53:15 +0200 Subject: [PATCH] Remove flaky intro links test This e2e test is not very useful to us as it only tests hardcoded link targets. We should focus on testing user-scenarios in our e2e tests, not single components. One should instead write a unit-test for the InternalLink component. Signed-off-by: Erik Michelson --- cypress/integration/link.spec.ts | 54 -------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 cypress/integration/link.spec.ts diff --git a/cypress/integration/link.spec.ts b/cypress/integration/link.spec.ts deleted file mode 100644 index 0052b0ab3..000000000 --- a/cypress/integration/link.spec.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file) - * - * SPDX-License-Identifier: AGPL-3.0-only - */ - -import '../support/index' - -describe('Links Intro', () => { - beforeEach(() => { - cy.visitHome() - }) - - it('History', () => { - cy.getByCypressId('navLinkHistory').click() - cy.url().should('include', '/history') - cy.getByCypressId('navLinkIntro').click() - cy.url().should('include', '/intro') - }) - - describe('Menu Buttons logged out', () => { - beforeEach(() => { - cy.logout() - }) - - it('New guest note', () => { - cy.getByCypressId('new-guest-note-button').click() - cy.url().should('include', '/new') - }) - }) - - describe('Menu Buttons logged in', () => { - it('New note', () => { - cy.getByCypressId('new-note-button').click() - cy.url().should('include', '/new') - }) - - describe('User Menu', () => { - beforeEach(() => { - cy.getByCypressId('user-dropdown').click() - }) - - it('Features', () => { - cy.getByCypressId('user-dropdown-features-button').click() - cy.url().should('include', '/features') - }) - - it('Profile', () => { - cy.getByCypressId('user-dropdown-profile-button').click() - cy.url().should('include', '/profile') - }) - }) - }) -})