Skip to content
Snippets Groups Projects
Verified Commit 55b93a74 authored by jfriedli's avatar jfriedli
Browse files

test new back button

parent 853e9ab4
No related branches found
No related tags found
1 merge request!28Develop
Pipeline #27828 canceled
......@@ -84,8 +84,14 @@
<p>
{{$t('could_not_clean_files')}}
</p>
<p v-if="cleanedFiles.successful.length > 0">
<q-btn to="/" color="primary" :label="$t('back')"></q-btn>
<p v-if="cleanedFiles.successful.length < 1">
<q-btn
data-cy="failed-back-button"
to="/"
color="primary"
:label="$t('back')"
>
</q-btn>
</p>
</div>
</div>
......
......@@ -122,6 +122,7 @@ describe('Upload page tests', () => {
)
})
cy.get('.uppy-StatusBar-actions > button').click()
cy.get('[data-cy=failed-items-list]').should('not.be.visible')
cy.get('[data-cy=zip-download-button] > .absolute-full > svg').should('be.visible')
cy.get('[data-cy=zip-download-button]').contains('Download')
cy.get('[data-cy=zip-download-button]').eq(0)
......@@ -160,6 +161,7 @@ describe('Upload page negative tests', () => {
cy.get('.uppy-StatusBar-actions > button').click()
cy.wait('@postFile')
cy.get('[data-cy=failed-file-name]').eq(0).contains('a-very-long...runcate.txt')
cy.get('[data-cy=failed-items-list]').should('be.visible')
})
it('redirects to error page if zip creation fails', () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment