From d7eaffdb991a8348c4efcb066e29603d33eb9993 Mon Sep 17 00:00:00 2001 From: Sem Bauke Date: Wed, 1 Feb 2023 17:43:34 +0100 Subject: [PATCH] chore: migrate sass test to TypeScript (#49213) * chore: rename file * chore: migrate sass ts --- cypress/e2e/default/learn/challenges/{sass.js => sass.ts} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename cypress/e2e/default/learn/challenges/{sass.js => sass.ts} (86%) diff --git a/cypress/e2e/default/learn/challenges/sass.js b/cypress/e2e/default/learn/challenges/sass.ts similarity index 86% rename from cypress/e2e/default/learn/challenges/sass.js rename to cypress/e2e/default/learn/challenges/sass.ts index bad26e69709..c8fed4d9652 100644 --- a/cypress/e2e/default/learn/challenges/sass.js +++ b/cypress/e2e/default/learn/challenges/sass.ts @@ -1,4 +1,4 @@ -const location = +const sassPathLocation = '/learn/front-end-development-libraries/sass/' + 'use-for-to-create-a-sass-loop'; @@ -9,12 +9,12 @@ const getIframeBody = () => { .should('exist') .its('body') .should('not.be.undefined') - .then(cy.wrap); + .then(body => cy.wrap(body)); }; describe('Sass Challenge', () => { before(() => { - cy.visit(location); + cy.visit(sassPathLocation); cy.wait(5000); });