features.steps.r_012_steps

Python steps file for R_012.

Attributes

Functions

step_given_supported_languages(context)

Ensures that the system supports multiple languages.

step_given_new_user_with_browser_language(context, ...)

Simulates a new user accessing the system with a specified browser language.

step_then_ui_displays_language(context, language)

Ensures that the UI is displayed in the correct language.

step_when_user_selects_language(context, language)

Simulates a user selecting a different language.

step_when_user_relogin(context)

Simulates a user logging out and logging back in.

Module Contents

features.steps.r_012_steps.TRANSLATION_LOOKUP[source]
features.steps.r_012_steps.supported_languages[source]
features.steps.r_012_steps.step_given_supported_languages(context)[source]

Ensures that the system supports multiple languages.

Parameters:

context (runner.Context) – Behave context.

Return type:

None

features.steps.r_012_steps.step_given_new_user_with_browser_language(context, language)[source]

Simulates a new user accessing the system with a specified browser language.

Parameters:
  • context (runner.Context) – Behave context.

  • language (str) – The language detected from the user’s browser settings.

Return type:

None

features.steps.r_012_steps.step_then_ui_displays_language(context, language)[source]

Ensures that the UI is displayed in the correct language.

Parameters:
  • context (runner.Context) – Behave context.

  • language (str) – Expected language for the UI.

Return type:

None

features.steps.r_012_steps.step_when_user_selects_language(context, language)[source]

Simulates a user selecting a different language.

Parameters:
  • context (runner.Context) – Behave context.

  • language (str) – Language chosen by the user.

Return type:

None

features.steps.r_012_steps.step_when_user_relogin(context)[source]

Simulates a user logging out and logging back in.

Parameters:

context (runner.Context) – Behave context.

Return type:

None