polevaultweb / codeception-helpscout
Help Scout module for Codeception
Installs: 2 920
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 2
Requires
- ericmartel/codeception-email: ^1.0
- guzzlehttp/guzzle: ^6.1
- helpscout/api: ^2.4
- polevaultweb/codeception-wait: ^1.0
This package is auto-updated.
Last update: 2024-12-25 06:10:42 UTC
README
A Help Scout email module for Codeception.
Installation
You need to add the repository into your composer.json file
composer require --dev polevaultweb/codeception-helpscout
Usage
You can use this module as any other Codeception module, by adding 'HelpScout' to the enabled modules in your Codeception suite configurations.
Add Drip to your list of modules
modules: enabled: - HelpScout
Setup the configuration variables
config: HelpScout: app_id: '%HELPSCOUT_APP_ID%' app_secret: '%HELPSCOUT_APP_SECRET%'
Update Codeception build
codecept build
Supports
This Codeception Module implements the required methods to test emails using the Codeception Email Testing Framework with Help Scout
Added Methods
This Module adds a few public methods for the user, such as:
dontHaveEmailEmail()
Deletes an email in Help Scout
fetchEmails()
Fetches all conversations from Help Scout, and assigns them to the current and unread inboxes
openNextUnreadEmail()
Pops the most recent unread email and assigns it as the email to conduct tests on
waitForEmailFromSender()
Waits for an email to arrive from a specific email address
Usage
$I = new AcceptanceTester( $scenario ); $I->fetchEmails( 12345 ); $I->openNextUnreadEmail(); $I->seeInOpenedEmailSubject( 'Thank you' ); $I->seeInOpenedEmailSender( 'john@doe.com' ); $I->seeInOpenedEmailBody( 'Hey, thanks for the great product' );