Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WZD - Feature - Validate paginator on Rule page #4648

Closed
Tracked by #4578
mauceballos opened this issue Oct 4, 2022 · 5 comments · Fixed by #4663
Closed
Tracked by #4578

WZD - Feature - Validate paginator on Rule page #4648

mauceballos opened this issue Oct 4, 2022 · 5 comments · Fixed by #4663
Assignees

Comments

@mauceballos
Copy link
Contributor

mauceballos commented Oct 4, 2022

Wazuh Elastic Rev Security
4.3.8 7.17.4 4308 WZD
Browser
Chrome

Describe
The feature increases the coverage of the Rules Module, and Validate paginator option of the rule page continues to work correctly.

Feature

Given the wazuh admin user is logged
When the user navigates to management rules
And the user see that the rule list is paginated
And the user clicks on another page
And a new set of rules it's displayed
And the user clicks on page 1
Then the first page of rules it displayed

@mauceballos mauceballos self-assigned this Oct 4, 2022
@mauceballos
Copy link
Contributor Author

Draft Feature

Feature: Validate paginator on Rule page

    As a wazuh user
    i want to see the Rules pages
    in order to manage them

    Background: the user navigate to the Rules page
        Given The wazuh admin user is logged
        When The user navigates to rules
        And The user see that the rule list is paginated

    Scenario: Rules are displayed when user clicks the first page
        When The user clicks on another page
        And A new set of rules it's displayed
        And The user clicks on page 1
        Then The first page of rules it displayed


    Scenario: Rules are displayed - Select a next page
        When The rule page is not the last available
        And The user clicks on the next page button
        Then The user should be redirected to the next rule page available


    Scenario: Rules are displayed - Select a previous page
        When The rule page is not the first available
        And The user clicks on the previos page button
        Then The user should be redirected to the next rule page available


    Scenario: Rules are displayed - Last Page
        When The rule page is the last available
        Then The next page button should be disable


    Scenario: Rules are displayed - First Page
        When The rule page is the first available page
        Then The previos page button should be disable

@mauceballos
Copy link
Contributor Author

I have an issue with up the wzd.

@mauceballos
Copy link
Contributor Author

After setting the wind from the new environments,
work continues on the issue

2022-10-05_16-29

@mauceballos
Copy link
Contributor Author

mauceballos commented Oct 5, 2022

@mauceballos
Copy link
Contributor Author

mauceballos commented Oct 12, 2022

Feature

Feature: Validate paginator on Rule page

    As a wazuh user
    I want to see the Rules pages
    in order to manage them

    Background: the user navigate to the Rules page
        Given The wazuh admin user is logged
        When The user navigates to rules
        Then The user see that the rule list is paginated

    Scenario: Rules are displayed when user clicks the first page
        When The user clicks on the second page button
        And A new set of rules it's displayed
        And The user clicks on the first page button
        Then The first page of rules it displayed

    Scenario: Rules are displayed - Select a previous page
        When The user clicks on the second page button
        And The rule page is not the first available
        And The user clicks on the previous page button
        Then The user should be redirected to the next rule page available

    Scenario: Rules are displayed - Select a next page
        When The user clicks on the second page button
        And The rule page is not the last available
        And The user clicks on the next page button
        Then The user should be redirected to the next rule page available

    Scenario: Rules are displayed - Last Page
        When The rule page is the last available page
        Then The next page button should be disable

    Scenario: Rules are displayed - First Page
        When The rule page is the first available page
        Then The previous page button should be disable

@mauceballos mauceballos changed the title WZD - Feature - Rules are displayed when user clicks the first page WZD - Feature - Validate paginator on Rule page Oct 12, 2022
This was referenced Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants