This commit is contained in:
Andreani Jean
2023-09-12 20:48:57 +02:00
parent 30b49a8c7d
commit 8452b50ea0

View File

@@ -8,8 +8,6 @@ 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',
@@ -19,6 +17,18 @@ 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()
})
})
})
})