Changeset View
Changeset View
Standalone View
Standalone View
cypress/e2e/add-forge-now-requests-moderation.cy.js
Show All 15 Lines | describe('Test "Add Forge Now" moderation Login/logout', function() { | ||||
}); | }); | ||||
it('should redirect to default page', function() { | it('should redirect to default page', function() { | ||||
cy.visit(this.addForgeModerationUrl) | cy.visit(this.addForgeModerationUrl) | ||||
.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.addForgeModerationUrl); | .should('be.equal', this.addForgeModerationUrl); | ||||
}); | }); | ||||
it('should redirect to correct page after login', function() { | it('should redirect to correct page after login', function() { | ||||
cy.visit(this.addForgeModerationUrl) | cy.visit(this.addForgeModerationUrl) | ||||
.location('pathname') | .location('pathname') | ||||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |