Skip to content

Commit

Permalink
fix casing, remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
notbakaneko committed Apr 11, 2023
1 parent d5d6110 commit 0d72fbf
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions tests/Browser/BeatmapDiscussionPostsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@ class BeatmapDiscussionPostsTest extends DuskTestCase

private Beatmap $beatmap;
private BeatmapDiscussion $beatmapDiscussion;
private BeatmapDiscussionPost $beatmapDiscussionPost;
private Beatmapset $beatmapset;
private User $mapper;
private User $user;


public function testConcurrentPostAfterResolve()
{
$this->browse(function (Browser $first, Browser $second) {
Expand All @@ -49,22 +47,22 @@ public function testConcurrentPostAfterResolve()

protected function writeReply(Browser $browser, $reply)
{
$browser->with(static::NEW_REPLY_SELECTOR, function ($new_reply) use ($reply) {
$new_reply->press('Respond')
$browser->with(static::NEW_REPLY_SELECTOR, function ($newReply) use ($reply) {
$newReply->press('Respond')
->waitFor('textarea')
->type('textarea', $reply);
});
}

protected function postReply(Browser $browser, $action)
{
$browser->with(static::NEW_REPLY_SELECTOR, function ($new_reply) use ($action) {
$browser->with(static::NEW_REPLY_SELECTOR, function ($newReply) use ($action) {
switch ($action) {
case 'resolve':
$new_reply->press('Reply and Resolve');
$newReply->press('Reply and Resolve');
break;
default:
$new_reply->keys('textarea', '{enter}');
$newReply->keys('textarea', '{enter}');
break;
}
});
Expand Down Expand Up @@ -118,7 +116,7 @@ protected function setUp(): void
$post = BeatmapDiscussionPost::factory()->timeline()->make([
'user_id' => $this->user,
]);
$this->beatmapDiscussionPost = $this->beatmapDiscussion->beatmapDiscussionPosts()->save($post);
$this->beatmapDiscussion->beatmapDiscussionPosts()->save($post);

$this->beforeApplicationDestroyed(function () {
// Similar case to SanityTest, cleanup the models we created during the test.
Expand Down

0 comments on commit 0d72fbf

Please sign in to comment.