Global Settings

The globals configuration in Webship-JS.
It contains general settings that control test behavior, such as the assets folder path and minimum wait times between pages, scenarios, and steps, helping improve test stability and flexibility.

 

globals: {
  assets_folder : "tests/assets/",
  minimum_wait_time: {
    page: 3000,
    before_scenario: 0,
    after_scenario: 0,
    before_step: 0,
    after_step: 0
  }
}


assets_folder:
The path to the folder that contains static files (such as images, data files, or test assets) used during test execution.

minimum_wait_time.page:
Minimum wait time (in milliseconds) after a page is loaded, to ensure all elements are rendered before the next step.

minimum_wait_time.before_scenario:
Wait time before starting each scenario. Useful for setting up any necessary conditions.

minimum_wait_time.after_scenario:
Wait time after finishing each scenario. Can be used for cleanup or transition.

minimum_wait_time.before_step:
Delay before executing each individual step. Helps with visual debugging or timing issues.

minimum_wait_time.after_step:
Delay after each step, allowing the app to settle before continuing.