Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions cucumber-report.html

Large diffs are not rendered by default.

232 changes: 232 additions & 0 deletions cucumber-report.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,232 @@
[
{
"description": " As a user,\n I want to upload photos from my device to create a post,\n so that I can share my memories",
"elements": [
{
"description": "",
"id": "upload-feature-workflow;complete-the-full-4-step-upload-wizard",
"keyword": "Scenario",
"line": 9,
"name": "Complete the full 4-step upload wizard",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 465061791
}
},
{
"arguments": [],
"keyword": "Given ",
"line": 7,
"name": "that I am logged in as \"testexample@example.com",
"result": {
"status": "undefined",
"duration": 0
}
},
{
"arguments": [],
"keyword": "When ",
"line": 10,
"name": "I navigate to the upload page",
"match": {
"location": "file:/Users/kianbaghai/Desktop/memento/features/step_definitions/uploadPost.steps.js:29"
},
"result": {
"status": "skipped",
"duration": 0
}
},
{
"arguments": [],
"keyword": "And ",
"line": 11,
"name": "I upload an image file",
"match": {
"location": "file:/Users/kianbaghai/Desktop/memento/features/step_definitions/uploadPost.steps.js:34"
},
"result": {
"status": "skipped",
"duration": 0
}
},
{
"arguments": [],
"keyword": "And ",
"line": 12,
"name": "I wait for the upload preview to appear",
"match": {
"location": "file:/Users/kianbaghai/Desktop/memento/features/step_definitions/uploadPost.steps.js:40"
},
"result": {
"status": "skipped",
"duration": 0
}
},
{
"arguments": [],
"keyword": "And ",
"line": 13,
"name": "I click \"Next: Caption & Location\"",
"match": {
"location": "file:/Users/kianbaghai/Desktop/memento/features/step_definitions/uploadPost.steps.js:51"
},
"result": {
"status": "skipped",
"duration": 0
}
},
{
"arguments": [],
"keyword": "And ",
"line": 14,
"name": "I fill in the caption with \"Test post from Cucumber\"",
"match": {
"location": "file:/Users/kianbaghai/Desktop/memento/features/step_definitions/uploadPost.steps.js:56"
},
"result": {
"status": "skipped",
"duration": 0
}
},
{
"arguments": [],
"keyword": "And ",
"line": 15,
"name": "I fill in the location with \"San Francisco\"",
"match": {
"location": "file:/Users/kianbaghai/Desktop/memento/features/step_definitions/uploadPost.steps.js:60"
},
"result": {
"status": "skipped",
"duration": 0
}
},
{
"arguments": [],
"keyword": "And ",
"line": 16,
"name": "I select the first location suggestion",
"match": {
"location": "file:/Users/kianbaghai/Desktop/memento/features/step_definitions/uploadPost.steps.js:64"
},
"result": {
"status": "skipped",
"duration": 0
}
},
{
"arguments": [],
"keyword": "And ",
"line": 17,
"name": "I click \"Next: Categories\"",
"match": {
"location": "file:/Users/kianbaghai/Desktop/memento/features/step_definitions/uploadPost.steps.js:51"
},
"result": {
"status": "skipped",
"duration": 0
}
},
{
"arguments": [],
"keyword": "And ",
"line": 18,
"name": "I select the first category",
"match": {
"location": "file:/Users/kianbaghai/Desktop/memento/features/step_definitions/uploadPost.steps.js:70"
},
"result": {
"status": "skipped",
"duration": 0
}
},
{
"arguments": [],
"keyword": "And ",
"line": 19,
"name": "I click \"Review & Submit\"",
"match": {
"location": "file:/Users/kianbaghai/Desktop/memento/features/step_definitions/uploadPost.steps.js:51"
},
"result": {
"status": "skipped",
"duration": 0
}
},
{
"arguments": [],
"keyword": "And ",
"line": 20,
"name": "I scroll to the bottom of the page",
"match": {
"location": "file:/Users/kianbaghai/Desktop/memento/features/step_definitions/uploadPost.steps.js:78"
},
"result": {
"status": "skipped",
"duration": 0
}
},
{
"arguments": [],
"keyword": "And ",
"line": 21,
"name": "I click \"Create Post\"",
"match": {
"location": "file:/Users/kianbaghai/Desktop/memento/features/step_definitions/uploadPost.steps.js:51"
},
"result": {
"status": "skipped",
"duration": 0
}
},
{
"arguments": [],
"keyword": "Then ",
"line": 22,
"name": "I should be redirected to the feed page",
"match": {
"location": "file:/Users/kianbaghai/Desktop/memento/features/step_definitions/uploadPost.steps.js:84"
},
"result": {
"status": "skipped",
"duration": 0
}
},
{
"arguments": [],
"keyword": "And ",
"line": 23,
"name": "the post with caption \"Test post from Cucumber\" should be visible",
"match": {
"location": "file:/Users/kianbaghai/Desktop/memento/features/step_definitions/uploadPost.steps.js:89"
},
"result": {
"status": "skipped",
"duration": 0
}
},
{
"keyword": "After",
"hidden": true,
"result": {
"status": "passed",
"duration": 25473417
}
}
],
"tags": [],
"type": "scenario"
}
],
"id": "upload-feature-workflow",
"line": 1,
"keyword": "Feature",
"name": "Upload Feature Workflow",
"tags": [],
"uri": "features/uploadPost.feature"
}
]
7 changes: 7 additions & 0 deletions cucumber.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
default: {
require: ["features/step_definitions/**/*.js"],
format: ["progress-bar", "html:cucumber-report.html"],
formatOptions: { snippetInterface: "async-await" },
},
};
13 changes: 13 additions & 0 deletions features/comment.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Feature: Commenting on a post
As a user,
I want to comment on a post on my feed,
so that I can have greater connection with the posts

Background:
Given I am logged in as "testexample@example.com"

Scenario: Comment on a post
When I navigate to the feed page
And I type in the "Add a comment..." Field
And I submit the comment
Then the comment should appear under the post
17 changes: 17 additions & 0 deletions features/likePost.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Feature: Liking a post
As a user,
I want to like and comment on a post on my feed,
so that I can have greater connection with the posts

Background:
Given I am logged in as "testexample@example.com"

Scenario: Like a post
When I navigate to the feed page
And I click the like button on the first post
Then the like button should now say "unlike"

Scenario: Unlike a post
When I navigate to the feed page
And I click the unlike button on the first post
Then the like button should now say "like"
Loading