I have a test that I am trying to automate for work that I will replicate steps - Opening the settings/closing the settings window
Writing in python - given when then gherkin language
Feature: Global Visibility Settings (TCOE-T16)
Background:
Given I open a browser
Then I select an Event
And I open Global Visibility Settings
Scenario:
Then I toggle CDIF slider off
Scenario:
Then I toggle CDIF slider on
I've tried to see if there is a possibility of doing like a background scenario for the test - but this is the only test cases that I am writing up that will go in and out of the global visibility settings bc I am verifying the toggle buttons can be turned off/on I've tried to write the feature file to open settings toggle button - close window - open settings toggle button back on - close window
Feature: Global Visibility Settings (TCOE-T16)
Background:
Given I open a browser
Then I select an Event
Scenario:
And I open Global Visibility Settings
Then I toggle CDIF slider off
And close window
And open Global Visibility Settings
Then I toggle CDIF slider on