Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Add some doc of the @insulated tag - #292

Closed
phil-davis wants to merge 1 commit into
Behat:masterfrom
phil-davis:patch-2
Closed

phil-davis wants to merge 1 commit into
Behat:masterfrom
phil-davis:patch-2

Conversation

@phil-davis

Copy link
Copy Markdown
Contributor

It is a bit difficult to know how much detail to write. For example, Mink resetSessions() just does deleteAllCookies() - but writing that detail here would mean that it depends on the implementation of Mink (which might do different things in future), and so such doc here would go out of date and be misleading.

The reason I found this stuff is that Microsoft Edge has a problem with its webdriver and deleteAllCookies(). The workaround for the Behat-MinkExtension-Mink-Selenium-EdgeWebDriver chain is to use @insulated on all scenarios. Then the code path never calls deleteAllCookies() so we get lucky and can do Edge UI testing with Behat... Can't/shouldn't really document that here! @insulated was not intentionally provided as a fix for the Edge webdriver!

It is a bit difficult to know how much detail to write. For example, Mink ``resetSessions()`` just does ``deleteAllCookies()`` - but writing that detail here would mean that it depends on the implementation of Mink (which might do different things in future), and so such doc here would go out of date and be misleading.

The reason I found this stuff is that Microsoft Edge has a problem with its webdriver and deleteAllCookies(). The workaround for the Behat-MinkExtension-Mink-Selenium-EdgeWebDriver chain is to use ``@insulated`` on all scenarios. Then the code path never calls ``deleteAllCookies()`` so we get lucky and can do Edge UI testing with Behat... Can't/shouldn't really document that here! ``@insulated`` was not intentionally provided as a fix for the Edge webdriver!
@phil-davis

Copy link
Copy Markdown
Contributor Author

Seems that care factor in responding/reviewing/accepting PRs here is low.

@phil-davis phil-davis closed this Aug 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant