Product: Creating product and editing as a draft
Pre-conditions:
- Knowing the credentials of a System Administrator (e.g. admin/Admin123);
- Logging into the application and navigating to the Product page.
Test Details
Test Step | Test Data | Test Result |
---|---|---|
1. Click the Create button and select the Product option. | One should see a modal for creating the product with fields to fill: UNIQUE ID(required) and Family. | |
2. Click the Save button. | One should see a message that the changes cannot be saved. Under the required fields should occurs information that these fields can't be empty. | |
3. Fill in the required fields using the existing code and click the Save button. | e.g. R_596 | A message should appear for the user that the changes cannot be saved, and under the Unique ID field one should see information that the code already exists. |
4. Change the ID to unique one and click the Save button. | e.g. New Product | There should be information that the draft has been created and the user should be moved to the draft list. The list should contain columns with information about: Product, Author, Changes, Date, Status, Actions. |
5. Verify the Actions column. | The column should contain three buttons: Edit draft; Approve draft; Reject draft. | |
6. Click the Edit draft button. | One should see a modal for editing a product as draft. | |
7. Remove unique ID and click the Save button. | Information should appear below the field that the field cannot be empty. User should be informed that changes cannot be saved. | |
8. Click the Cancel button. | One should be moved to the draft list. | |
9. Click the Approve draft button. | One should be moved to the Draft approval page. | |
10. Click the Cancel button. | One should be moved to the draft list. | |
11. Click the Approve draft button again. | One should be moved to the Draft approval page. | |
12. Click the Approve button. | Draft should be approved. User should be moved to the draft list page and receive the message that the draft has been approved successfully. | |
13. Go to the Product page. | One should see the table with products, main information and buttons for performing actions. Fields in a product attributes should not be editable. | |
14. Hover over any product. | Action buttons should be visible in the last column: Edit attributes of the product; Classify the product; Delete the product. | |
15. Click the Edit attributes of the product button. | One should be redirected to the product details page. | |
16. Verify if the tabs are visible on the right: Attributes; Completeness; Categories; Associations; Comments; History and Current Draft. | The tabs should be visible. | |
17. Check if the draft edit button is visible on the right. | The button should be visible. | |
18. Click on the Current draft tab | There should be information that there is no draft for this product yet. And one should see a button for edit product as a draft. | |
19. Click the Edit as a draft button. | Now the fields in the product attributes should be editable. There should be a button to save the draft and information under the button that the user is on the editing page. | |
20. Remove the UNIQUE ID and click the Save Draft button. | Information should appear below the field that the field cannot be empty. The user should be notified that the changes cannot be updated. | |
21. Enter the new product ID and click the Save draft button. | A message should appear to the user that the changes have been updated.Under the Save Draft button should appear information when the last draft was updated. | |
22. Go to Activity > Draft and verify a list of drafts. | A list should contain the newly-created draft.The Changes column should contain information on what has changed and how it was previous and how it is now. | |
23. Hover over an existing draft. | A checkbox should appear on the left site. | |
24. Select the checkbox. | Additional information and options should appear at the bottom of the page. | |
25. Verify additional options. | One should see information that one option has been selected, the ability to select more drafts and the option to execute bulk approve. | |
26. Select the All visible option. | All drafts on the page should be marked. | |
27. Select the All option. | All drafts on all pages should be marked. | |
28. Select the None option. | All drafts should be unchecked and the options bar at the bottom of the page should no longer be visible. | |
29. Go to the Product page, select any product model and edit it as a draft. | A draft edit page should be visible. | |
30. Go to the Associations tab. | One should see the screen for adding an association to a product. | |
32. Click the Add Association button. | One should see the Add Substitution associations screen. | |
33. Select several products and click the Confirm button. | Selected products should now be visible in the association tab. | |
34. Click again the Add association button, select an entire next page with product to the association and click the Confirm button. | Selected products should now be visible in the association tab. | |
35. Go to the second page of added products. | One should see the second page. | |
36. Remove some associated products. | Under the Save button an information should be visible that there are unsaved changes. | |
37. Click the Save button. | An information should appear for a user that the changes have been saved but under the Save button no information should be displayed. | |
38. Go to the Categories tab. | There should be a page to choose the category. | |
39. Select some categories. | New categories should be selected and information should appear under the Save button that there are unsaved changes. | |
40. Click the Save button. | An information should appear for a user that the changes have been saved but under the Save button no information should be displayed. | |
41. Go to the Attributes tab and remove a value from some attributes. | e.g. Price,.... | The values should be removed. |
42. Enter values that do not match field validation and click the Save draft button. | ||
e.g. for the price field enter the word "each". | A message should appear to the user that the changes cannot be saved, and an error information should appear below fields. | |
43. Enter the correct data in all fields where the error appears and click the Save button. | Information about errors should disappear and a user should receive a message that the changes have been saved. | |
44. Go to Activity > Draft and approve the newly-created draft. | Draft should be approved and the user should receive a confirmation message. | |
45. Go to the Settings > Attributes page. | The page with attributes should be visible. | |
46. Delete one attribute that belongs to the family whose products are on the draft list. | The attribute should be removed. | |
47. Go to the draft list. | The list of drafts should still show previously edited products. | |
48. Open an additional tab and go to the draft list. | A list of drafts should be visible in the additional tab. | |
49. In the first tab open the edition of a draft, and in the second tab, delete or approve the same draft. | In the second tab draft should be removed/approved. | |
50. Go to the first tab in which the draft edition is open and click the Save button. | There should be information for a user that the draft has already been removed/approved. | |
51. Go to My Account and change the interface to French. | The interface should be changed. | |
52. Go through all the steps of this test case again checking that all system data are translated into French. | All system data and messages displayed to the user should be displayed in French (or should have the prefix FR). |
Edited by Joanna