fix(test): confirm that Python projects can be submitted (#41038)
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
6ae3735979
commit
2cbb748bc5
28
cypress/integration/learn/challenges/projects.js
Normal file
28
cypress/integration/learn/challenges/projects.js
Normal file
@ -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();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
Reference in New Issue
Block a user