diff --git a/tests/Acceptance/aswPostCest.php b/tests/Acceptance/aswPostCest.php index afccc97..ab66de4 100644 --- a/tests/Acceptance/aswPostCest.php +++ b/tests/Acceptance/aswPostCest.php @@ -6,7 +6,10 @@ class aswPostCest{ public function SinglePost(AcceptanceTester $I){ + + $I->wantTo('verify post heading, author name and the date of the post.'); $I->amOnPage('https://americansongwriter.com/'); + $I->click('#page > section > div.g1-row-inner > div > div > div.g1-mosaic-item.g1-mosaic-item-1 > article > div.entry-body > header > h3 > a'); $heading =$I->grabTextFrom('.entry-header'); @@ -15,6 +18,6 @@ public function SinglePost(AcceptanceTester $I){ $date =$I->grabTextFrom('.entry-date'); - echo $heading," ",$author," ",$date; + echo $heading," ",$author," ",$date; // output } } \ No newline at end of file