Skip to content

Instantly share code, notes, and snippets.

describe('Create article', function() {
it('Logged in', function() {
cy.register()
cy.createarticle().then((id) => {
cy.visit('article/' + id)
})
})
})
cy.window().then((win) => {
return new Cypress.Promise((resolve, reject) => {
win.Meteor.call('create',
{
title: 'Test'
},
(err, res) => {
if(res) {
resolve(res)
} else {
cy.window().then((win) => {
const r = Math.random().toPrecision(5)
const u = "test" + r
win.Accounts.createUser({
username: u,
email: u + '@test.com',
password: u
})
})
@arichter83
arichter83 / index.html
Created March 8, 2019 17:46
Safari Mobil iFrame / webkit-overflow-scrolling: touch render bug
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" class="no-js" xml:lang="de" lang="de">
<head>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
</head>
<body>
External website where I can only control the integration (style & iframe):
<style>
@arichter83
arichter83 / index.html
Created October 12, 2018 09:07
React Hello World w/ JSBin [add your bin description] // source https://jsbin.com/kahuwun
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[add your bin description]">
<script src="http://fb.me/react-0.13.1.js"></script>
<meta charset="utf-8">
<title>React Hello World w/ JSBin</title>
</head>
<body>
<div id="react_example"></div>