npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

codeceptjs-mailinator-helper

v1.0.1

Published

Mailinator Helper for Codeceptjs

Downloads

6

Readme

"Buy Me A Coffee"

codeceptjs-Mailinator-helper

CodeceptJS Mailinator helper.

NPM package: https://www.npmjs.com/package/codeceptjs-mailinator-helper

Installation

npm i codeceptjs-mailinator-helper --save-dev

Configuration

This helper should be added in your codeceptjs config file: codecept.conf.*

Example:

{
...
   helpers: {
     MailinatorHelper: {
      require: 'codeceptjs-mailinator-helper',
      token: 'your mailinator token',
      domain: 'your mailinator domain',
      debug: true // false by default
    }
   }
...
}

Usage

  • If there is no auto complete for I actor, try running npx codeceptjs def
Feature('Newsletter');

Scenario('Subscription Email',  async ({ I }) => {
    const emailAddress = `${Date.now().toString()}@xxxx.testinator.com`
    I.amOnPage('https://de.statista.com/newsletter/subscription')
    I.click('#onetrust-accept-btn-handler')
    I.fillField('#newsletterSubscription_email', emailAddress)
    I.click('#newsletterSubscription_changeInfographicNewsletter')
    I.waitForText('Überprüfen Sie bitte Ihren Posteingang')
    I.wait(5)
    const email = await I.getMessageContent(emailAddress)
    I.expectContain(email, 'https://de.statista.com/newsletter/subscription-check/')
});

Output

Newsletter --
    [1]  Starting recording promises
    Timeouts: 
 › [Session] Starting singleton browser session
  Subscription Email
    I am on page "https://de.statista.com/newsletter/subscription"
    I click "#onetrust-accept-btn-handler"
    I fill field "#newsletterSubscription_email", "[email protected]"
    I click "#newsletterSubscription_changeInfographicNewsletter"
    I wait for text "Überprüfen Sie bitte Ihren Posteingang"
    I wait 5
    I get message content "[email protected]"
    I expect contain "<p>Sehr geehrter Kunde,</p>
<p>halten Sie sich auf dem Laufenden und sichern Sie sich unsere Newsletter.</p>
<p>Um Ihre Anmeldung zu best&auml;tigen, klicken Sie einfach den nachfolgenden Link: <a href="https://de.statista.com/newsletter/subscription-check/f2a441ea28f0e7447e">Anmeldung best&auml;tigen</a></p>
<p>Der Link ist 48 Stunden g&uuml;ltig - sollten Sie Ihre Anmeldung nicht innerhalb dieser Zeit aktivieren, werden wir Ihre Daten wieder aus unserem System l&ouml;schen.</p>
<p>Ihr Statista-Team</p>
<p style="font-size: 80%;">Aktivierungs-Link nicht klickbar? Kopieren Sie diesen Link in Ihren Browser:</p>
<p style="font-size: 80%; word-break: break-all;">https://de.statista.com/newsletter/subscription-check/038d906a441ea28f0e7447e</p>", "https://de.statista.com/newsletter/subscription-check/"
  ✔ OK in 8561ms


  OK  | 1 passed   // 10s