Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

Latest commit

 

History

History
 
 

blogs__codepen-demo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Codepen.io Testing Demo

Demo of E2E testing HyperApp.js counter app running on Codepen.io.

  • Load Codepen and get around iframe security restrictions.
  • Use cy.request() to load a document into test iframe.
  • Test HyperApp.js application through the DOM and through actions.

Blog Post

Testing apps hosted on Codepen.io

E2E tests against Codepen.io

Codepen https://codepen.io/bahmutov/pen/ZaMxgz

note: before the better lifecycle events land you need to wrap your application code on Codepen in IIFE

(function() {
  const { h, app } = hyperapp;
  /** @jsx h */
  ...
}())