Changeset View
Changeset View
Standalone View
Standalone View
cypress/e2e/admin.cy.js
Show All 17 Lines | describe('Test Admin Login/logout', function() { | ||||
}); | }); | ||||
it('should redirect to default page', function() { | it('should redirect to default page', function() { | ||||
cy.visit(this.url) | cy.visit(this.url) | ||||
.get('input[name="username"]') | .get('input[name="username"]') | ||||
.type('admin') | .type('admin') | ||||
.get('input[name="password"]') | .get('input[name="password"]') | ||||
.type('admin') | .type('admin') | ||||
.get('.container form') | .get('.container form button[type=submit]') | ||||
.submit(); | .click(); | ||||
cy.location('pathname') | cy.location('pathname') | ||||
.should('be.equal', this.Urls.swh_web_homepage()); | .should('be.equal', this.Urls.swh_web_homepage()); | ||||
logout(); | logout(); | ||||
}); | }); | ||||
it('should display admin-origin-save and deposit in sidebar', function() { | it('should display admin-origin-save and deposit in sidebar', function() { | ||||
▲ Show 20 Lines • Show All 261 Lines • Show Last 20 Lines |