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); });