1 | const viewports = [
|
2 | {
|
3 | width: 768,
|
4 | height: 1024
|
5 | },
|
6 | {
|
7 | width: 490,
|
8 | height: 732
|
9 | },
|
10 | {
|
11 | width: 320,
|
12 | height: 480
|
13 | }
|
14 | ];
|
15 |
|
16 | const urls = [
|
17 | `http://localhost:5005`
|
18 | ]
|
19 |
|
20 | const config = {
|
21 | defaults: {
|
22 | page: {
|
23 | headers: {
|
24 | "Cookie": "next-flags=ads:off,cookieMessage:off; secure=true"
|
25 | }
|
26 | },
|
27 | timeout: 25000
|
28 | },
|
29 | urls: []
|
30 | }
|
31 |
|
32 | for (viewport of viewports) {
|
33 | for (url of urls) {
|
34 | config.urls.push({
|
35 | url: url,
|
36 | viewport: viewport
|
37 | })
|
38 | }
|
39 | }
|
40 |
|
41 | module.exports = config;
|