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.
Files changed (44) hide show
  1. package/dist/client/addon/withCreevey.d.ts +1 -1
  2. package/dist/client/shared/components/ImagesView/BlendView.d.ts +1 -1
  3. package/dist/client/shared/components/ImagesView/SideBySideView.d.ts +1 -1
  4. package/dist/client/shared/components/ImagesView/SlideView.d.ts +1 -1
  5. package/dist/client/shared/components/ImagesView/SwapView.d.ts +1 -1
  6. package/dist/client/shared/components/PageHeader/ImagePreview.d.ts +1 -1
  7. package/dist/client/shared/components/ResultsPage.d.ts +1 -1
  8. package/dist/client/web/CreeveyView/SideBar/SuiteLink.d.ts +2 -2
  9. package/dist/client/web/CreeveyView/SideBar/TestStatusIcon.d.ts +1 -1
  10. package/dist/client/web/CreeveyView/SideBar/TestsStatus.d.ts +1 -1
  11. package/dist/client/web/assets/index-B0Xv0lOY.js +802 -0
  12. package/dist/client/web/index.html +1 -1
  13. package/dist/server/master/runner.js +3 -9
  14. package/dist/server/master/runner.js.map +1 -1
  15. package/dist/server/playwright/docker-file.js +4 -3
  16. package/dist/server/playwright/docker-file.js.map +1 -1
  17. package/dist/server/playwright/index-source.mjs +16 -0
  18. package/dist/server/playwright/internal.d.ts +1 -1
  19. package/dist/server/playwright/webdriver.d.ts +1 -1
  20. package/dist/server/selenium/internal.d.ts +1 -1
  21. package/dist/server/selenium/internal.js +0 -2
  22. package/dist/server/selenium/internal.js.map +1 -1
  23. package/dist/server/selenium/selenoid.js +1 -2
  24. package/dist/server/selenium/selenoid.js.map +1 -1
  25. package/dist/server/selenium/webdriver.d.ts +1 -1
  26. package/dist/server/testsFiles/parser.js +1 -3
  27. package/dist/server/testsFiles/parser.js.map +1 -1
  28. package/dist/server/webdriver.d.ts +1 -1
  29. package/dist/shared/index.d.ts +1 -1
  30. package/dist/types.d.ts +1 -1
  31. package/package.json +47 -48
  32. package/src/client/addon/withCreevey.ts +1 -1
  33. package/src/server/master/runner.ts +3 -9
  34. package/src/server/playwright/docker-file.ts +7 -5
  35. package/src/server/playwright/internal.ts +1 -1
  36. package/src/server/playwright/webdriver.ts +1 -1
  37. package/src/server/selenium/internal.ts +1 -3
  38. package/src/server/selenium/selenoid.ts +1 -1
  39. package/src/server/selenium/webdriver.ts +1 -1
  40. package/src/server/testsFiles/parser.ts +1 -3
  41. package/src/server/webdriver.ts +1 -1
  42. package/src/shared/index.ts +1 -1
  43. package/src/types.ts +1 -1
  44. 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
- return `
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
- ${indexJs
28
- .split('\n')
29
- .map((line) => `echo "${line.replace(/"/g, '\\"')}" >> index.js && \\`)
30
- .join('\n')}
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/csf';
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/csf';
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/csf';
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
- if (!selenoidConfig[browserName]) selenoidConfig[browserName] = { default: browserVersion, versions: {} };
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/csf';
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
- if (!result[storyId]) {
109
- result[storyId] = {};
110
- }
108
+ result[storyId] ??= {};
111
109
  result[storyId].tests = Object.assign({}, result[storyId].tests, { [title]: testFn });
112
110
  };
@@ -1,7 +1,7 @@
1
1
  import chalk from 'chalk';
2
2
  import { networkInterfaces } from 'os';
3
3
  import { logger } from './logger.js';
4
- import type { Args } from '@storybook/csf';
4
+ import type { Args } from '@storybook/types';
5
5
  import {
6
6
  isDefined,
7
7
  StoryInput,
@@ -1,5 +1,5 @@
1
1
  import _ from 'lodash';
2
- import type { Parameters } from '@storybook/csf';
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/csf';
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';