wantTo('Confirm template page loads and tabs can be clicked through'); $i->login(); $i->activateWooCommerce(); //get to Template Selection page $i->amOnMailpoetPage('Emails'); $i->click('[data-automation-id="create_standard"]'); $i->waitForElement('[data-automation-id="email_template_selection_heading"]'); $templateTab = '[data-automation-id="templates-standard"]'; $i->waitForElement($templateTab); $i->click($templateTab); //Standard email templates tab $i->waitForElement('[data-automation-id="select_template_8"]'); $i->waitForElement('[data-automation-id="select_template_14"]'); $i->waitForElement('[data-automation-id="select_template_23"]'); //Post Notification templates tab $i->click('Post Notifications'); $i->see('Post Notifications', ['css' => '.mailpoet-categories-item.active']); $i->waitForElement('[data-automation-id="select_template_5"]'); $i->waitForElement('[data-automation-id="select_template_8"]'); //Welcome Emails templates tab $i->click('Welcome Emails'); $i->see('Welcome Emails', ['css' => '.mailpoet-categories-item.active']); $i->waitForElement('[data-automation-id="select_template_5"]'); $i->waitForElement('[data-automation-id="select_template_9"]'); //WooCommerce templates tab $i->click('WooCommerce Emails'); $i->see('WooCommerce Emails', ['css' => '.mailpoet-categories-item.active']); $i->waitForElement('[data-automation-id="select_template_5"]'); $i->waitForElement('[data-automation-id="select_template_2"]'); } }