Skip to content

Commit

Permalink
Merge pull request #3002 from Sage/cypress_FE_2879
Browse files Browse the repository at this point in the history
test(cypress): remove no needed test cases and comments
  • Loading branch information
KatarzynaQA authored Jun 23, 2020
2 parents e4ae115 + 87db613 commit c83dc0e
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 181 deletions.
52 changes: 1 addition & 51 deletions cypress/features/regression/button.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,6 @@ Feature: Button component
Background: Open Button component default page
Given I open "Button" component page knobs

@positive
Scenario Outline: Set Button size to <size>
When I select size to "<size>"
Then Button height is "<height>"
Examples:
| size | height |
| small | 32 |
| medium | 40 |
| large | 48 |

@positive
Scenario Outline: Set Button subtext to <subtext>
Given I select size to "large"
Expand All @@ -26,19 +16,6 @@ Feature: Button component
# @ignore because of FE-2782
# | &"'<>|

@positive
Scenario Outline: Set Button Type as <buttonType>
When I select buttonType to "<buttonType>"
Then Button font color is "<font-color>"
And Button background color is "<background-color>"
Examples:
| buttonType | font-color | background-color |
| primary | rgb(255, 255, 255) | rgb(0, 129, 93) |
| secondary | rgb(0, 129, 93) | rgba(0, 0, 0, 0) |
| tertiary | rgb(0, 129, 93) | rgba(0, 0, 0, 0) |
| darkBackground | rgb(0, 129, 93) | rgb(255, 255, 255) |
| dashed | rgba(0, 0, 0, 0.9) | rgba(0, 0, 0, 0) |

@positive
Scenario Outline: Set Button component label to <label>
When I set children to <label> word
Expand All @@ -50,41 +27,14 @@ Feature: Button component
# @ignore because of FE-2782
# | &"'<>|

@positive
Scenario: Disable Button
When I disable Button component
Then Button is disabled

@positive
Scenario: Disable and enable Button
Given I disable Button component
When I enable Button component
Then Button is enabled

@positive
Scenario Outline: Change Button icon position to <iconPosition>
Given I check has icon checkbox
And I select iconType to "add"
When I select iconPosition to "<iconPosition>"
Then Button icon position is set to "<iconPosition>"
Examples:
| iconPosition |
| after |
| before |

@positive
Scenario: Verify the click function for a Button component
Given clear all actions in Actions Tab
When I click on "button"
Then click action was called in Actions Tab

@positive
Scenario: Set Button icon to arrow_left_small
Given I check has icon checkbox
When I select iconType to "arrow_left_small"
Then Button icon is set to "arrow_left_small"

@positive
Scenario: Verify dashed outline
When I select buttonType to "dashed"
Then Button background style is "dashed"
Then click action was called in Actions Tab
6 changes: 0 additions & 6 deletions cypress/features/regression/create.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ Feature: Create component
Background: Open Create component page
Given I open "Create" component page

@positive
Scenario: Verify inner content and colors of Create component
# commented because of BDD default scenario Given - When - Then
# When I open "Create" component page
Then Create component has proper inner color "rgb(0, 129, 93)" and background-color "rgb(242, 245, 246)" and border color "rgb(102, 133, 146)"

@positive
Scenario: Verify inner content and colors of Create component on hover state
Given I click outside of the component
Expand Down
24 changes: 1 addition & 23 deletions cypress/features/regression/designSystem/drawer.feature
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,4 @@ Feature: Drawer component
@positive
Scenario: Confirm that animationDuration is set to 3 seconds
When I click on three-second-animation-drawer Drawers arrow 1 time
Then Drawer three-second-animation-drawer animationDuration is set to "3s"

@positive
Scenario: Set expandedWidth to 30%
When I click on expanded-width-30-drawer Drawers arrow 1 time
Then Drawer "expanded-width-30-drawer" expandedWidth is set to "287.390625px"

@positive
Scenario: Set expandedWidth to 62%
When I click on expanded-width-62-drawer Drawers arrow 1 time
Then Drawer "expanded-width-62-drawer" expandedWidth is set to "593.953125px"

@positive
Scenario: Drawer backgroundColor is set to yellow
# commented because of BDD default scenario Given - When - Then
# When I open "background-color-red-drawer" Drawer
Then Drawer "controlled-drawer" backgroundColor is set to "rgb(255, 240, 0)"

@positive
Scenario: Drawer backgroundColor is set to red
# commented because of BDD default scenario Given - When - Then
# When I open "background-color-red-drawer" Drawer
Then Drawer "background-color-red-drawer" backgroundColor is set to "rgb(255, 0, 0)"
Then Drawer three-second-animation-drawer animationDuration is set to "3s"
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ Feature: Design System Duelling Picklist Component
Then unassigned picklist has 20 items
And assigned picklist is empty

@positive
Scenario: Divider between picklists is visible
# commented because of BDD default scenario Given - When - Then
# Given I open Design Systems page "duellingpicklist" component docs page
Then divider is visible

@positive
Scenario: Disable Duelling Picklist
When I check Access to all current and new clients checkbox
Expand Down
8 changes: 1 addition & 7 deletions cypress/features/regression/designSystem/tileSelect.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,4 @@ Feature: Design System TileSelect component
Scenario: Single tile is deselect
Given I click on single tile component
When I click deselect button
Then Single tile is not check

@positive
Scenario: TileSelect is disabled
# commented because of BDD default scenario Given - When - Then
# When I open Design Systems basic "tile-select" component docs page
Then Tile is disabled
Then Single tile is not check
7 changes: 1 addition & 6 deletions cypress/features/regression/help.feature
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,4 @@ Feature: Help component
Examples:
| href |
| mp150ú¿¡üßä |
| !@#$%^*()_+-=~[];:.,?{}&"'<> |

@positive
Scenario: Verify default color for help icon
# When I open "Help" component page
Then icon on preview has "rgba(0, 0, 0, 0.65)" color
| !@#$%^*()_+-=~[];:.,?{}&"'<> |
12 changes: 0 additions & 12 deletions cypress/features/regression/showEditPod.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,6 @@ Feature: Show Edit Pod component
Background: Open ShowEditPod component page
Given I open "ShowEditPod" component page

@positive
Scenario: Verify the inner content of the component
# commented because of BDD default scenario Given - When - Then
# When I open "ShowEditPod" component page
Then Show Edit Pod component has proper content inside itself

@positive
Scenario: Verify color of the edit icon
# commented because of BDD default scenario Given - When - Then
# When I open "ShowEditPod" component page
Then Edit icon has color "rgb(0, 129, 93)"

@positive
Scenario: Enable border checkbox for a Show Edit Pod component
When I check border checkbox
Expand Down
23 changes: 0 additions & 23 deletions cypress/features/regression/test/accordion.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Feature: Accordion component
Background: Open Accordion component page
Given I open basic Test "Accordion" component page

# will remove when Applitools will be implemented
@positive
Scenario Outline: Set Accordion iconType to <iconType>
When I select iconType to "<iconType>"
Expand All @@ -14,7 +13,6 @@ Feature: Accordion component
| chevron_down |
| dropdown |

# will remove when Applitools will be implemented
@positive
Scenario Outline: Open accordion and set Accordion iconType to <iconType>
Given I expand accordionRow via click
Expand All @@ -25,7 +23,6 @@ Feature: Accordion component
| chevron_down |
| dropdown |

# will remove when Applitools will be implemented
@positive
Scenario Outline: Set Accordion iconAlign to <iconAlign>
When I select iconAlign to "<iconAlign>"
Expand All @@ -35,26 +32,6 @@ Feature: Accordion component
| left |
| right |

# will remove when Applitools will be implemented
@positive
Scenario Outline: Set Accordion type to <type>
When I select type to "<type>"
Then Accordion type property on preview is set to "<type>"
Examples:
| type |
| primary |
| secondary |

# will remove when Applitools will be implemented
@positive
Scenario Outline: Verify color pallete for <type> type Accordion
# When I open "Accordion" component page
Then Accordion has proper "<type>" type color "<color>" palette
Examples:
| type | color |
| primary | rgb(204, 214, 219) |
| secondary | rgb(204, 214, 219) |

@positive
Scenario: Check expansion toggled event for the Accordion row on focus
Given clear all actions in Actions Tab
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ Feature: Style overriden Action Popover component
Background: Style overriden Action Popover component
Given I open style override Test "Action Popover" component page in noIframe

# will remove when Applitools will be implemented
@positive
Scenario: Open style overriden Action Popover component page and verify overriden styles are rendered properly
# When I open style override Test "Action Popover" component page in noIframe
Then Action Popover overriden styles rendered properly

@positive
Scenario: Overriden button opens Action Popover
When I click the menu button element in noiFrame
Expand Down
6 changes: 0 additions & 6 deletions cypress/features/regression/test/badge.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ Feature: Badge component
Background: Open Badge component page
Given I open basic Test "Badge" component page

@positive
Scenario: Badge component rendered properly
# commented because of BDD default scenario Given - When - Then
# When I open basic Test "Badge" component page
Then Badge component rendered properly

@positive
Scenario Outline: Set Badge component to <counter>
When I set counter to "<counter>"
Expand Down
35 changes: 1 addition & 34 deletions cypress/features/regression/test/batchSelection.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,11 @@ Feature: Batch selection component
Background: Open Batch selection component page
Given I open basic Test "Batch selection" component page

# will remove when Applitools will be implemented
@positive
Scenario Outline: Batch selection component <icon> icon is rendered properly
# commented because of BDD default scenario Given - When - Then
# When I open basic Test "Batch selection" component page
Then Batch selection component is rendered properly
And Batch selection <index> button is rendered properly with proper "<icon>" icon
Examples:
| index | icon |
| 0 | csv |
| 1 | bin |
| 2 | pdf |

# will remove when Applitools will be implemented
@positive
Scenario: Disable Batch selection component
When I check disabled checkbox
Then Batch selection component is disabled

# will remove when Applitools will be implemented
@positive
Scenario: Hide Batch selection component
When I check hidden checkbox
Then Batch selection component is hidden

# will remove when Applitools will be implemented
@positive
Scenario Outline: Set selectedCount Batch selection component to <selectedCount>
When I set selectedCount to "<selectedCount>"
Expand All @@ -38,16 +17,4 @@ Feature: Batch selection component
| selectedCount |
| 0 |
| 10 |
| 100 |

# will remove when Applitools will be implemented
@positive
Scenario Outline: Set Batch selection colorTheme to <colorTheme>
When I select colorTheme to "<colorTheme>"
Then Batch selection component colorTheme "<colorTheme>" is set to "<color>"
Examples:
| colorTheme | color |
| dark | rgb(0, 51, 73) |
| transparent-white | rgba(0, 0, 0, 0) |
| light | rgb(179, 194, 200) |
| transparent-base | rgba(0, 0, 0, 0) |
| 100 |
1 change: 0 additions & 1 deletion cypress/features/regression/test/search.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Feature: Search component
| mp150ú¿¡üßä |
| !@#$%^*()_+-=~[];:.,?{}&"'<> |

# will remove when Applitools will be implemented
@positive
Scenario: Verify proper color for search icon button
Given Type "Sea" text into search input
Expand Down

0 comments on commit c83dc0e

Please sign in to comment.