Skip to content

Commit

Permalink
add:test for GA tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
dotani1111 committed May 9, 2024
1 parent 4c6e78c commit 3e07675
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions codeception/acceptance/EA07BasicinfoCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,26 @@ public function basicinfo_税設定_適格請求書発行事業者登録番号(A

$I->getScenario()->incomplete('SJISの納品書を確認することが困難なため未実装');
}

/**
* @group vaddy
* @group basicsetting
*/
public function basicinfo_GAタグ設定(AcceptanceTester $I)
{
$I->wantTo('EA0714-UC01-T01 GAタグ設定');

// GAタグ設定
$page = ShopSettingPage::go($I)
->入力_GAタグ('UA-12345678-1');
$I->wait(1);
$page->登録();

$I->waitForText('保存しました', 10, ShopSettingPage::$登録完了メッセージ);

// GAタグが設定されているか
$I->amOnPage('/');
$I->seeInPageSource('https://www.googletagmanager.com/gtag/js?id=UA-12345678-1');

}
}

0 comments on commit 3e07675

Please sign in to comment.