Skip to content

Commit

Permalink
タイムアウトで E2E テストが落ちるのを改善
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Jan 7, 2020
1 parent beb010d commit 4ab0ed6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codeception/_support/Page/Admin/PluginManagePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function ストアプラグイン_無効化($pluginCode, $message = '無
public function ストアプラグイン_削除($pluginCode, $message = '削除が完了しました。')
{
$this->ストアプラグイン_ボタンクリック($pluginCode, '削除');
$this->tester->waitForElementVisible(['id' => 'officialPluginDeleteButton']);
$this->tester->waitForElementVisible(['id' => 'officialPluginDeleteButton'], 60);
$this->tester->click(['id' => 'officialPluginDeleteButton']);
$this->tester->waitForElementVisible(['css' => '#officialPluginDeleteModal > div > div > div.modal-footer > button:nth-child(3)'], 30);
$this->tester->see($message, ['css' => '#officialPluginDeleteModal > div > div > div.modal-body.text-left > p']);
Expand Down
2 changes: 1 addition & 1 deletion codeception/_support/Page/Admin/PluginStoreInstallPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static function at($I)
public function インストール($message = 'インストールが完了しました。')
{
$this->tester->click(['css' => '#plugin-list > div.card-body > div:nth-child(2) > div > button.btn.btn-primary']);
$this->tester->waitForElementVisible(['id' => 'installBtn']);
$this->tester->waitForElementVisible(['id' => 'installBtn'], 60);
$this->tester->click(['id' => 'installBtn']);
$this->tester->waitForElementVisible(['css' => '#installModal > div > div > div.modal-footer > a'], 60);
$this->tester->see($message, ['css' => '#installModal > div > div > div.modal-body > p']);
Expand Down

0 comments on commit 4ab0ed6

Please sign in to comment.