Skip to content

Commit

Permalink
fix(test): confirm that Python projects can be submitted (freeCodeCam…
Browse files Browse the repository at this point in the history
…p#41038)

Co-authored-by: Shaun Hamilton <[email protected]>
  • Loading branch information
ojeytonwilliams and ShaunSHamilton committed Feb 10, 2021
1 parent 6ae3735 commit 2cbb748
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions cypress/integration/learn/challenges/projects.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/* global cy */

const projects = {
superBlock: 'machine-learning-with-python',
block: 'machine-learning-with-python-projects',
challenges: [
'book-recommendation-engine-using-knn',
'cat-and-dog-image-classifier',
'linear-regression-health-costs-calculator',
'neural-network-sms-text-classifier',
'rock-paper-scissors'
]
};
describe('project submission', () => {
// NOTE: this will fail once challenge tests are added.
it('Should be possible to submit Python projects', () => {
const { superBlock, block, challenges } = projects;
challenges.forEach(challenge => {
cy.visit(`/learn/${superBlock}/${block}/${challenge}`);
cy.get('#dynamic-front-end-form')
.get('#solution')
.type('https://repl.it/@camperbot/python-project#main.py');

cy.contains("I've completed this challenge").click();
cy.contains('Go to next challenge').click();
});
});
});

0 comments on commit 2cbb748

Please sign in to comment.