Skip to content

Instantly share code, notes, and snippets.

View dmitrika's full-sized avatar

Dmitry Rybin dmitrika

View GitHub Profile
import {handleActions} from 'redux-actions';
import * as actions from '../Constants/Constants';
const initialState = {
};
const LikesReducer = handleActions({
[actions.X]: state => ({
...state,
}),
const puppeteer = require('puppeteer');
const { defineSupportCode } = require('cucumber')
defineSupportCode(({ Before, Given, When, Then }) => {
Before({ timeout: 60 * 1000 }, async function testCase() {
this.browser = await puppeteer.launch()
})
Given('I am on google with puppeteer', { timeout: 60 * 1000 }, async function testCase() {
this.page = await this.browser.newPage()
<WebView
onMessage={this.updateDescription}
injectedJavaScript={this.injectScript}
source={{ html: this.html }}
startInLoadingState
style={{
height: 100,
width
}}
/>;