Master broken: ee/spec/frontend/remote_development/pages/create_spec.js
https://gitlab.com/gitlab-org/gitlab/-/jobs/4238725585 shows:
FAIL ee/spec/frontend/remote_development/pages/create_spec.js
● remote_development/pages/create.vue › when a project and a cluster agent are selected and the project has a devfile › when clicking Create Workspace button › when the workspaceCreate mutation succeeds › when workspaces are previously cached, updates cache
Unexpected call of console.error() with:
Missing field 'pageInfo' while writing result {
"nodes": [
{
"id": 1,
"name": "Workspace 1",
"namespace": "Namespace",
"projectId": "gid://gitlab/Project/2",
"desiredState": "Running",
"actualState": "Started",
"url": "http://test.host/workspace/1",
"devfileRef": "main",
"devfilePath": ".devfile.yaml",
"createdAt": "2023-05-01T18:24:34Z"
}
]
}
71 | const writeCachedWorkspaces = (worksspaces) => {
72 | const apolloClient = mockApollo.clients.defaultClient;
> 73 | apolloClient.writeQuery({
| ^
74 | query: userWorkspacesQuery,
75 | data: {
76 | currentUser: {
at Function.error (node_modules/ts-invariant/lib/invariant.esm.js:35:27)
at node_modules/@apollo/client/cache/inmemory/writeToStore.js:158:38
at Map.forEach (<anonymous>)
at StoreWriter.Object.<anonymous>.StoreWriter.processSelectionSet (node_modules/@apollo/client/cache/inmemory/writeToStore.js:116:69)
at StoreWriter.Object.<anonymous>.StoreWriter.processFieldValue (node_modules/@apollo/client/cache/inmemory/writeToStore.js:216:21)
at node_modules/@apollo/client/cache/inmemory/writeToStore.js:129:43
at Map.forEach (<anonymous>)
at StoreWriter.Object.<anonymous>.StoreWriter.processSelectionSet (node_modules/@apollo/client/cache/inmemory/writeToStore.js:116:69)
at StoreWriter.Object.<anonymous>.StoreWriter.processFieldValue (node_modules/@apollo/client/cache/inmemory/writeToStore.js:216:21)
at node_modules/@apollo/client/cache/inmemory/writeToStore.js:129:43
at Map.forEach (<anonymous>)
at StoreWriter.Object.<anonymous>.StoreWriter.processSelectionSet (node_modules/@apollo/client/cache/inmemory/writeToStore.js:116:69)
at StoreWriter.Object.<anonymous>.StoreWriter.writeToStore (node_modules/@apollo/client/cache/inmemory/writeToStore.js:45:24)
at InMemoryCache.Object.<anonymous>.InMemoryCache.write (node_modules/@apollo/client/cache/inmemory/inMemoryCache.js:98:37)
at InMemoryCache.Object.<anonymous>.ApolloCache.writeQuery (node_modules/@apollo/client/cache/core/cache.js:44:21)
at ApolloClient.Object.<anonymous>.ApolloClient.writeQuery (node_modules/@apollo/client/core/ApolloClient.js:153:20)
at writeQuery (ee/spec/frontend/remote_development/pages/create_spec.js:73:18)
at Object.writeCachedWorkspaces (ee/spec/frontend/remote_development/pages/create_spec.js:315:11)
● remote_development/pages/create.vue › when a project and a cluster agent are selected and the project has a devfile › when clicking Create Workspace button › when the workspaceCreate mutation succeeds › when workspaces are previously cached, updates cache
expect.hasAssertions()
Expected at least one assertion to be called but received none.
71 | // see https://jestjs.io/docs/en/expect#expecthasassertions
72 | // eslint-disable-next-line jest/no-standalone-expect
> 73 | expect.hasAssertions();
| ^
74 |
75 | // Reset globals: This ensures tests don't interfere with
76 | // each other, and removes the need to tidy up if it was
at Object.hasAssertions (spec/frontend/__helpers__/shared_test_setup.js:73:10)
Test Suites: 1 failed, 542 passed, 543 total
Tests: 1 failed, 1 skipped, 6324 passed, 6326 total
Snapshots: 38 passed, 38 total
Time: 1293.743 s
Ran all test suites.
error Command failed with exit code 1.
/cc: @pslaughter, @ealcantara