Skip to content

Commit

Permalink
Add a 1-second timeout for waiting for pillar data to be applied in t…
Browse files Browse the repository at this point in the history
…he test scenario
  • Loading branch information
wweellddeerr committed Jan 20, 2024
1 parent 5d416de commit a6623e3
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions testsuite/features/secondary/min_salt_formulas_advanced.feature
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ Feature: Use advanced features of Salt formulas
And I enter "pw3" as "testing#pw_opt"
And I click on "Save Formula"
Then I should see a "Formula saved" text
And the pillar data for "testing:str" should be "text1" on "sle_minion"
When I wait for "1" seconds
Then the pillar data for "testing:str" should be "text1" on "sle_minion"
And the pillar data for "testing:str_def" should be "text2" on "sle_minion"
And the pillar data for "testing:str_or_null" should be "text3" on "sle_minion"
And the pillar data for "testing:str_opt" should be "text4" on "sle_minion"
Expand All @@ -104,7 +105,8 @@ Feature: Use advanced features of Salt formulas
And I click on "Clear values" and confirm
And I click on "Save Formula"
Then I should see a "Formula saved" text
And the pillar data for "testing:str" should be "" on "sle_minion"
When I wait for "1" seconds
Then the pillar data for "testing:str" should be "" on "sle_minion"
And the pillar data for "testing:str_def" should be "defvalue" on "sle_minion"
And the pillar data for "testing:str_or_null" should be "None" on "sle_minion"
And the pillar data for "testing" should not contain "str_opt" on "sle_minion"
Expand Down Expand Up @@ -141,7 +143,8 @@ Feature: Use advanced features of Salt formulas
And I enter "pw1" as "testing#pw"
And I click on "Save Formula"
Then I should see a "Formula saved" text
And the pillar data for "testing:str" should be "text1" on "sle_minion"
When I wait for "1" seconds
Then the pillar data for "testing:str" should be "text1" on "sle_minion"
And the pillar data for "testing:str_def" should be "defvalue" on "sle_minion"
And the pillar data for "testing:str_or_null" should be "None" on "sle_minion"
And the pillar data for "testing" should not contain "str_opt" on "sle_minion"
Expand Down Expand Up @@ -188,7 +191,8 @@ Feature: Use advanced features of Salt formulas
And I enter "min_pw3" as "testing#pw_opt"
And I click on "Save Formula"
Then I should see a "Formula saved" text
And the pillar data for "testing:str" should be "min_text1" on "sle_minion"
When I wait for "1" seconds
Then the pillar data for "testing:str" should be "min_text1" on "sle_minion"
And the pillar data for "testing:str_def" should be "min_text2" on "sle_minion"
And the pillar data for "testing:str_or_null" should be "min_text3" on "sle_minion"
And the pillar data for "testing:str_opt" should be "min_text4" on "sle_minion"
Expand All @@ -207,7 +211,8 @@ Feature: Use advanced features of Salt formulas
And I click on "Clear values" and confirm
And I click on "Save Formula"
Then I should see a "Formula saved" text
And the pillar data for "testing:str" should be "text1" on "sle_minion"
When I wait for "1" seconds
Then the pillar data for "testing:str" should be "text1" on "sle_minion"
And the pillar data for "testing:str_def" should be "defvalue" on "sle_minion"
And the pillar data for "testing:str_or_null" should be "None" on "sle_minion"
And the pillar data for "testing" should not contain "str_opt" on "sle_minion"
Expand Down

0 comments on commit a6623e3

Please sign in to comment.