<p dir="auto">The system test from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2634795627" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5302" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5302/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5302">#5302</a> sometimes fails:</p>
<pre class="notranslate"><code class="notranslate">Failure:
UserLocationChangeTest#test_User_can_change_their_location [test/system/user_location_change_test.rb:20]:
expected to find text "Test Location" in "OpenStreetMap\nEdit\nHistory\nExport\nGPS Traces\nUser Diaries\nCommunities\nCopyright\nHelp\nAbout\nUser 597\nUser 597\nMy Edits 0\nMy Notes 0\nMy Traces 0\nMy Diary 0\nMy Comments 0\nMy Account\nMapper since: April 26, 2025 Last map edit: No activity yet\nEdit Profile"

bin/rails test test/system/user_location_change_test.rb:8
</code></pre>
<p dir="auto">It could be because it leaves the edit profile page before sending the update request, or because arriving at the view profile page before the changes propagate. But <code class="notranslate">visit user_path(user)</code> is unnecessary because clicking <em>Update Profile</em> redirects you to that page.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5955'>https://github.com/openstreetmap/openstreetmap-website/pull/5955</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5955/commits/89c48a4bb483695ee04fa483c2625aa94782baba" class="commit-link">89c48a4</a>  Don't visit profile page after tested profile location update</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5955/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5955/files#diff-d8089f49c0e3ef52b3daa8f5053f5807e1655ca1f231d422e66359fdf01b8b0f">test/system/user_location_change_test.rb</a>
    (12)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5955.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5955.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5955.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5955.diff</a></li>
</ul>

<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/5955">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLP7II73CDOVJZW4RF323OVLTAVCNFSM6AAAAAB35RODIWVHI2DSMVQWIX3LMV43ASLTON2WKOZTGAZDEMBXGEYDOMA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIWZOARWNRPSW53H2T23OVLTA5CNFSM6AAAAAB35RODIWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLIIJFDY.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/5955</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/5955",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5955",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>