<p dir="auto">Let's suppose you want to have a system test that checks if adding comments to notes work. This commenting is done via the api. For the api to work you have to <a href="https://github.com/openstreetmap/openstreetmap-website/blob/master/CONFIGURE.md#oauth-consumer-keys">register the website oauth app</a>. Here I'm adding a test superclass that does this registration in <code class="notranslate">before_setup</code>.</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/4436'>https://github.com/openstreetmap/openstreetmap-website/pull/4436</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4436/commits/fb244998f5bccbfec1e832cdb0ef3c2e357fa804" class="commit-link">fb24499</a> Add system test with osm website oauth app registration</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4436/files">2 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4436/files#diff-960e6e9200fa7ea5eed049f5de24d807cf7c7a4c0434875d23139ff261ddc0fe">test/system/note_comments_test.rb</a>
(20)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4436/files#diff-423cca83005de6a29d5419d202ff255ca6ba33125c3f488af5e6fe5c73bc69f3">test/website_oauth_application_system_test_case.rb</a>
(15)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4436.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4436.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4436.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4436.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/4436">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLIQTIP3H5OETYLBKPLYLGQ7RAVCNFSM6AAAAABBCO3J5WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TKNZWGY3TQNQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOTXQCKNLFLXDK5P2DYLGQ7RA5CNFSM6AAAAABBCO3J5WWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHVCEDAI.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/4436</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/4436",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4436",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>