Skip to content

Commit

Permalink
Use scenario outline to run same steps over multiple examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jeawhanlee committed Nov 26, 2024
1 parent 72d04d8 commit ce853cd
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions src/features/delay-js.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,33 @@ Feature: No Regression with delayjs script udpate
And I go to 'wp-admin/options-general.php?page=wprocket#dashboard'
And I save settings 'fileOptimization' 'delayJs'

Scenario: Shouldn't cause console error when enabling Delay JS with theme
When theme is activated
And I log out
Scenario Outline: Shouldn't cause console error when enabling Delay JS with theme
Given theme "<theme>" is activated
And visual regression reference is generated
When I log out
And I visit site url
And move the mouse
Then no error in the console different than nowprocket page ''

Scenario: Should the mobile menu work While Delay JS is enabled
When theme is activated
Then I must not see any visual regression 'delayJsMobile'

Scenario: Should links be clickable While Delay JS is enabled
When I save settings 'cache' 'mobileDeviceCache'
And I save settings 'cache' 'mobileDeviceSeparateCache'
When theme is activated
And I log out
And I visit '' in mobile view
And expand mobile menu
And I click on link
Then page navigated to the new page 'about-us'

Scenario: Shouldn't cause console error when enabling Delay JS with WPML
When I go to 'wp-admin/plugins.php'
When I log in
And I go to 'wp-admin/plugins.php'
And activate 'wpml-multilingual-cms' plugin
And I go to 'wp-admin/admin.php?page=sitepress-multilingual-cms/menu/languages.php'
And wpml directory is enabled
And I log out
And I visit site url
Then no error in the console different than nowprocket page 'ar'
Then no error in the console different than nowprocket page 'ar'

Examples:
| theme |
| astra |
| Divi |
| flatsome |
| genesis-sample-develop |

0 comments on commit ce853cd

Please sign in to comment.