Commit 0247105d by Aman Sharma

Added jest & capybara

parent c369ecbf
......@@ -14,6 +14,8 @@ export default () => (
to="/recipes"
className="btn btn-lg custom-button"
role="button"
name="View Recipes"
id="View Recipes"
>
View Recipes
</Link>
......
......@@ -14,6 +14,7 @@
"react-router-dom": "^5.2.0"
},
"devDependencies": {
"jest": "^26.4.2",
"webpack-dev-server": "^3.11.0"
}
}
require "rails_helper"
RSpec.feature "Application Running", :type => :feature do
scenario "Application should run respond to view recipe button" do
visit "/"
click_button "View Recipes"
expect(page).to have_text("Recipes for every occasion")
end
end
\ No newline at end of file
RSpec.configure do |config|
config.include FactoryBot::Syntax::Methods
end
\ No newline at end of file
config.include FactoryBot::Syntax::Methods
end
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment