Files
freeCodeCamp/cypress/integration/default/learn/challenges/sass.js
Ahmad Abdolsaheb 29e4a18a56 feat(tools): donation tests (#46633)
* feat: add stripe donate page test for non donors

* fix: revert changes to see if ev is passed correctly

* feat: download artifacts

* fix: add quotations for spec args with global patterns

* fix: remove firefox from cypress donation tests

* fix: trigger action on main push

* Apply suggestions from code review

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* feat: remove matrix and simplify

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-08-08 08:43:23 -07:00

29 lines
652 B
JavaScript

const location =
'/learn/front-end-development-libraries/sass/' +
'use-for-to-create-a-sass-loop';
const getIframeBody = () => {
return cy
.get('.challenge-preview iframe')
.its('0.contentDocument')
.should('exist')
.its('body')
.should('not.be.undefined')
.then(cy.wrap);
};
describe('Sass Challenge', () => {
before(() => {
cy.visit(location);
cy.wait(5000);
});
it('should render the sass preview', () => {
getIframeBody().find('.text-1');
getIframeBody().find('.text-2');
getIframeBody().find('.text-3');
getIframeBody().find('.text-4');
getIframeBody().find('.text-5');
});
});