@qoretechnologies/reqraft 0.10.1 → 0.10.2
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/index.d.ts +8 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/lspClient.js +5 -5
- package/dist/utils/lspClient.js.map +1 -1
- package/package.json +24 -33
- package/src/components/dpqlEditor/DpqlEditor.stories.tsx +2 -2
- package/src/components/form/engine/FormEngine.stories.tsx +122 -128
- package/src/components/form/engine/FormEngineRemote.stories.tsx +2 -2
- package/src/components/form/engine/_structuredData/StructuredDataView.stories.tsx +2 -2
- package/src/components/form/expressions/ExpressionField.stories.tsx +2 -2
- package/src/components/form/expressions/builder/ExpressionBuilder.stories.tsx +2 -2
- package/src/components/form/fields/Field.stories.tsx +2 -2
- package/src/components/form/fields/array/ArrayAutoField.stories.tsx +2 -2
- package/src/components/form/fields/auto/AutoFormField.stories.tsx +2 -2
- package/src/components/form/fields/boolean/Boolean.stories.tsx +2 -2
- package/src/components/form/fields/byte-size/ByteSize.stories.tsx +2 -2
- package/src/components/form/fields/color/Color.stories.tsx +2 -2
- package/src/components/form/fields/cron/Cron.stories.tsx +2 -2
- package/src/components/form/fields/date/Date.stories.tsx +2 -2
- package/src/components/form/fields/file/File.stories.tsx +2 -2
- package/src/components/form/fields/long-string/LongString.stories.tsx +2 -2
- package/src/components/form/fields/markdown/Markdown.stories.tsx +2 -2
- package/src/components/form/fields/number/Number.stories.tsx +2 -2
- package/src/components/form/fields/object/Object.stories.tsx +4 -4
- package/src/components/form/fields/radio-group/RadioGroup.stories.tsx +2 -2
- package/src/components/form/fields/rich-text/RichText.stories.tsx +2 -2
- package/src/components/form/fields/schema-definition/SchemaDefinitionField.stories.tsx +2 -2
- package/src/components/form/fields/select/Select.stories.tsx +2 -2
- package/src/components/form/fields/string/String.stories.tsx +2 -2
- package/src/components/form/fields/template/TemplateField.stories.tsx +2 -2
- package/src/components/form/fields/url/Url.stories.tsx +2 -2
- package/src/components/log/Log.stories.tsx +2 -2
- package/src/components/menu/Menu.stories.tsx +2 -2
- package/src/components/qonsoleSmartInput/QonsoleSmartInput.stories.tsx +2 -2
- package/src/components/smartEditor/SmartEditor.stories.tsx +2 -2
- package/src/hooks/useFetch/useFetch.stories.tsx +5 -5
- package/src/hooks/useStorage/useStorage.stories.tsx +2 -2
- package/src/hooks/useWebSocket/useWebsocket.stories.tsx +2 -2
- package/src/index.tsx +8 -6
- package/src/stores/currentUser/currentUser.stories.tsx +4 -4
- package/src/stories/Tests/utils.ts +1 -1
- package/src/types.ts +1 -1
- package/vite.config.ts +58 -0
- package/vitest.config.ts +69 -0
- package/dist/stories/Tests/utils.d.ts +0 -32
- package/dist/stories/Tests/utils.d.ts.map +0 -1
- package/dist/stories/Tests/utils.js +0 -416
- package/dist/stories/Tests/utils.js.map +0 -1
- package/dist/types.d.ts +0 -9
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -3
- package/dist/types.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
import { expect, fn, userEvent, waitFor, within } from '
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { expect, fn, userEvent, waitFor, within } from 'storybook/test';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
|
|
5
5
|
import { StoryMeta } from '../../../../types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
import { expect, fireEvent, waitFor, within } from '
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { expect, fireEvent, waitFor, within } from 'storybook/test';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import { StoryMeta } from '../../../../types';
|
|
5
5
|
import { SelectFormField } from './Select';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
import { expect, fn, userEvent, within } from '
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { expect, fn, userEvent, within } from 'storybook/test';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import { StoryMeta } from '../../../../types';
|
|
5
5
|
import { StringFormField } from './String';
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
// - the IDE's leaf story components (`LongStringField`, `Number`, `string`)
|
|
10
10
|
// are local 2-arg wrappers over reqraft's leaf fields, `auto` is the ported
|
|
11
11
|
// `AutoFormField`.
|
|
12
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
13
|
-
import { expect, fireEvent, fn, screen, userEvent, waitFor, within } from '
|
|
12
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
13
|
+
import { expect, fireEvent, fn, screen, userEvent, waitFor, within } from 'storybook/test';
|
|
14
14
|
import { useState } from 'react';
|
|
15
15
|
import { buildTemplates } from '../../../../helpers/templates';
|
|
16
16
|
import { mockExpressions } from '../../expressions/mockExpressions';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
import { expect, fn, userEvent, waitFor, within } from '
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { expect, fn, userEvent, waitFor, within } from 'storybook/test';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import { StoryMeta } from '../../../../types';
|
|
5
5
|
import { UrlFormField } from './Url';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
import { expect, fireEvent, fn } from '
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { expect, fireEvent, fn } from 'storybook/test';
|
|
3
3
|
import { Server } from 'mock-socket';
|
|
4
4
|
import { sleep, testsClickButton, testsWaitForText } from '../../../__tests__/utils';
|
|
5
5
|
import { StoryMeta } from '../../types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
import { expect, fireEvent, fn, waitFor } from '
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { expect, fireEvent, fn, waitFor } from 'storybook/test';
|
|
3
3
|
import { storiesStorageMock, storiesStorageMockEmpty } from '../../../__tests__/ mock';
|
|
4
4
|
import { testsWaitForText } from '../../../__tests__/utils';
|
|
5
5
|
import menu from '../../../mock/menu';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
import { expect, fn, userEvent, waitFor, within } from '
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { expect, fn, userEvent, waitFor, within } from 'storybook/test';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import { sleep } from '../../../__tests__/utils';
|
|
5
5
|
import { StoryMeta } from '../../types';
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
// shape end-to-end before promoting the spike into a `QonsoleSmartInput`
|
|
8
8
|
// component proper.
|
|
9
9
|
|
|
10
|
-
import { StoryObj } from '@storybook/react';
|
|
11
|
-
import { fn, userEvent, waitFor, within, expect } from '
|
|
10
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
11
|
+
import { fn, userEvent, waitFor, within, expect } from 'storybook/test';
|
|
12
12
|
import { sleep } from '../../../__tests__/utils';
|
|
13
13
|
import { useState } from 'react';
|
|
14
14
|
import { StoryMeta } from '../../types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReqoreSpinner, ReqoreTree } from '@qoretechnologies/reqore';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
3
3
|
import { testsWaitForText } from '../../../__tests__/utils';
|
|
4
4
|
import { StoryMeta } from '../../types';
|
|
5
5
|
import { useFetch } from './useFetch';
|
|
@@ -30,7 +30,7 @@ const meta = {
|
|
|
30
30
|
export default meta;
|
|
31
31
|
export type Story = StoryObj<typeof meta>;
|
|
32
32
|
|
|
33
|
-
export const
|
|
33
|
+
export const Get: Story = {
|
|
34
34
|
args: {
|
|
35
35
|
method: 'GET',
|
|
36
36
|
},
|
|
@@ -61,7 +61,7 @@ export const get: Story = {
|
|
|
61
61
|
},
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
export const
|
|
64
|
+
export const Put: Story = {
|
|
65
65
|
args: {
|
|
66
66
|
method: 'PUT',
|
|
67
67
|
},
|
|
@@ -83,7 +83,7 @@ export const put: Story = {
|
|
|
83
83
|
},
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
export const
|
|
86
|
+
export const Post: Story = {
|
|
87
87
|
args: {
|
|
88
88
|
method: 'POST',
|
|
89
89
|
},
|
|
@@ -105,7 +105,7 @@ export const post: Story = {
|
|
|
105
105
|
},
|
|
106
106
|
};
|
|
107
107
|
|
|
108
|
-
export const
|
|
108
|
+
export const Del: Story = {
|
|
109
109
|
args: {
|
|
110
110
|
method: 'DELETE',
|
|
111
111
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReqoreButton, ReqoreControlGroup, ReqoreP } from '@qoretechnologies/reqore';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
3
|
-
import { fireEvent, within } from '
|
|
2
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
3
|
+
import { fireEvent, within } from 'storybook/test';
|
|
4
4
|
import { storiesStorageMock } from '../../../__tests__/ mock';
|
|
5
5
|
import { testsWaitForText } from '../../../__tests__/utils';
|
|
6
6
|
import { StoryMeta } from '../../types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReqoreControlGroup, ReqoreP, ReqorePanel } from '@qoretechnologies/reqore';
|
|
2
2
|
import { TReqoreIntent } from '@qoretechnologies/reqore/dist/constants/theme';
|
|
3
|
-
import { StoryObj } from '@storybook/react';
|
|
4
|
-
import { expect, fn, waitFor, within } from '
|
|
3
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
4
|
+
import { expect, fn, waitFor, within } from 'storybook/test';
|
|
5
5
|
import { Server } from 'mock-socket';
|
|
6
6
|
import { useEffect, useState } from 'react';
|
|
7
7
|
import { useMount } from 'react-use';
|
package/src/index.tsx
CHANGED
|
@@ -10,26 +10,28 @@ export {
|
|
|
10
10
|
validateOptionWithRequiredGroups,
|
|
11
11
|
} from './helpers/validations';
|
|
12
12
|
export type { IValidationResult } from './helpers/validations';
|
|
13
|
-
export {
|
|
13
|
+
export { ReqraftMenu } from './components/menu/Menu';
|
|
14
|
+
export type {
|
|
14
15
|
IReqraftMenuItem,
|
|
15
16
|
IReqraftMenuProps,
|
|
16
|
-
ReqraftMenu,
|
|
17
17
|
TReqraftMenu,
|
|
18
18
|
TReqraftMenuItem,
|
|
19
19
|
} from './components/menu/Menu';
|
|
20
20
|
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
21
|
+
export { useFetch } from './hooks/useFetch/useFetch';
|
|
22
|
+
export type { IReqraftUseFetch } from './hooks/useFetch/useFetch';
|
|
23
|
+
export { useReqraftStorage } from './hooks/useStorage/useStorage';
|
|
24
|
+
export type { TReqraftUseStorage } from './hooks/useStorage/useStorage';
|
|
23
25
|
export * from './hooks/useWebSocket/useWebSocket';
|
|
24
26
|
export {
|
|
25
27
|
initializeReqraft,
|
|
26
28
|
ReqraftProvider,
|
|
27
29
|
ReqraftQueryClient,
|
|
28
30
|
} from './providers/ReqraftProvider';
|
|
29
|
-
export {
|
|
31
|
+
export { currentUserStore as ReqraftCurrentUserStore } from './stores/currentUser/currentUser';
|
|
32
|
+
export type {
|
|
30
33
|
ICurrentUser,
|
|
31
34
|
ICurrentUserStore,
|
|
32
|
-
currentUserStore as ReqraftCurrentUserStore,
|
|
33
35
|
} from './stores/currentUser/currentUser';
|
|
34
36
|
export { query } from './utils/fetch';
|
|
35
37
|
export * from './utils/websocket';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReqoreP, ReqoreSpinner, ReqoreTree } from '@qoretechnologies/reqore';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
3
3
|
import { testsWaitForText } from '../../../__tests__/utils';
|
|
4
4
|
import { StoryMeta } from '../../types';
|
|
5
5
|
import { currentUserStore } from './currentUser';
|
|
@@ -25,14 +25,14 @@ const meta = {
|
|
|
25
25
|
export default meta;
|
|
26
26
|
export type Story = StoryObj<typeof meta>;
|
|
27
27
|
|
|
28
|
-
export const
|
|
28
|
+
export const CurrentUserCanBeLoaded: Story = {
|
|
29
29
|
play: async () => {
|
|
30
30
|
await testsWaitForText('"David Nichols"');
|
|
31
31
|
},
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
export const
|
|
35
|
-
...
|
|
34
|
+
export const CurrentUserHasPermissions: Story = {
|
|
35
|
+
...CurrentUserCanBeLoaded,
|
|
36
36
|
render: () => {
|
|
37
37
|
const { hasAnyPermission } = currentUserStore();
|
|
38
38
|
|
package/src/types.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IReqoreUIProviderProps } from '@qoretechnologies/reqore/dist/containers/UIProvider';
|
|
2
|
-
import { Meta } from '@storybook/react';
|
|
2
|
+
import { Meta } from '@storybook/react-vite';
|
|
3
3
|
import { IReqraftProviderProps } from './providers/ReqraftProvider';
|
|
4
4
|
|
|
5
5
|
export type StoryMeta<
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import react from '@vitejs/plugin-react';
|
|
2
|
+
import { defineConfig, loadEnv } from 'vite';
|
|
3
|
+
|
|
4
|
+
// The old webpack `env` block injected these into process.env. Vite doesn't
|
|
5
|
+
// define `process` in the browser, so source/stories that read
|
|
6
|
+
// process.env.REACT_APP_QORUS_* (and NODE_ENV/CI) get `undefined` and the live
|
|
7
|
+
// editor stories then 401.
|
|
8
|
+
//
|
|
9
|
+
// Source the values from BOTH .env files AND the shell: the Storybook webpack
|
|
10
|
+
// builder used to auto-load `.env`/`.env.local` (see .gitignore), so a token
|
|
11
|
+
// kept in a gitignored `.env.local` worked without retyping it each launch.
|
|
12
|
+
// `loadEnv(mode, cwd, '')` reads all keys (empty prefix, not just VITE_); the
|
|
13
|
+
// shell still wins (e.g. `REACT_APP_QORUS_TOKEN=… yarn storybook`).
|
|
14
|
+
//
|
|
15
|
+
// NOTE: keep this a module-level call + a plain OBJECT export. vitest.config.ts
|
|
16
|
+
// does `mergeConfig(viteConfig, …)`, which throws "Cannot merge config in form
|
|
17
|
+
// of callback" if this file exports the `defineConfig(() => …)` function form.
|
|
18
|
+
const fileEnv = loadEnv(process.env.NODE_ENV || 'development', process.cwd(), '');
|
|
19
|
+
// Resolve a value from the shell, then .env files. Accepts fallback keys so a
|
|
20
|
+
// globally-exported `QORUS_TOKEN` (the CI secret name, and what's commonly set
|
|
21
|
+
// in the shell) is picked up even though the app reads `REACT_APP_QORUS_TOKEN`.
|
|
22
|
+
// Locally nothing ever bridged the two; CI bridges them in the workflow yaml.
|
|
23
|
+
const env = (...keys: string[]) => {
|
|
24
|
+
for (const key of keys) {
|
|
25
|
+
if (process.env[key]) return process.env[key] as string;
|
|
26
|
+
if (fileEnv[key]) return fileEnv[key];
|
|
27
|
+
}
|
|
28
|
+
return '';
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default defineConfig({
|
|
32
|
+
plugins: [react()],
|
|
33
|
+
resolve: {
|
|
34
|
+
// Ensure a single React instance across stories, the renderer and
|
|
35
|
+
// styled-components. Webpack deduped automatically; Vite needs this to
|
|
36
|
+
// avoid "A React Element from an older version of React was rendered".
|
|
37
|
+
dedupe: ['react', 'react-dom', 'react/jsx-runtime'],
|
|
38
|
+
},
|
|
39
|
+
// The Storybook Vite builder picks up this define, and the Vitest browser
|
|
40
|
+
// project merges this config — so both paths get the token.
|
|
41
|
+
define: {
|
|
42
|
+
// Map Node's `global` to the browser's globalThis. Some deps reference it —
|
|
43
|
+
// e.g. storybook-addon-mock's faker does `global.XMLHttpRequest`, which would
|
|
44
|
+
// throw "global is not defined" in the Vitest/Storybook browser otherwise.
|
|
45
|
+
global: 'globalThis',
|
|
46
|
+
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'storybook'),
|
|
47
|
+
'process.env.CI': JSON.stringify(env('CI')),
|
|
48
|
+
// Fall back to the unprefixed QORUS_TOKEN / QORUS_INSTANCE — the globally
|
|
49
|
+
// exported vars (qorus-ide reads the same QORUS_TOKEN). So a global
|
|
50
|
+
// QORUS_TOKEN now reaches Storybook without setting REACT_APP_QORUS_TOKEN.
|
|
51
|
+
'process.env.REACT_APP_QORUS_TOKEN': JSON.stringify(
|
|
52
|
+
env('REACT_APP_QORUS_TOKEN', 'QORUS_TOKEN')
|
|
53
|
+
),
|
|
54
|
+
'process.env.REACT_APP_QORUS_INSTANCE': JSON.stringify(
|
|
55
|
+
env('REACT_APP_QORUS_INSTANCE', 'QORUS_INSTANCE')
|
|
56
|
+
),
|
|
57
|
+
},
|
|
58
|
+
});
|
package/vitest.config.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { qlipVitestPlugin } from '@qoretechnologies/qlip';
|
|
2
|
+
import { storybookTest } from '@storybook/addon-vitest/vitest-plugin';
|
|
3
|
+
import { playwright } from '@vitest/browser-playwright';
|
|
4
|
+
import path from 'node:path';
|
|
5
|
+
import { fileURLToPath } from 'node:url';
|
|
6
|
+
import { defineConfig, mergeConfig } from 'vitest/config';
|
|
7
|
+
import viteConfig from './vite.config';
|
|
8
|
+
|
|
9
|
+
const dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
10
|
+
|
|
11
|
+
// qlip uploads only when a token is provided (CI). Local runs still capture
|
|
12
|
+
// snapshots via the plugin's `auto` mode but skip the upload step.
|
|
13
|
+
const qlipUploadToken = process.env.QLIP_UPLOAD_TOKEN;
|
|
14
|
+
|
|
15
|
+
export default mergeConfig(
|
|
16
|
+
viteConfig,
|
|
17
|
+
defineConfig({
|
|
18
|
+
test: {
|
|
19
|
+
projects: [
|
|
20
|
+
// Component/interaction tests: run every story in a real browser via
|
|
21
|
+
// Playwright. Replaces the former @storybook/test-runner.
|
|
22
|
+
{
|
|
23
|
+
extends: true,
|
|
24
|
+
plugins: [
|
|
25
|
+
qlipVitestPlugin({
|
|
26
|
+
auto: true,
|
|
27
|
+
captureOnError: true,
|
|
28
|
+
disableAnimations: true,
|
|
29
|
+
pauseAnimationsAtEnd: true,
|
|
30
|
+
viewport: { width: 1920, height: 1080 },
|
|
31
|
+
...(qlipUploadToken ? { upload: { uploadToken: qlipUploadToken } } : {}),
|
|
32
|
+
}),
|
|
33
|
+
storybookTest({
|
|
34
|
+
configDir: path.join(dirname, '.storybook'),
|
|
35
|
+
storybookScript: 'yarn storybook --no-open',
|
|
36
|
+
}),
|
|
37
|
+
],
|
|
38
|
+
test: {
|
|
39
|
+
name: 'storybook',
|
|
40
|
+
browser: {
|
|
41
|
+
enabled: true,
|
|
42
|
+
provider: playwright({}),
|
|
43
|
+
headless: true,
|
|
44
|
+
// Match the Chromatic snapshot viewport (preview.tsx sets [1440]).
|
|
45
|
+
viewport: { width: 1440, height: 900 },
|
|
46
|
+
instances: [{ browser: 'chromium' }],
|
|
47
|
+
},
|
|
48
|
+
setupFiles: ['./.storybook/vitest.setup.ts'],
|
|
49
|
+
// Some interaction stories deliberately render slow content (LSP /
|
|
50
|
+
// websocket editors) and the shared play helpers wait up to ~17s.
|
|
51
|
+
testTimeout: 30000,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
// Unit tests: the former Jest suite, now on Vitest + jsdom.
|
|
55
|
+
{
|
|
56
|
+
extends: true,
|
|
57
|
+
test: {
|
|
58
|
+
name: 'unit',
|
|
59
|
+
globals: true,
|
|
60
|
+
environment: 'jsdom',
|
|
61
|
+
include: ['__tests__/**/*.test.{ts,tsx}'],
|
|
62
|
+
setupFiles: ['./__tests__/setup.ts'],
|
|
63
|
+
testTimeout: 30000,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
})
|
|
69
|
+
);
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export declare const sleep: (ms: number) => Promise<unknown>;
|
|
2
|
-
export declare function _testsScrollElementIntoView(selector: string, nth?: number): Promise<void>;
|
|
3
|
-
export declare function _testsChangeRichText(value: string, nth?: number): Promise<void>;
|
|
4
|
-
export declare function _testsConfirmDialog(): Promise<void>;
|
|
5
|
-
export declare function _testsOpenTemplateMenu(nth?: number): Promise<void>;
|
|
6
|
-
export declare function _testsSetTemplate(nth?: number): Promise<void>;
|
|
7
|
-
export declare function _testsOpenTemplates(nth?: number): Promise<void>;
|
|
8
|
-
export declare function _testsWaitForText(text: string | number | RegExp, selector?: string, nth?: number, exist?: boolean): Promise<void>;
|
|
9
|
-
export declare function _testsWaitForInputValue(value: string | number, selector?: string, nth?: number, exist?: boolean): Promise<void>;
|
|
10
|
-
export declare function _testsClickText(text: string, selector?: string, nth?: number): Promise<void>;
|
|
11
|
-
export declare function _testsWaitForTextsCount(text: string, selector?: string, count?: number): Promise<void>;
|
|
12
|
-
export declare function _testsWaitForTextToNotExist(text: string, selector?: string, nth?: number): Promise<void>;
|
|
13
|
-
export declare function _testsChangeStringField({ selector, nth, value, }: {
|
|
14
|
-
selector: string;
|
|
15
|
-
nth?: number;
|
|
16
|
-
value: string | number;
|
|
17
|
-
}): Promise<void>;
|
|
18
|
-
export declare function _testsClickButton({ label, selector, nth, wait, parent, }: {
|
|
19
|
-
label?: string;
|
|
20
|
-
selector?: string;
|
|
21
|
-
nth?: number;
|
|
22
|
-
wait?: number;
|
|
23
|
-
parent?: string;
|
|
24
|
-
}): Promise<void>;
|
|
25
|
-
export declare function _testsDoubleClickButton({ label, selector, nth, wait, parent, }: {
|
|
26
|
-
label?: string;
|
|
27
|
-
selector?: string;
|
|
28
|
-
nth?: number;
|
|
29
|
-
wait?: number;
|
|
30
|
-
parent?: string;
|
|
31
|
-
}): Promise<void>;
|
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