Changeset View
Changeset View
Standalone View
Standalone View
cypress/integration/admin.spec.js
Show All 21 Lines | describe('Test Admin Login/logout', function() { | ||||
}); | }); | ||||
it('should redirect to default page', function() { | it('should redirect to default page', function() { | ||||
cy.visit(url) | cy.visit(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('form') | .get('.container form') | ||||
.submit(); | .submit(); | ||||
cy.location('pathname') | cy.location('pathname') | ||||
.should('be.equal', defaultRedirect); | .should('be.equal', defaultRedirect); | ||||
logout(); | logout(); | ||||
}); | }); | ||||
▲ Show 20 Lines • Show All 170 Lines • Show Last 20 Lines |