<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/36066?s=20&v=4" /><strong>pablobm</strong> left a comment <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6424#issuecomment-3365049943">(openstreetmap/openstreetmap-website#6424)</a></div>
<p dir="auto">Found something very annoying while fixing <code class="notranslate">test/system/embed_test.rb</code>. I have left the relevant section of the PR untidy on purpose: discussing here before I clean it up properly, to see if people have thoughts. Commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/openstreetmap/openstreetmap-website/commit/7d992b9560cddbd1e1a0cb7e56ae2c04ec9e7c0e/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/commit/7d992b9560cddbd1e1a0cb7e56ae2c04ec9e7c0e"><tt>7d992b9</tt></a></p>
<p dir="auto">From what I can tell, Rails+Capybara don't properly "reset" the remote Selenium when running a test with a different <code class="notranslate">driven_by</code> declaration. After trying a few things, what worked for me was to have different Selenium containers, one to be used for each configuration. This way we don't need to reset anything.</p>
<p dir="auto">First issue I see is that this is not scalable. Not a problem right now as there are only three configurations. Could be a problem in the future if for any reason we want to test more.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6424#issuecomment-3365049943">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJIMF3HIWZJKXXNIQD3VZBBJAVCNFSM6AAAAACIAUD6DKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGNRVGA2DSOJUGM">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKMOHANOVKPBQDBXW33VZBBJA5CNFSM6AAAAACIAUD6DKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTWISKLFO.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6424/c3365049943</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6424#issuecomment-3365049943",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6424#issuecomment-3365049943",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>