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
Add a simple gallery of pokemons (using a pokemon API) | |
Requirements: | |
- fetch data using (GET https://pokeapi.co/api/v2/pokemon), more info can be found https://pokeapi.co | |
- display each record as a card with name & image (https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/:id.png) | |
- add ability to move back and forward | |
- by click on a card fetch a pokemon's details from (GET https://pokeapi.co/api/v2/pokemon/:id) and show height, weight, moves as overlay on image. |
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
## Context + metadata | |
shared_context 'Logged as a user', role: true do | |
let(:user) { |example| create :user, example.metadata[:role] } | |
before { login_as user } | |
end | |
scenario "Login as a client", role: :client | |
scenario "Login as a customer", role: :customer | |
scenario "Login as an admin", role: :admin |