Changeset View
Changeset View
Standalone View
Standalone View
cypress/integration/vault.spec.js
Show First 20 Lines • Show All 240 Lines • ▼ Show 20 Lines | cy.window().then(win => { | ||||
response: `fx:${this.directory}.tar.gz`, | response: `fx:${this.directory}.tar.gz`, | ||||
headers: { | headers: { | ||||
'Content-disposition': `attachment; filename=${this.directory}.tar.gz`, | 'Content-disposition': `attachment; filename=${this.directory}.tar.gz`, | ||||
'Content-Type': 'application/gzip' | 'Content-Type': 'application/gzip' | ||||
} | } | ||||
}).as('fetchCookedArchive'); | }).as('fetchCookedArchive'); | ||||
cy.get(`#vault-task-${this.directory} .vault-origin a`) | cy.get(`#vault-task-${this.directory} .vault-origin a`) | ||||
.should('have.text', this.origin[0].url) | .should('contain', this.origin[0].url) | ||||
.should('have.attr', 'href', `${this.Urls.browse_origin()}?origin_url=${this.origin[0].url}`); | .should('have.attr', 'href', `${this.Urls.browse_origin()}?origin_url=${this.origin[0].url}`); | ||||
cy.get(`#vault-task-${this.directory} .vault-object-info a`) | cy.get(`#vault-task-${this.directory} .vault-object-info a`) | ||||
.should('have.text', this.directory) | .should('have.text', this.directory) | ||||
.should('have.attr', 'href', browseDirectoryUrl); | .should('have.attr', 'href', browseDirectoryUrl); | ||||
cy.get(`#vault-task-${this.directory} .vault-dl-link button`) | cy.get(`#vault-task-${this.directory} .vault-dl-link button`) | ||||
.click(); | .click(); | ||||
▲ Show 20 Lines • Show All 264 Lines • Show Last 20 Lines |