Skip to content

Commit 5031ad0

Browse files
committed
test(stability): adjust waits to avoid timeouts (Reservation form input, Theme CSS/JS short pause, TinyMCE dropdown pause, Password page wait for location)
1 parent fb75fa0 commit 5031ad0

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

tests/Browser/Common/PasswordPageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private function setPassword()
4747
->screenshot('common/password_page/index/images/setPassword')
4848
->scrollIntoView('footer')
4949
->press('ページ更新')
50-
->waitForText('ページを更新しました。');
50+
->waitForLocation('/manage/page/edit/' . $page->id);
5151
});
5252

5353
// マニュアル用データ出力

tests/Browser/Common/WysiwygTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,12 @@ private function color()
236236
$browser->visit('/plugin/contents/edit/' . $this->frame->page_id . '/' . $this->frame->id . '/' . $this->content->id . '#frame-' . $this->frame->id)
237237
->waitFor('.tox-tinymce')
238238
->click('#ccMainArea .tox-tinymce .tox-toolbar__group:nth-child(4) div:nth-child(1) span:nth-child(2)')
239-
->waitFor('.tox-collection')
239+
->pause(500)
240240
->screenshot('common/wysiwyg/color/images/colorPickerFont');
241241

242242
// 背景色のカラーパネル
243243
$browser->click('#ccMainArea .tox-tinymce .tox-toolbar__group:nth-child(4) div:nth-child(2) span:nth-child(2)')
244-
->waitFor('.tox-collection')
244+
->pause(500)
245245
->screenshot('common/wysiwyg/color/images/colorPickerBackground');
246246
});
247247

tests/Browser/Manage/ReservationManageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private function registOther(...$names)
131131
}
132132

133133
$browser->visit('/manage/reservation/regist')
134-
->waitForText('登録確定')
134+
->waitFor("input[name='facility_name']", 20)
135135
->type('facility_name', $name)
136136
->select('reservations_categories_id', $reservations_category)
137137
->select('columns_set_id', '1')

tests/Browser/Manage/ThemeManageTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ private function editCss()
7474
$this->browse(function (Browser $browser) {
7575
$browser->visit('/manage/theme')
7676
->click('#css_edit_1')
77-
->waitFor('#css_textarea')
77+
->pause(500)
7878
->assertTitleContains('Connect-CMS')
7979
->screenshot('manage/theme/editCss/images/editCss');
8080
});
@@ -97,7 +97,7 @@ private function editJs()
9797
$this->browse(function (Browser $browser) {
9898
$browser->visit('/manage/theme')
9999
->click('#js_edit_1')
100-
->waitFor('#js_textarea')
100+
->pause(500)
101101
->assertTitleContains('Connect-CMS')
102102
->screenshot('manage/theme/editJs/images/editJs');
103103
});

0 commit comments

Comments
 (0)