creevey 0.10.0-beta.36 → 0.10.0-beta.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/addon/withCreevey.d.ts +1 -1
- package/dist/client/shared/components/ImagesView/BlendView.d.ts +1 -1
- package/dist/client/shared/components/ImagesView/SideBySideView.d.ts +1 -1
- package/dist/client/shared/components/ImagesView/SlideView.d.ts +1 -1
- package/dist/client/shared/components/ImagesView/SwapView.d.ts +1 -1
- package/dist/client/shared/components/PageHeader/ImagePreview.d.ts +1 -1
- package/dist/client/shared/components/ResultsPage.d.ts +1 -1
- package/dist/client/web/CreeveyView/SideBar/SuiteLink.d.ts +2 -2
- package/dist/client/web/CreeveyView/SideBar/TestStatusIcon.d.ts +1 -1
- package/dist/client/web/CreeveyView/SideBar/TestsStatus.d.ts +1 -1
- package/dist/client/web/assets/index-B0Xv0lOY.js +802 -0
- package/dist/client/web/index.html +1 -1
- package/dist/server/master/runner.js +3 -9
- package/dist/server/master/runner.js.map +1 -1
- package/dist/server/playwright/docker-file.js +4 -3
- package/dist/server/playwright/docker-file.js.map +1 -1
- package/dist/server/playwright/index-source.mjs +16 -0
- package/dist/server/playwright/internal.d.ts +1 -1
- package/dist/server/playwright/webdriver.d.ts +1 -1
- package/dist/server/selenium/internal.d.ts +1 -1
- package/dist/server/selenium/internal.js +0 -2
- package/dist/server/selenium/internal.js.map +1 -1
- package/dist/server/selenium/selenoid.js +1 -2
- package/dist/server/selenium/selenoid.js.map +1 -1
- package/dist/server/selenium/webdriver.d.ts +1 -1
- package/dist/server/testsFiles/parser.js +1 -3
- package/dist/server/testsFiles/parser.js.map +1 -1
- package/dist/server/webdriver.d.ts +1 -1
- package/dist/shared/index.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +47 -48
- package/src/client/addon/withCreevey.ts +1 -1
- package/src/server/master/runner.ts +3 -9
- package/src/server/playwright/docker-file.ts +7 -5
- package/src/server/playwright/internal.ts +1 -1
- package/src/server/playwright/webdriver.ts +1 -1
- package/src/server/selenium/internal.ts +1 -3
- package/src/server/selenium/selenoid.ts +1 -1
- package/src/server/selenium/webdriver.ts +1 -1
- package/src/server/testsFiles/parser.ts +1 -3
- package/src/server/webdriver.ts +1 -1
- package/src/shared/index.ts +1 -1
- package/src/types.ts +1 -1
- package/dist/client/web/assets/index-Cs8IUTQs.js +0 -595
@@ -18,16 +18,16 @@ export async function playwrightDockerFile(browser: string, version: string): Pr
|
|
18
18
|
|
19
19
|
const indexJs = await readFile(new URL('./index-source.mjs', importMetaUrl), 'utf-8');
|
20
20
|
|
21
|
-
|
21
|
+
const dockerfile = `
|
22
22
|
FROM node:lts
|
23
23
|
|
24
24
|
WORKDIR /creevey
|
25
25
|
|
26
26
|
RUN echo "{ \\"type\\": \\"module\\" }" > package.json && \\
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
27
|
+
${indexJs
|
28
|
+
.split('\n')
|
29
|
+
.map((line) => ` echo "${line.replace(/"/g, '\\"')}" >> index.js && \\`)
|
30
|
+
.join('\n')}
|
31
31
|
${
|
32
32
|
npmRegistry
|
33
33
|
? `
|
@@ -41,4 +41,6 @@ EXPOSE 4444
|
|
41
41
|
|
42
42
|
ENTRYPOINT [ "node", "./index.js" ]
|
43
43
|
`;
|
44
|
+
|
45
|
+
return dockerfile.replace(/\\\n\s*\\?\n/g, '\\\n');
|
44
46
|
}
|
@@ -13,7 +13,7 @@ import chalk from 'chalk';
|
|
13
13
|
import { v4 } from 'uuid';
|
14
14
|
import Logger from 'loglevel';
|
15
15
|
import prefix from 'loglevel-plugin-prefix';
|
16
|
-
import type { Args } from '@storybook/
|
16
|
+
import type { Args } from '@storybook/types';
|
17
17
|
import {
|
18
18
|
BrowserConfigObject,
|
19
19
|
Config,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="../../../types/playwright-context" />
|
2
|
-
import type { Args } from '@storybook/
|
2
|
+
import type { Args } from '@storybook/types';
|
3
3
|
import { Config, Options, ServerTest, StoriesRaw, StoryInput } from '../../types';
|
4
4
|
import { logger } from '../logger';
|
5
5
|
import { subscribeOn } from '../messages';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Args } from '@storybook/
|
1
|
+
import type { Args } from '@storybook/types';
|
2
2
|
import chalk from 'chalk';
|
3
3
|
import http from 'http';
|
4
4
|
import https from 'https';
|
@@ -266,9 +266,7 @@ export class InternalBrowser {
|
|
266
266
|
},
|
267
267
|
// NOTE page_Offset is used only for IE9-11
|
268
268
|
windowRect: {
|
269
|
-
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
270
269
|
top: Math.round(window.scrollY || window.pageYOffset),
|
271
|
-
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
272
270
|
left: Math.round(window.scrollX || window.pageXOffset),
|
273
271
|
width: window.innerWidth,
|
274
272
|
height: window.innerHeight,
|
@@ -34,7 +34,7 @@ async function createSelenoidConfig(
|
|
34
34
|
dockerImage = `selenoid/${browserName}:${browserVersion}`,
|
35
35
|
webdriverCommand = [],
|
36
36
|
}) => {
|
37
|
-
|
37
|
+
selenoidConfig[browserName] ??= { default: browserVersion, versions: {} };
|
38
38
|
if (!useDocker && webdriverCommand.length == 0)
|
39
39
|
throw new Error('Please specify "webdriverCommand" browser option with path to browser webdriver');
|
40
40
|
selenoidConfig[browserName].versions[browserVersion] = {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="../../../types/selenium-context" />
|
2
|
-
import type { Args } from '@storybook/
|
2
|
+
import type { Args } from '@storybook/types';
|
3
3
|
import { Config, StorybookGlobals, StoryInput, StoriesRaw, Options, ServerTest } from '../../types.js';
|
4
4
|
import { subscribeOn } from '../messages.js';
|
5
5
|
import { CreeveyWebdriverBase } from '../webdriver.js';
|
@@ -105,8 +105,6 @@ export const story = (
|
|
105
105
|
|
106
106
|
export const test = (title: string, testFn: CreeveyTestFunction): void => {
|
107
107
|
const storyId = getStoryId(kindTitle, storyTitle);
|
108
|
-
|
109
|
-
result[storyId] = {};
|
110
|
-
}
|
108
|
+
result[storyId] ??= {};
|
111
109
|
result[storyId].tests = Object.assign({}, result[storyId].tests, { [title]: testFn });
|
112
110
|
};
|
package/src/server/webdriver.ts
CHANGED
package/src/shared/index.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import _ from 'lodash';
|
2
|
-
import type { Parameters } from '@storybook/
|
2
|
+
import type { Parameters } from '@storybook/types';
|
3
3
|
import { SetStoriesData, StoriesRaw, CreeveyStoryParams, StoryInput } from '../types.js';
|
4
4
|
import { deserializeRegExp, isSerializedRegExp, isRegExp, serializeRegExp } from './serializeRegExp.js';
|
5
5
|
|
package/src/types.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { StoryContextForEnhancers, DecoratorFunction } from '@storybook/
|
1
|
+
import type { StoryContextForEnhancers, DecoratorFunction } from '@storybook/types';
|
2
2
|
import type { Worker as ClusterWorker } from 'cluster';
|
3
3
|
import type Pixelmatch from 'pixelmatch';
|
4
4
|
import type { ODiffOptions } from 'odiff-bin';
|