Test plan for sections
Test cases
Number Description CA01 Create section CA02 Edit section CA03 Delete section
Test cycles
CA01 Create section
For creating a section you have to log in as admin and then you have to get into administration, particulary in the menu Section. Then you have to click Add section buttom. The fields that has a section are:
- Name (required field): it's the name of the section.
- Slug (required field): it's the slug of the section. It's automatically completed when you write the name.
- Publication status (required field): you can choose between 3 values: deaft(it's not visible in public view) , pending, published(it's visible in public view).
- Main image: it's an image that represents the section.
Test cases
- CA01 - Cl01. Basic success test case. Create a section completing the fields with the following values, the section must be visible in public view with name and main image:
- Name: Section CA01-Cl01
- Slug: it's autocompleted
- Publication status: Published
- Main image: one test image with .jpg extension.
- CA01 - Cl02. Publication workflow. Here we test the different publication status:
- Name: CA01-Cl02
- Slug: it's autocompleted
- Publication status: first we set it to published and we check that the section is visible in public view. Then we set it to draft/pending and we check that the section now is not visible in public view.
- CA01 - Cl03. Create two sections completing the field name with the same value. System should warn us that exists a section with that name already.
- Name: CA01 - Cl03
- CA01 - Cl04. Ordering sections. Sections can be ordered with drag & drop method in changelist.
- Name: CA01-Cl04fs(first section), CA01-Cl04ss(second section)
- Slug: it's autocompleted
- Publication status: published
- CA01 - Cl05. Text fields validation. Complete text fields (name) with:
- International characters like ñ or ç. We should be able to create sections with a name that contains ñ or ç.
- A very long string or text. We have to check that it doesn't affect the layout.
- CA01 - Cl06. Required fields validation. Try to save a section with empty required fields (name, slug, publication status) and check that system warn us that those fields are required.
- CA01 - Cl07. Numeric fields validation. Complete numeric fields (order) with:
- Not numbers. Check that system warn us that this field is numeric.
- CA01 - Cl08. Slug validation. Complete slug field with:
- International characters like ñ or ç. We shouldn't be able to create sections with a name that contains ñ or ç.
- A very long string or text, differet from name. We have to check that it doesn't affect layout or the creating section process.
- CA01 - Cl09. Section manage buttoms. Check that when a section is created it appears a rounded-dropdown menu with the same name of the section in which you can find the following items: custom style, documents, main menu, event ... This elements depend on merengue settings.
- Name: CA01-Cl09
- Publication status: draft.
TODO Adding main content to a section. Complete after finishing content section
CA02 Edit section
For editing a section you have to log in as admin and then you have to get into administration, particulary in the menu Section. Then you have to click the section that you want to edit. After making changes, you have to click save buttom.ç Test cases
- CA02 - Cl01. Basic success test case. Edit a section changing the fields of CA01-Cl01 with the following values:
- Name: Section CA01-Cl01modified
- Slug: it's autocompleted
- Publication status: Published
- Main image: one test image with .jpg extension.
- CA02 - Cl02. Edit a section changing slug field.
- CA02 - Cl03. Edit a section changing order. Check that in public view it has effect.
CA03 Delete section
For deleting a section you have to log in as admin and then you have to get into administration, particulary in the menu Section. Then you have to click the section that you want to edit. Finally you have to click delete link. Test cases
- CA03 - Cl01. First create a section and then delete it. Verify that it doesn't appear in admin section list or in public view.
- Name: Section CA01-Cl03
- Slug: it's autocompleted
- Publication status: Published
