-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
391 additions
and
11,379 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
{ | ||
"project": { | ||
"id": 3, | ||
"title": "LocalSupport", | ||
"description": "VAH's Local Support site is at www.harrowcn.org.uk", | ||
"status": "Active", | ||
"created_at": "2018-10-18T20:54:13.525Z", | ||
"updated_at": "2018-10-18T20:54:13.525Z", | ||
"user_id": 3, | ||
"slug": "localsupport", | ||
"github_url": "https://github.com/AgileVentures/LocalSupport/", | ||
"pivotaltracker_url": "https://www.pivotaltracker.com/n/projects/742821", | ||
"pitch": null, | ||
"commit_count": 3655, | ||
"image_url": null, | ||
"last_github_update": null, | ||
"slack_channel_name": null, | ||
"tag_list": [], | ||
"languages": ["Ruby"] | ||
}, | ||
"sourceRepositories": [ | ||
{ | ||
"id": 87, | ||
"url": "https://github.com/AgileVentures/LocalSupport/", | ||
"project_id": 3, | ||
"created_at": "2017-09-27T15:01:53.109Z", | ||
"updated_at": "2017-09-27T15:01:53.109Z" | ||
} | ||
], | ||
"members": [ | ||
{ | ||
"id": 1, | ||
"first_name": "Ellaria", | ||
"last_name": "Sand" | ||
}, | ||
{ | ||
"id": 2, | ||
"slug": "brienne-of-tarth" | ||
}, | ||
{ | ||
"id": 3, | ||
"first_name": "Missandei" | ||
}, | ||
{ | ||
"id": 4, | ||
"first_name": "Daenerys", | ||
"last_name": "Targaryen" | ||
}, | ||
{ | ||
"id": 5, | ||
"first_name": "Arya", | ||
"last_name": "Stark" | ||
} | ||
], | ||
"membersGravatarUrl": { | ||
"ellaria-sand": "https://www.gravatar.com/avatar/9249736dae1898d537770886061c06f9?s=32&d=retro", | ||
"brienne-of-tarth": "https://www.gravatar.com/avatar/9249736dae1898d537770886061c06f9?s=32&d=retro", | ||
"missandei": "https://www.gravatar.com/avatar/9249736dae1898d537770886061c06f9?s=32&d=retro", | ||
"daenerys-targaryen": "https://www.gravatar.com/avatar/9249736dae1898d537770886061c06f9?s=32&d=retro", | ||
"arya-stark": "https://www.gravatar.com/avatar/9249736dae1898d537770886061c06f9?s=32&d=retro" | ||
}, | ||
"videos": [ | ||
{ | ||
"id": 6703, | ||
"event_id": 2695, | ||
"title": "LocalSupport Kick Off/Retro - Thursday, 1st Mar at 04:30pm (UTC)", | ||
"hangout_url": "https://hangouts.google.com/hangouts/_/ytl/q83BUQXt7X1whr7PAwNl8BSJ_A66k0-mrJmUMvK2Gok=", | ||
"created_at": "2018-03-01T16:35:49.591Z", | ||
"updated_at": "2018-03-01T16:36:05.691Z", | ||
"uid": "300-48f3b016-4710-4466-b308-8fa058cf19cd", | ||
"category": "Scrum", | ||
"project_id": 3, | ||
"user_id": 3, | ||
"yt_video_id": "oXg6FcuJ6lw", | ||
"participants": null, | ||
"hoa_status": null, | ||
"url_set_directly": true, | ||
"youtube_tweet_sent": null | ||
}, | ||
{ | ||
"id": 6704, | ||
"event_id": 2695, | ||
"title": "LocalSupport Kick Off/Retro - Thursday, 1st Mar at 04:30pm (UTC)", | ||
"hangout_url": "https://hangouts.google.com/hangouts/_/ytl/q83BUQXt7X1whr7PAwNl8BSJ_A66k0-mrJmUMvK2Gok=", | ||
"created_at": "2018-03-01T16:35:49.591Z", | ||
"updated_at": "2018-03-01T16:36:05.691Z", | ||
"uid": "300-48f3b016-4710-4466-b308-8fa058cf19cd", | ||
"category": "Scrum", | ||
"project_id": 3, | ||
"user_id": 3, | ||
"yt_video_id": "oXg6FcuJ6lw", | ||
"participants": null, | ||
"hoa_status": null, | ||
"url_set_directly": true, | ||
"youtube_tweet_sent": null | ||
}, | ||
{ | ||
"id": 6705, | ||
"event_id": 2695, | ||
"title": "LocalSupport Kick Off/Retro - Thursday, 1st Mar at 04:30pm (UTC)", | ||
"hangout_url": "https://hangouts.google.com/hangouts/_/ytl/q83BUQXt7X1whr7PAwNl8BSJ_A66k0-mrJmUMvK2Gok=", | ||
"created_at": "2018-03-01T16:35:49.591Z", | ||
"updated_at": "2018-03-01T16:36:05.691Z", | ||
"uid": "300-48f3b016-4710-4466-b308-8fa058cf19cd", | ||
"category": "Scrum", | ||
"project_id": 3, | ||
"user_id": 3, | ||
"yt_video_id": "oXg6FcuJ6lw", | ||
"participants": null, | ||
"hoa_status": null, | ||
"url_set_directly": true, | ||
"youtube_tweet_sent": null | ||
}, | ||
{ | ||
"id": 6706, | ||
"event_id": 2695, | ||
"title": "LocalSupport Kick Off/Retro - Thursday, 1st Mar at 04:30pm (UTC)", | ||
"hangout_url": "https://hangouts.google.com/hangouts/_/ytl/q83BUQXt7X1whr7PAwNl8BSJ_A66k0-mrJmUMvK2Gok=", | ||
"created_at": "2018-03-01T16:35:49.591Z", | ||
"updated_at": "2018-03-01T16:36:05.691Z", | ||
"uid": "300-48f3b016-4710-4466-b308-8fa058cf19cd", | ||
"category": "Scrum", | ||
"project_id": 3, | ||
"user_id": 3, | ||
"yt_video_id": "oXg6FcuJ6lw", | ||
"participants": null, | ||
"hoa_status": null, | ||
"url_set_directly": true, | ||
"youtube_tweet_sent": null | ||
}, | ||
{ | ||
"id": 6707, | ||
"event_id": 2695, | ||
"title": "LocalSupport Kick Off/Retro - Thursday, 1st Mar at 04:30pm (UTC)", | ||
"hangout_url": "https://hangouts.google.com/hangouts/_/ytl/q83BUQXt7X1whr7PAwNl8BSJ_A66k0-mrJmUMvK2Gok=", | ||
"created_at": "2018-03-01T16:35:49.591Z", | ||
"updated_at": "2018-03-01T16:36:05.691Z", | ||
"uid": "300-48f3b016-4710-4466-b308-8fa058cf19cd", | ||
"category": "Scrum", | ||
"project_id": 3, | ||
"user_id": 3, | ||
"yt_video_id": "oXg6FcuJ6lw", | ||
"participants": null, | ||
"hoa_status": null, | ||
"url_set_directly": true, | ||
"youtube_tweet_sent": null | ||
} | ||
] | ||
} |
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,21 @@ | ||
[ | ||
{ | ||
"id": 3, | ||
"title": "LocalSupport", | ||
"description": "VAH's Local Support site is at www.harrowcn.org.uk", | ||
"status": "Active", | ||
"created_at": "2018-10-18T20:54:13.525Z", | ||
"updated_at": "2018-10-18T20:54:13.525Z", | ||
"user_id": 3, | ||
"slug": "localsupport", | ||
"github_url": "https://github.com/AgileVentures/LocalSupport/", | ||
"pivotaltracker_url": "https://www.pivotaltracker.com/n/projects/742821", | ||
"pitch": null, | ||
"commit_count": 3655, | ||
"image_url": null, | ||
"last_github_update": null, | ||
"slack_channel_name": null, | ||
"tag_list": [], | ||
"languages": ["Ruby"] | ||
} | ||
] |
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,13 +1,65 @@ | ||
import { Then, Given } from 'cypress-cucumber-preprocessor/steps' | ||
import { Then, Given, When } from 'cypress-cucumber-preprocessor/steps' | ||
|
||
Then(`I should see {string}`, (textToFind) => { | ||
Then(`I should see {string}`, textToFind => { | ||
cy.contains(textToFind) | ||
}) | ||
|
||
Given(`I am at the {string} page`, (pageName) => { | ||
Given(`I am at the {string} page`, pageName => { | ||
if (pageName === 'Home') { | ||
cy.visit('/') | ||
} else { | ||
cy.fail('unknown page \'' + pageName + '\'') | ||
cy.visit('/' + pageName) | ||
} | ||
}) | ||
|
||
Given('I am at the projects page', () => { | ||
cy.server() | ||
cy.fixture('projects').then(projects => { | ||
cy.route( | ||
/\/api\/v1\/projects/, | ||
projects | ||
).as('getProjects') | ||
cy.visit('/projects') | ||
cy.window() | ||
.its('store') | ||
.invoke('dispatch', { type: 'GET_PROJECTS', payload: projects }) | ||
}) | ||
cy.wait('@getProjects') | ||
}) | ||
|
||
When('I click on the LocalSupport project', () => { | ||
cy.server() | ||
cy.fixture('project').then(project => { | ||
cy.route(/\/api\/v1\/projects\/localsupport/, project).as('getProject') | ||
cy.get('div') | ||
.contains('LocalSupport') | ||
.click({ force: true }) | ||
cy.window() | ||
.its('store') | ||
.invoke('dispatch', { type: 'GET_PROJECT_INFO', payload: project }) | ||
}) | ||
cy.wait('@getProject') | ||
cy.reload() | ||
}) | ||
|
||
Then("I should be on the LocalSupport Project's info page", () => { | ||
cy.get('h1').contains('LocalSupport') | ||
}) | ||
|
||
Then( | ||
'I should see the tracker link, the github repositories links, a small description, a members list, and a video wall', | ||
() => { | ||
cy.get("a[href='https://www.pivotaltracker.com/n/projects/742821']") | ||
.get("a[href='https://github.com/AgileVentures/LocalSupport/']") | ||
.get('div.segment > h5') | ||
.contains("VAH's Local Support site is at www.harrowcn.org.uk") | ||
.get('div') | ||
.contains('Members') | ||
.get('div.row > img') | ||
.should('have.length', 5) | ||
.get('.project-info-videos') | ||
.within(() => { | ||
cy.get('div.embed').should('have.length', 5) | ||
}) | ||
} | ||
) |
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 @@ | ||
Feature: Project's info page | ||
|
||
Scenario: Access a Project's info page | ||
Given I am at the projects page | ||
When I click on the LocalSupport project | ||
Then I should be on the LocalSupport Project's info page | ||
And I should see the tracker link, the github repositories links, a small description, a members list, and a video wall |
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 |
---|---|---|
|
@@ -18,3 +18,7 @@ render( | |
, | ||
document.getElementById('root') | ||
) | ||
|
||
if (window.Cypress) { | ||
window.store = store | ||
} |
Oops, something went wrong.