#9227 Refactor useTheme
to use useManagedStorageState
#22188
ci.yml
on: pull_request
Matrix: end-to-end-tests / run-tests
test
6m 23s
build
2m 55s
generate-headers
55s
types
1m 21s
lint
4m 25s
dead-code
1m 32s
prettier
8s
Create report
43s
upload-to-codecov
0s
Annotations
11 errors and 1 warning
dead-code
Process completed with exit code 1.
|
useTheme › handles showSidebarLogo policy (policy: true:
src/hooks/useTheme.test.ts#L126
Timed out in waitForNextUpdate after 1000ms.
at waitForNextUpdate (node_modules/@testing-library/react-hooks/lib/core/asyncUtils.js:96:13)
at src/hooks/useTheme.test.ts:126:7
|
useTheme › handles showSidebarLogo policy (policy: true:
src/hooks/useTheme.test.ts#L126
Timed out in waitForNextUpdate after 1000ms.
at waitForNextUpdate (node_modules/@testing-library/react-hooks/lib/core/asyncUtils.js:96:13)
at src/hooks/useTheme.test.ts:126:7
|
useTheme › handles showSidebarLogo policy (policy: false:
src/hooks/useTheme.test.ts#L126
Timed out in waitForNextUpdate after 1000ms.
at waitForNextUpdate (node_modules/@testing-library/react-hooks/lib/core/asyncUtils.js:96:13)
at src/hooks/useTheme.test.ts:126:7
|
useTheme › handles showSidebarLogo policy (policy: false:
src/hooks/useTheme.test.ts#L126
Timed out in waitForNextUpdate after 1000ms.
at waitForNextUpdate (node_modules/@testing-library/react-hooks/lib/core/asyncUtils.js:96:13)
at src/hooks/useTheme.test.ts:126:7
|
useTheme › handles showSidebarLogo policy (policy: undefined:
src/hooks/useTheme.test.ts#L126
Timed out in waitForNextUpdate after 1000ms.
at waitForNextUpdate (node_modules/@testing-library/react-hooks/lib/core/asyncUtils.js:96:13)
at src/hooks/useTheme.test.ts:126:7
|
useTheme › handles showSidebarLogo policy (policy: undefined:
src/hooks/useTheme.test.ts#L126
Timed out in waitForNextUpdate after 1000ms.
at waitForNextUpdate (node_modules/@testing-library/react-hooks/lib/core/asyncUtils.js:96:13)
at src/hooks/useTheme.test.ts:126:7
|
useTheme › uses activeTheme when an error occurs in managed storage (showSidebarLogo: false):
src/hooks/useTheme.test.ts#L155
expect(received).toBe(expected) // Object.is equality
Expected: false
Received: true
at toBe (src/hooks/useTheme.test.ts:155:58)
|
useManagedStorageState › waits on uninitialized state:
src/store/enterprise/useManagedStorageState.test.ts#L28
thrown: "Exceeded timeout of 5000 ms for a test.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
at it (src/store/enterprise/useManagedStorageState.test.ts:28:3)
at Object.describe (src/store/enterprise/useManagedStorageState.test.ts:27:1)
|
useManagedStorageState › handles already initialized state:
src/store/enterprise/useManagedStorageState.test.ts#L61
Timed out in waitForNextUpdate after 1000ms.
at waitForNextUpdate (node_modules/@testing-library/react-hooks/lib/core/asyncUtils.js:96:13)
at Object.<anonymous> (src/store/enterprise/useManagedStorageState.test.ts:61:5)
|
BrowserBanner › suppress with managed storage:
src/extensionConsole/pages/BrowserBanner.test.tsx#L72
expect(element).not.toBeInTheDocument()
expected document not to contain element, found <div class="align-self-center">PixieBrix officially supports Google Chrome and Microsoft Edge. Some functionality may not be available on your browser.<button class="info ml-3 btn btn-primary btn-sm" type="button">OK</button></div> instead
at Object.toBeInTheDocument (src/extensionConsole/pages/BrowserBanner.test.tsx:72:11)
|
prettier
The `python-version` input is not set. The version of Python currently in `PATH` will be used.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
brick-headers
|
17 KB |
|
build-staging-bundle-dependency-report
|
562 KB |
|
end-to-end-tests-report
|
47.7 MB |
|
end-to-end-tests-report-chrome-1
|
23 MB |
|
end-to-end-tests-report-chrome-2
|
65.5 KB |
|
end-to-end-tests-report-chrome-3
|
64.9 KB |
|
end-to-end-tests-report-msedge-1
|
23.9 MB |
|
end-to-end-tests-report-msedge-2
|
8.64 MB |
|
end-to-end-tests-report-msedge-3
|
64.1 KB |
|