Repository files navigation
Main page (quotes list)
Quote page
The quotes list display
Open/close the "add quote" form
Create new quote (+ form validation)
Open the quote page
Back to the main page
Tests (e2e / integration / contract / unit)
A list of quotes should be displayed on the page
The created quote should be appended to list
Quote page should be opened on click to quote item
Displayed text of quote is correct
Displayed author of quote is correct
Page should be changed to main on click to "To quotes list"
Title of page contains correct text
Quotes list is displayed and count of displayed quotes matches the input data
Quote create form is opened by default
Form is closing when "X" button is clicked
Form is opening when "Create quote" button is clicked
Count of displayed quotes matches the input data
Text of first quote is correct
Author of first quote is correct
First quote item have link to its page
Text of error validation is not displayed by default
Validation error is displayed, when:
Author name length less than 2 characters
Text less than 2 characters
Author name length greater than 64 characters
Text length greater than 256 characters
Author is not filled
6.Text is not filled
Validation error is not displayed, when:
length of author name > 2 & < 64 and length of text > 2 & < 256
Form submitting
When form is valid
The entered data is sent
Fields of form cleans
When form is not valid
The entered data is not sent
loadQuotesList() - requests a list of quotes
loadQuote() - requests quote by id
createQuote() - quote creating
Quote creation
A quote should be created on server and be added to store by CREATED_SUCCESS
When server responds error, action CREATED_FAIL should be created
Quote fetching
Quote should be fetched from server and be added to store by FETCH_ONE_SUCCESS
When server responds error, action FETCH_ONE_FAIL should be created
Quotes list fetching
Quotes list should be fetched from server and be added to store by FETCH_ALL_SUCCESS
When server responds error, action FETCH_ALL_FAIL should be created
FETCH_ALL_SUCCESS must replace quotes list in store
CREATED_SUCCESS must append quote to the list in store
FETCH_ONE_SUCCESS must append quote to the list in store, if quote is not exist in list
FETCH_ONE_SUCCESS must do not append quote to the list in store, if quote is exist in list
getQuotesList() - must return list of quotes
getQuoteIdMatch() - must return match of quoteId from location, if quoteId is exist
getQuoteIdMatch() - must return null, if quoteId is not exist
getQuoteIdByLocation() - must return quoteId from location, if quoteId is exist and valid
getQuoteIdByLocation() - must return null, if quoteId is not exist in location
getCurrentQuoteByLocation() - must return quote from store, if quote with id from location is exist
getCurrentQuoteByLocation() - must return null, if quoteId from location is not exist or invalid
getCurrentQuoteByLocation() - must return null, if quote with id from location is not exist
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.