Skip to content

Commit

Permalink
fix for test suite execution from github actions (#4750)
Browse files Browse the repository at this point in the history
  • Loading branch information
mauceballos authored Oct 24, 2022
1 parent 430fe82 commit ce65526
Show file tree
Hide file tree
Showing 18 changed files with 34 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Validate that the config to added new agent
I want to add a new agent
in order to manage them

@agent
@agent @actions
Scenario Outline: Validate the information to add a new Agent
Given The wazuh admin user is logged
When The user navigates to the agent page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Feature: Validate that the pinned filter label is displayed - from event page
And The user navigates to the agent page
And The user navigates to the agent dashboard

@filter
@filter @actions
Scenario Outline: The user add and pin filter - Check across the modules - from event page - <Module Name>
When The user navigates to agentModule <Module Name>
And The user moves to events page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Feature: Validate that the pinned filter label is displayed
And The user navigates to the agent page
And The user navigates to the agent dashboard

@filter
@filter @actions
Scenario Outline: The user add and pin filter - Check across the modules <Module Name>
When The user navigates to agentModule <Module Name>
And The user adds a new filter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Feature: Validate that the added filter label is displayed from the events page
in order to manage them
Background:
Given The wazuh admin user is logged
@filter

@filter @actions
Scenario Outline: The user add a new filer from the events page <Module Name>
When The user goes to <Module Name>
And The user moves to events page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feature: Validate that the added filter label is displayed
Background:
Given The wazuh admin user is logged

@filter
@filter @actions
Scenario Outline: The user add a new filer <Module Name>
When The user goes to <Module Name>
And The user adds a new filter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feature: Pin filter - from dashboard to event page
Background:
Given The wazuh admin user is logged

@filter
@filter @actions
Scenario Outline: The user add and pin new filer - across the modules - from dashboard to event page <Module Name>
When The user goes to <Module Name>
And The user adds a new filter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feature: Pin filter - from event page
Background:
Given The wazuh admin user is logged

@filter
@filter @actions
Scenario Outline: The user add and pin new filer - across the modules - from event page <Module Name>
When The user goes to <Module Name>
And The user moves to events page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Should Displayes a message to restart the cluster after saves
i want to edit a custom decoder
in order to check if the save message it's displayed

@decoders
@decoders @actions
Scenario: Validate creation message is displayed after creating a new decoder
Given The wazuh admin user is logged
When The user navigates to decoders
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ Feature: Should List Decoders And Show The Pager
i want to see the Decoders pages
in order to manage them

@decoder
@decoder @actions
Scenario: Should List Decoders And Show The Pager
Given The wazuh admin user is logged
When The user navigates to decoders
Then The user should see the decoders

@decoder
@decoder @actions
Scenario: Should List Custom Decoders And Show The Pager
Given The wazuh admin user is logged
When The user navigates to decoders
When The user clicks the custom decoders button
Then The user should see the decoders

@decoder
@decoder @actions
Scenario: Should can edit a decoder
Given The wazuh admin user is logged
When The user navigates to decoders
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Should Displayes a warning modal - Management - edit groups
i want to edit a custom rule
in order to check if the warning no saving toast is displayed.

@rules
@rules @actions
Scenario: Validate confirmation when closing modal without saving - Management - edit groups
Given The wazuh admin user is logged
When The user navigates to groups page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Should Displayes a message to restart the cluster after saves
i want to edit a custom rule
in order to check if the saves message its displayed

@rules
@rules @actions
Scenario: Validate creation message is displayed after creating a new rule
Given The wazuh admin user is logged
When The user navigates to rules
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Should Displayes a warning modal - Management - edit rules
i want to edit a custom rule
in order to check if the warning no saving toast is displayed.

@rules
@rules @actions
Scenario: Validate confirmation when closing modal without saving - Management - edit rules
Given The wazuh admin user is logged
When The user navigates to rules
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Validate refresh option is working fine
i want to edit a custom rule
in order to check if the warning no saving toast is displayed.

@rules
@rules @actions
Scenario: Rules are displayed after refreshing the page
Given The wazuh admin user is logged
When The user navigates to rules
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,34 @@ Feature: Validate paginator on Rule page
Given The wazuh admin user is logged
When The user navigates to rules
Then The user sees that the rule list is paginated


@actions
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 is displayed
And The user clicks on the first page button
Then The first page of rules is displayed


@actions
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


@actions
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


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


@actions
Scenario: Rules are displayed - First Page
When The rule page is the first available page
Then The previous page button should be disabled
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Wazuh version information
I want to check the about information
in order to see information about the system

@about
@about @actions
Scenario: Check Wazuh version information
Given The wazuh admin user is logged
When The user navigates to About settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Run health checks
I want to run the health check
in order to validate everything is connected

@miscellaneous
@miscellaneous @actions
Scenario: Run health check
Given The wazuh admin user is logged
When The user navigates to Miscellaneous settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Add/Delete Sample data to modules
I want to add sample data indices
in order to check modules

@sampleData
@sampleData @actions
Scenario: Add all sample data
Given The wazuh admin user is logged
When The user navigates to Sample data settings
Expand All @@ -15,7 +15,7 @@ Feature: Add/Delete Sample data to modules
| threat detection and response |
Then The add data success toasts are displayed

@sampleData
@sampleData @actions
Scenario: Delete all sample data
Given The wazuh admin user is logged
When The user navigates to Sample data settings
Expand Down
8 changes: 4 additions & 4 deletions test/cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"cy:install": "npx cypress install --force",
"test": "echo \"Error: no test specified\" && exit 1",
"cypress:run-headless": "cypress run --headless --browser chrome",
"cypress:run-headless:github-actions:xpack": "cypress run --headless --browser chrome --config baseUrl=https://kibana:5601/ --env type=xpack",
"cypress:run-headless:github-actions:basic": "cypress run --headless --browser chrome --config baseUrl=http://kibana:5601/ --env type=basic",
"cypress:run-headless:github-actions:odfe": "cypress run --headless --browser chrome --config baseUrl=http://kibana:5601/ --env type=odfe",
"cypress:run-headless:github-actions:wzd": "cypress run --headless --browser chrome --config baseUrl=https://wazuh.dashboard:5601/ --env type=wzd",
"cypress:run-headless:github-actions:xpack": "cypress-tags run -e TAGS=\"@actions\" --headless --browser chrome --config baseUrl=https://kibana:5601/ --env type=xpack -e TAGS=\"@actions\"",
"cypress:run-headless:github-actions:basic": "cypress-tags run -e TAGS=\"@actions\" --headless --browser chrome --config baseUrl=http://kibana:5601/ --env type=basic -e TAGS=\"@actions\"",
"cypress:run-headless:github-actions:odfe": "cypress-tags run -e TAGS=\"@actions\" --headless --browser chrome --config baseUrl=http://kibana:5601/ --env type=odfe -e TAGS=\"@actions\"",
"cypress:run-headless:github-actions:wzd": "cypress-tags run -e TAGS=\"@actions\" --headless --browser chrome --config baseUrl=https://wazuh.dashboard:5601/ --env type=wzd -e TAGS=\"@actions\"",
"cypress:run-headless:xpack": "cypress run --headless --browser chrome --config baseUrl=https://localhost:5601/ --env type=xpack",
"cypress:run-headless:basic": "cypress run --headless --browser chrome --config baseUrl=http://localhost:5601/ --env type=basic",
"cypress:run-headless:odfe": "cypress run --headless --browser chrome --config baseUrl=http://localhost:5601/ --env type=odfe",
Expand Down

0 comments on commit ce65526

Please sign in to comment.