diff --git a/test/everything.test.ts b/test/benchmark.ts similarity index 90% rename from test/everything.test.ts rename to test/benchmark.ts index 14229ee6..c23568ec 100644 --- a/test/everything.test.ts +++ b/test/benchmark.ts @@ -46,12 +46,12 @@ async function createServers() { // Note: not using snapshots to make sure all tests result in the same log. const expectedLog = ( await fs.readFile( - path.join(__dirname, 'resources', 'everything.expected.txt'), + path.join(__dirname, 'resources', 'benchmark.expected.txt'), 'utf-8' ) ).trim(); -describe('Everything', () => { +describe('Benchmark test', () => { let browser: puppeteer.Browser; let page: puppeteer.Page; let httpServer: TestServer; @@ -85,9 +85,9 @@ describe('Everything', () => { await httpsServer.stop(); }); - it('should run everthing using a runner', async () => { + it('should run the test using a runner extension', async () => { const recording = JSON.parse( - await fs.readFile(path.join(__dirname, 'resources', 'everything.json'), { + await fs.readFile(path.join(__dirname, 'resources', 'benchmark.json'), { encoding: 'utf8', }) ); @@ -101,9 +101,9 @@ describe('Everything', () => { assert.strictEqual(result.trim(), expectedLog); }); - it('should run everthing when exported to a script', async () => { + it('should run the test when exported as a script using a stringify extension', async () => { const recording = JSON.parse( - await fs.readFile(path.join(__dirname, 'resources', 'everything.json'), { + await fs.readFile(path.join(__dirname, 'resources', 'benchmark.json'), { encoding: 'utf8', }) ); diff --git a/test/resources/everything.expected.txt b/test/resources/benchmark.expected.txt similarity index 100% rename from test/resources/everything.expected.txt rename to test/resources/benchmark.expected.txt diff --git a/test/resources/everything.html b/test/resources/benchmark.html similarity index 100% rename from test/resources/everything.html rename to test/resources/benchmark.html diff --git a/test/resources/everything.json b/test/resources/benchmark.json similarity index 94% rename from test/resources/everything.json rename to test/resources/benchmark.json index 1763a33d..c44ea8c1 100644 --- a/test/resources/everything.json +++ b/test/resources/benchmark.json @@ -1,5 +1,5 @@ { - "title": "everything", + "title": "benchmark", "steps": [ { "type": "setViewport", @@ -12,11 +12,11 @@ }, { "type": "navigate", - "url": "http://localhost:8907/everything.html", + "url": "http://localhost:8907/benchmark.html", "assertedEvents": [ { "type": "navigation", - "url": "http://localhost:8907/everything.html", + "url": "http://localhost:8907/benchmark.html", "title": "" } ]