forked from eXist-db/generator-exist
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(gulpfile): avoid repeathing path defs
treeshaking moar todos see Make builder configurable eXist-db#563
- Loading branch information
Showing
5 changed files
with
175 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 20 additions & 20 deletions
40
generators/app/templates/tests/integration/login-fail_spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
/* global cy */ | ||
describe('On a protected pages when not logged in', function () { | ||
it('the page should load ', function () { | ||
cy.visit('/exist/<%- defcoll %>/<%- short %>/admin/index.html') | ||
.get('.alert') | ||
.contains('This is a protected page.') | ||
}) | ||
it('the page should load ', function () { | ||
cy.visit('/exist/<%- defcoll %>/<%- short %>/admin/index.html') | ||
.get('.alert') | ||
.contains('This is a protected page.') | ||
}) | ||
|
||
it('login should fail with bad credentials', function () { | ||
cy.contains('Login').click() | ||
cy.get('.modal-content') | ||
.find('input[name=user]').type('baduser{enter}') | ||
cy.get('body') | ||
.contains('This is a protected page.') | ||
}) | ||
it('login should fail with bad credentials', function () { | ||
cy.contains('Login').click() | ||
cy.get('.modal-content') | ||
.find('input[name=user]').type('baduser{enter}') | ||
cy.get('body') | ||
.contains('This is a protected page.') | ||
}) | ||
|
||
it('Navigation Bar should show guest user', function () { | ||
cy.get('.navbar-right > :nth-child(1) > a') | ||
.contains('Hello Guest') | ||
}) | ||
it('Navigation Bar should show guest user', function () { | ||
cy.get('.navbar-right > :nth-child(1) > a') | ||
.contains('Hello Guest') | ||
}) | ||
|
||
after('logout', function () { | ||
cy.get(':nth-child(2) > .btn').click() | ||
}) | ||
}) | ||
after('logout', function () { | ||
cy.get(':nth-child(2) > .btn').click() | ||
}) | ||
}) |
Oops, something went wrong.