-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Martin Muda
committed
Oct 5, 2023
1 parent
6cf3ed4
commit 2898472
Showing
10 changed files
with
4,250 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/css | ||
/dist | ||
/node_modules |
Binary file added
BIN
+32.4 KB
...e_snapshots__/zumer-examples-spec-js-test-zumer-css-examples-generic-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38.6 KB
...age_snapshots__/zumer-examples-spec-js-test-zumer-css-examples-index-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+60.1 KB
...apshots__/zumer-examples-spec-js-test-zumer-css-examples-sector-grid-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+88.9 KB
...ge_snapshots__/zumer-examples-spec-js-test-zumer-css-examples-spread-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.2 KB
...age_snapshots__/zumer-examples-spec-js-test-zumer-css-examples-watch-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
const puppeteer = require('puppeteer'); | ||
|
||
describe('Test Zumer CSS examples', () => { | ||
let browser; | ||
|
||
beforeAll(async () => { | ||
browser = await puppeteer.launch({ | ||
headless: 'new', | ||
// `headless: true` (default) enables old Headless; | ||
// `headless: 'new'` enables new Headless; | ||
// `headless: false` enables “headful” mode. | ||
}); | ||
}); | ||
|
||
it('Index', async () => { | ||
const page = await browser.newPage(); | ||
await page.goto('http://localhost:5500/examples/'); | ||
const image = await page.screenshot(); | ||
|
||
expect(image).toMatchImageSnapshot(); | ||
}); | ||
|
||
it('Generic', async () => { | ||
const page = await browser.newPage(); | ||
await page.goto('http://localhost:5500/examples/generic.html'); | ||
const image = await page.screenshot(); | ||
|
||
expect(image).toMatchImageSnapshot(); | ||
}); | ||
|
||
it('Spread', async () => { | ||
const page = await browser.newPage(); | ||
await page.goto('http://localhost:5500/examples/spread.html'); | ||
const image = await page.screenshot(); | ||
|
||
expect(image).toMatchImageSnapshot(); | ||
}); | ||
|
||
it('Watch', async () => { | ||
const page = await browser.newPage(); | ||
await page.goto('http://localhost:5500/examples/watch.html'); | ||
const image = await page.screenshot(); | ||
|
||
expect(image).toMatchImageSnapshot(); | ||
}); | ||
|
||
it('Sector grid', async () => { | ||
const page = await browser.newPage(); | ||
await page.goto('http://localhost:5500/examples/arcgrid.html'); | ||
const image = await page.screenshot(); | ||
|
||
expect(image).toMatchImageSnapshot(); | ||
}); | ||
|
||
afterAll(async () => { | ||
await browser.close(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (c) 2018 American Express Travel Related Services Company, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License | ||
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
* or implied. See the License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ | ||
|
||
// eslint runs from root and only looks at root package.json | ||
// eslint-disable-next-line import/no-unresolved | ||
const { toMatchImageSnapshot } = require('jest-image-snapshot'); | ||
|
||
expect.extend({ toMatchImageSnapshot }); |
Oops, something went wrong.