I have a behat test that clicks a button which usually opens a url in a new tab.
I can I test that a new tab has been opened after the button has been clicked?
this is the gherkin:
Scenario: Open document in a new tab
Given I am a "Project Admin" for project "x"
And Project "x" has document type "orbitron" with editor "none"
And I create a new orbeon form "orbitron" for project "x" from fixture "OrbitronFilePicker.xhtml"
Then I visit the orbeon new content form for document type "orbitron" in project "x"
And I can see the "file-picker" control
When I enter a valid file picker reference "urn:isite:x:mickeyMouse"
Then I can see the card with "mickeyMouse" header
When I click "Open In New Tab" in the Dropdown Action Menu for "#section-1-control≡xf-383"
Then The document should open in a new tab