-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #242 from labzero/develop
Merge to master
- Loading branch information
Showing
195 changed files
with
4,953 additions
and
4,696 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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ addons: | |
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-4.8 | ||
cache: yarn | ||
script: | ||
- yarn lint | ||
- yarn test | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"baseUrl": "https://local.lunch.pink:3000/", | ||
"port": 4000, | ||
"env": { | ||
"subdomain": "https://integration-test.local.lunch.pink:3000/" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* eslint-disable no-undef */ | ||
|
||
describe('landing page', () => { | ||
before(() => { | ||
cy.visit('/'); | ||
}); | ||
|
||
it('contains hero text and has login link', () => { | ||
cy.contains('Figure it out'); | ||
cy.get('#header .btn').contains('Log in').should('have.attr', 'href', '/login'); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* eslint-disable no-undef */ | ||
import * as helpers from '../../support/helpers'; | ||
|
||
describe('login page', () => { | ||
beforeEach(() => { | ||
cy.visit('/login'); | ||
}); | ||
|
||
it('contains email and password fields, Google login, and forgot password link', () => { | ||
cy.contains('Email/password'); | ||
cy.contains('Sign in with Google'); | ||
cy.contains('Forgot password?'); | ||
}); | ||
|
||
it('logs in and out successfully', () => { | ||
cy.get('#login-email').type('[email protected]'); | ||
cy.get('#login-password').type('test'); | ||
cy.get('button[type="submit"]').click(); | ||
helpers.deleteTeam(); | ||
cy.contains('You’re not currently a part of any teams!'); | ||
|
||
cy.get('#header button').click(); | ||
cy.get('nav.Menu-root.Menu-open a').contains('Log Out').click(); | ||
cy.contains('Figure it out'); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/* eslint-env mocha */ | ||
/* eslint-disable no-undef */ | ||
import * as helpers from '../../support/helpers'; | ||
|
||
const subdomain = Cypress.env('subdomain'); | ||
|
||
describe('other pages', () => { | ||
before(() => { | ||
helpers.login(); | ||
helpers.deleteTeam(); | ||
helpers.createTeam(); | ||
}); | ||
|
||
beforeEach(() => { | ||
helpers.login(); | ||
}); | ||
|
||
describe('hamburger menu', () => { | ||
it('expands to show menu contents', () => { | ||
cy.visit(''); | ||
cy.get('#header button').click(); | ||
cy.get('.Header-menuBackground').should('be.visible'); | ||
cy.get('a.Menu-button').should('be.visible'); | ||
cy.get('nav.Menu-root.Menu-open').should('be.visible').within(() => { | ||
cy.get('a').contains('Team').should('have.attr', 'href', '/team'); | ||
cy.get('a').contains('Tags').should('have.attr', 'href', '/tags'); | ||
cy.get('a').contains('My Teams').should('have.attr', 'href', '//local.lunch.pink:3000/teams'); | ||
cy.get('a').contains('Account').should('have.attr', 'href', '//local.lunch.pink:3000/account'); | ||
cy.get('a').contains('Log Out').should('have.attr', 'href', '//local.lunch.pink:3000/logout'); | ||
}); | ||
}); | ||
}); | ||
|
||
describe('Account page', () => { | ||
it('should have "Name," "Email," and "Change Password?" inputs and Submit button', () => { | ||
cy.visit('/account'); | ||
cy.get('label').contains('Name').should('have.attr', 'for', 'account-name'); | ||
cy.get('label').contains('Email'); | ||
cy.contains('Change password?'); | ||
cy.contains('Submit'); | ||
}); | ||
}); | ||
|
||
describe('Tags page', () => { | ||
it('should display a list of tags when there are tags', () => { | ||
helpers.addRestaurant(); | ||
helpers.addTag(); | ||
cy.visit(`${subdomain}tags`); | ||
cy.contains('waterfront'); | ||
helpers.deleteTag(); | ||
helpers.deleteRestaurant(); | ||
}); | ||
|
||
it('should display blurb when no tags', () => { | ||
cy.visit(`${subdomain}tags`); | ||
cy.get('button.Tag-button').click(); | ||
cy.get('.modal-footer .btn-primary').click(); | ||
cy.contains('Once you add tags'); | ||
}); | ||
}); | ||
|
||
describe('About page', () => { | ||
it('should have some content', () => { | ||
cy.visit('/about'); | ||
cy.contains('About Lunch'); | ||
}); | ||
}); | ||
|
||
describe('404 page', () => { | ||
it('should have some content', () => { | ||
cy.visit('/404', { failOnStatusCode: false }); | ||
cy.contains('Page not found'); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.