fix course

This commit is contained in:
Andreani Jean
2023-09-12 10:21:56 +02:00
parent a3bec701ea
commit 02ba0efe8d

View File

@@ -8,6 +8,8 @@ describe('Testing the full user course', () => {
cy.visit('/')
cy.contains(uploadData.textLinkUpload).click()
})
})
it('should access to the uploaded sequence and delete it', () => {
cy.get('.input-file').selectFile(
[
'cypress/fixtures/images/image1.JPG',
@@ -17,18 +19,6 @@ describe('Testing the full user course', () => {
{ force: true }
)
cy.get('button[type=submit]').click()
cy.get('button[type=button]').click()
})
it('should access to the uploaded sequence and delete it', () => {
cy.get('.sequence-title').then(($span) => {
const sequenceTitle = $span.text()
cy.fixture('full-course').then((fullCourseData) => {
cy.contains(fullCourseData.userName).click()
cy.contains(fullCourseData.myPicturesLink).click()
cy.contains(sequenceTitle).click()
cy.contains(fullCourseData.deleteSequence).click()
})
})
})
})