Changeset View
Changeset View
Standalone View
Standalone View
cypress/integration/vault.spec.js
| Show First 20 Lines • Show All 262 Lines • ▼ Show 20 Lines | cy.window().then(win => { | ||||
| cy.get(`#vault-task-${CSS.escape(this.directory)} .vault-origin a`) | cy.get(`#vault-task-${CSS.escape(this.directory)} .vault-origin a`) | ||||
| .should('contain', 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-${CSS.escape(this.directory)} .vault-object-info a`) | cy.get(`#vault-task-${CSS.escape(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-${CSS.escape(this.directory)}`) | |||||
| .invoke('attr', 'title') | |||||
| .should('contain', 'the directory can be extracted'); | |||||
| cy.get(`#vault-task-${CSS.escape(this.directory)} .vault-dl-link button`) | cy.get(`#vault-task-${CSS.escape(this.directory)} .vault-dl-link button`) | ||||
| .click(); | .click(); | ||||
| cy.wait('@fetchCookedArchive').then((xhr) => { | cy.wait('@fetchCookedArchive').then((xhr) => { | ||||
| assert.isNotNull(xhr.response.body); | assert.isNotNull(xhr.response.body); | ||||
| }); | }); | ||||
| }); | }); | ||||
| }); | }); | ||||
| ▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | cy.window().then(win => { | ||||
| cy.get(`#vault-task-${CSS.escape(this.revision)} .vault-origin`) | cy.get(`#vault-task-${CSS.escape(this.revision)} .vault-origin`) | ||||
| .should('have.text', 'unknown'); | .should('have.text', 'unknown'); | ||||
| cy.get(`#vault-task-${CSS.escape(this.revision)} .vault-object-info a`) | cy.get(`#vault-task-${CSS.escape(this.revision)} .vault-object-info a`) | ||||
| .should('have.text', this.revision) | .should('have.text', this.revision) | ||||
| .should('have.attr', 'href', browseRevisionUrl); | .should('have.attr', 'href', browseRevisionUrl); | ||||
| cy.get(`#vault-task-${CSS.escape(this.revision)}`) | |||||
| .invoke('attr', 'title') | |||||
| .should('contain', 'the git repository can be imported'); | |||||
| cy.get(`#vault-task-${CSS.escape(this.revision)} .vault-dl-link button`) | cy.get(`#vault-task-${CSS.escape(this.revision)} .vault-dl-link button`) | ||||
| .click(); | .click(); | ||||
| cy.wait('@fetchCookedArchive').then((xhr) => { | cy.wait('@fetchCookedArchive').then((xhr) => { | ||||
| assert.isNotNull(xhr.response.body); | assert.isNotNull(xhr.response.body); | ||||
| }); | }); | ||||
| }); | }); | ||||
| }); | }); | ||||
| ▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines | |||||