From ccc1d81d907304eaaaef55acb651da94f4d36d39 Mon Sep 17 00:00:00 2001 From: Sem Bauke Date: Fri, 31 May 2024 23:17:55 +0200 Subject: [PATCH] fix: delete old navigation test already covered by Playwright (#55033) --- .../default/learn/challenges/navigation.ts | 77 ------------------- 1 file changed, 77 deletions(-) delete mode 100644 cypress/e2e/default/learn/challenges/navigation.ts diff --git a/cypress/e2e/default/learn/challenges/navigation.ts b/cypress/e2e/default/learn/challenges/navigation.ts deleted file mode 100644 index 7236efc5e8c..00000000000 --- a/cypress/e2e/default/learn/challenges/navigation.ts +++ /dev/null @@ -1,77 +0,0 @@ -// middle of block -const challenge1 = { - url: '/learn/front-end-development-libraries/front-end-development-libraries-projects/build-a-javascript-calculator', - nextUrl: - '/learn/front-end-development-libraries/front-end-development-libraries-projects/build-a-25--5-clock' -}; - -// last in superblock -const challenge2 = { - url: '/learn/college-algebra-with-python/build-a-data-graph-explorer-project/build-a-data-graph-explorer', - nextUrl: - '/learn/college-algebra-with-python/#build-a-data-graph-explorer-project' -}; - -const rwdChallenge = { - url: '/learn/2022/responsive-web-design/build-a-personal-portfolio-webpage-project/build-a-personal-portfolio-webpage', - nextUrl: - '/learn/2022/responsive-web-design/#build-a-personal-portfolio-webpage-project' -}; - -const rwdChallengeSolution = ` - - - - -
-
-

text

-

-
-

Projects

-

text

-

- -`; - -describe('submitting a challenge', () => { - before(() => { - cy.task('seed'); - }); - - beforeEach(() => { - cy.login(); - }); - - it('in the middle of a block should take you to the next challenge', () => { - cy.visit(challenge1.url); - cy.get('#solution').type('https://example.com').type('{enter}'); - cy.contains('Submit and go to next challenge').click(); - cy.url().should('include', challenge1.nextUrl); - }); - - it('at the end of a superblock should take you to the superblock page with the current block hash', () => { - cy.visit(challenge2.url); - cy.get('#solution').type('https://example.com').type('{enter}'); - cy.contains('Submit and go to next challenge').click(); - cy.url().should('include', challenge2.nextUrl); - }); - - it('should take you to the superblock page with the current hash after completing a multifile cert project', () => { - cy.visit(rwdChallenge.url); - cy.get('[data-cy=editor-container-indexhtml]') - .click() - .type(rwdChallengeSolution) - .type('{ctrl}{enter}', { release: false, delay: 100 }); - cy.contains('Submit and go to next challenge').click(); - cy.url().should('include', rwdChallenge.nextUrl); - }); -});