From 402d47cc3cbf2c09fcdcf15147bde9896626ca80 Mon Sep 17 00:00:00 2001 From: Tim Nolet Date: Tue, 30 Oct 2018 16:17:01 +0100 Subject: [PATCH] chore(bump version): --- package.json | 2 +- src/content-scripts/__tests__/forms.spec.js | 51 ++++++++++--------- src/manifest.json | 2 +- .../__tests__/__snapshots__/App.spec.js.snap | 2 +- 4 files changed, 29 insertions(+), 28 deletions(-) diff --git a/package.json b/package.json index e28ab391..e5dcfe59 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "puppeteer-recorder", - "version": "0.4.1", + "version": "0.5.0", "description": "A Chrome extension for recording browser interaction and generating Puppeteer scripts", "main": "index.js", "scripts": { diff --git a/src/content-scripts/__tests__/forms.spec.js b/src/content-scripts/__tests__/forms.spec.js index dd720e23..1414378a 100644 --- a/src/content-scripts/__tests__/forms.spec.js +++ b/src/content-scripts/__tests__/forms.spec.js @@ -8,6 +8,32 @@ let browser let page describe.skip('forms', () => { + + beforeAll(async (done) => { + await runDist() + const buildDir = process.env.NODE_ENV === 'production' ? '../../../dist' : '../../../build' + const fixture = './fixtures/forms.html' + server = await startServer(buildDir, fixture) + return done() + }, 20000) + + afterAll(done => { + server.close(() => { + return done() + }) + }) + + beforeEach(async () => { + browser = await launchPuppeteerWithExtension(puppeteer) + page = await browser.newPage() + await page.goto('http://localhost:3000/') + await cleanEventLog(page) + }) + + afterEach(async () => { + browser.close() + }) + const tab = 1 const change = 1 test('it should load the form', async () => { @@ -58,28 +84,3 @@ describe.skip('forms', () => { expect(eventLog[2].value).toEqual('checkbox2') }) }) - -beforeAll(async (done) => { - await runDist() - const buildDir = process.env.NODE_ENV === 'production' ? '../../../dist' : '../../../build' - const fixture = './fixtures/forms.html' - server = await startServer(buildDir, fixture) - return done() -}, 20000) - -afterAll(done => { - server.close(() => { - return done() - }) -}) - -beforeEach(async () => { - browser = await launchPuppeteerWithExtension(puppeteer) - page = await browser.newPage() - await page.goto('http://localhost:3000/') - await cleanEventLog(page) -}) - -afterEach(async () => { - browser.close() -}) diff --git a/src/manifest.json b/src/manifest.json index 97fb6be6..31f9a8b0 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,6 +1,6 @@ { "name": "Puppeteer Recorder", - "version": "0.4.1", + "version": "0.5.0", "manifest_version": 2, "description": "A Chrome extension for recording browser interaction and generating Puppeteer scripts", "permissions": [ diff --git a/src/popup/components/__tests__/__snapshots__/App.spec.js.snap b/src/popup/components/__tests__/__snapshots__/App.spec.js.snap index b6c0e0f0..9604f979 100644 --- a/src/popup/components/__tests__/__snapshots__/App.spec.js.snap +++ b/src/popup/components/__tests__/__snapshots__/App.spec.js.snap @@ -17,7 +17,7 @@ exports[`App.vue it has the correct pristine / empty state 1`] = ` class="text-muted" > - 0.4.1 + 0.5.0