Skip to content

Commit

Permalink
Merge pull request #3436 from kiy0taka/sf/fix-contentsmanagement-page
Browse files Browse the repository at this point in the history
contentsmanagement_ページ管理のテストがタイミングによって失敗するのを修正
  • Loading branch information
okazy committed Aug 1, 2018
2 parents 4846476 + 79dcacd commit ae1fd82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codeception/_support/Page/Admin/LayoutEditPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public function コンテキストメニューでセクションに移動($block
public function コンテキストメニューでコードプレビュー($blockName, $element = null, $timeout = 10)
{
$this->コンテキストメニューを開く($blockName);
$this->tester->scrollTo('//div[contains(@id, \'popover\')]/div[2]/div/a[4]', 0, 0);
$this->tester->waitForElementVisible(['xpath' => "//div[contains(@id, 'popover')]/div[2]/div/a[4]"]);
$this->tester->scrollTo(['xpath' => "//div[contains(@id, 'popover')]/div[2]/div/a[4]"], 0, 0);
$this->tester->wait(1);
$this->tester->click(['xpath' => "//div[contains(@id, 'popover')]/div[2]/div/a[4]"]);
$this->tester->waitForElementVisible(['id' => "codePreview"]);
if ($element) {
Expand Down

0 comments on commit ae1fd82

Please sign in to comment.