<div dir="ltr">Niklas and I have been pairing on this today, but we did not find the cause of the problem.<div><br></div><div>If you run font_selection.feature file[1], all scenarios pass if KEEP_BROWSER_OPEN is set to true:</div>

<div><br></div><div><br></div><div><br></div><div>$ export KEEP_BROWSER_OPEN=true<br></div><div><div>$ bundle exec cucumber features/font_selection.feature </div><div>Using the default profile...</div><div>................................</div>

<div><br></div><div>4 scenarios (4 passed)</div><div>29 steps (29 passed)</div><div>3m44.560s</div></div><div><br></div><div><br></div><div><br></div><div>If the environment variable is not set to true, all tests fail:</div>

<div><br></div><div><br></div><div><br></div><div><div>$ export KEEP_BROWSER_OPEN=nein</div><div>$ bundle exec cucumber features/font_selection.feature </div><div>Using the default profile...</div><div>.........F........F........F.......F</div>

<div><br></div><div>Failing Scenarios:</div><div>cucumber features/font_selection.feature:17 # Scenario: Font selector appears</div><div>cucumber features/font_selection.feature:22 # Scenario: Discarding live preview of content font</div>

<div>cucumber features/font_selection.feature:30 # Scenario: Discarding live preview of interface font</div><div>cucumber features/font_selection.feature:38 # Scenario: Applying the live preview of interface font</div><div>

<br></div><div>4 scenarios (4 failed)</div><div>29 steps (29 passed)</div><div>3m13.416s</div></div><div><br></div><div><br></div><div>If a scenario is executed with more verbose output:</div><div><br></div><div><br></div>

<div><br></div><div><div>$ bundle exec cucumber --verbose --format pretty features/font_selection.feature:17 </div><div>(...)</div><div>(...)/UniversalLanguageSelector/tests/browser/features/support/hooks.rb:19:in `After'<br>

</div><div><br></div><div>Failing Scenarios:</div><div>cucumber features/font_selection.feature:17 # Scenario: Font selector appears</div><div><br></div><div>1 scenario (1 failed)</div><div>6 steps (6 passed)</div><div>1m3.306s</div>

</div><div><br></div><div><br></div><div><br></div><div>It fails at hooks.rb, line 19[2], but that makes no sense, since the page opens just fine, and everything works fine if the browser stays open.</div><div><br></div>
<div>
I will further investigate the problem this week, but help is appreciated.</div><div><br></div><div>Željko</div><div>--</div><div>1: <a href="https://github.com/wikimedia/mediawiki-extensions-UniversalLanguageSelector/blob/master/tests/browser/features/font_selection.feature">https://github.com/wikimedia/mediawiki-extensions-UniversalLanguageSelector/blob/master/tests/browser/features/font_selection.feature</a></div>

<div>2: <a href="https://github.com/wikimedia/mediawiki-extensions-UniversalLanguageSelector/blob/master/tests/browser/features/support/hooks.rb#L19">https://github.com/wikimedia/mediawiki-extensions-UniversalLanguageSelector/blob/master/tests/browser/features/support/hooks.rb#L19</a></div>

</div>