Skip to content

Instantly share code, notes, and snippets.

View axelneff's full-sized avatar
🎯
Focusing

Axel Neff axelneff

🎯
Focusing
View GitHub Profile
@axelneff
axelneff / step10-test-case.js
Created March 22, 2019 20:33
Test Script for Nice-Foods Marketplace
const Nightmare = require('nightmare')
const assert = require('assert')
describe('Landing Page', function() {
this.timeout('30s')
let nightmare = null
beforeEach(() => {
nightmare = new Nightmare({ show: true })
})
@axelneff
axelneff / step9-test-case.js
Last active March 22, 2019 20:10
Test Script for Nice-Foods Marketplace
const Nightmare = require('nightmare')
const assert = require('assert')
describe('Landing Page', function() {
this.timeout('30s')
let nightmare = null
beforeEach(() => {
nightmare = new Nightmare({ show: true })
})
@axelneff
axelneff / step8-test-case.js
Last active March 22, 2019 17:26
Test Script for Nice-Foods Marketplace
const Nightmare = require('nightmare')
const assert = require('assert')
describe('Landing Page', function() {
this.timeout('30s')
let nightmare = null
beforeEach(() => {
nightmare = new Nightmare({ show: true })
})
@axelneff
axelneff / step7-test-case.js
Last active March 20, 2019 17:19
Test Script for Nice-Foods Marketplace
const Nightmare = require('nightmare')
const assert = require('assert')
describe('Landing Page', function() {
this.timeout('30s')
let nightmare = null
beforeEach(() => {
nightmare = new Nightmare({ show: true })
})
@axelneff
axelneff / step5-test-case.js
Created March 20, 2019 14:33
Test Script for Nice-Foods Marketplace
const Nightmare = require('nightmare')
const assert = require('assert')
describe('Landing Page', function() {
this.timeout('30s')
let nightmare = null
beforeEach(() => {
nightmare = new Nightmare({ show: true })
})
@axelneff
axelneff / step4-test-case.js
Created March 19, 2019 20:37
Test Script for Nice-Foods Marketplace
const Nightmare = require('nightmare')
const assert = require('assert')
describe('Landing Page', function() {
this.timeout('30s')
let nightmare = null
beforeEach(() => {
nightmare = new Nightmare({ show: true })
})
@axelneff
axelneff / step3-test-case.js
Created March 19, 2019 20:23
Test Script for Nice-Foods Marketplace
const Nightmare = require('nightmare')
const assert = require('assert')
describe('Landing Page', function() {
this.timeout('30s')
let nightmare = null
beforeEach(() => {
nightmare = new Nightmare({ show: true })
})
@axelneff
axelneff / test.js
Last active March 20, 2019 13:36
Test Script for Nice-Foods Marketplace
const Nightmare = require('nightmare')
const assert = require('assert')
const localStorage = require('mock-local-storage')
describe('Landing Page', function() {
this.timeout('30s')
let nightmare = null
beforeEach(() => {
nightmare = new Nightmare({ show: true })
@axelneff
axelneff / JS Selector
Created March 19, 2019 19:25
JS Selector Example
#root > div > div > div > div > div > div:nth-child(1) > a > img
@axelneff
axelneff / step2-test-case.js
Last active March 19, 2019 20:10
Test Script for Nice-Foods Marketplace
const Nightmare = require('nightmare')
const assert = require('assert')
describe('Landing Page', function() {
this.timeout('30s')
let nightmare = null
beforeEach(() => {
nightmare = new Nightmare({ show: true })
})