Skip to content

Commit

Permalink
fix: adapt optimistic mutations (#649)
Browse files Browse the repository at this point in the history
* refactor: update query client
  • Loading branch information
pyphilia committed Jun 14, 2023
1 parent e33359d commit 6a5d15d
Show file tree
Hide file tree
Showing 5 changed files with 487 additions and 52 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/item/delete/gridRecycleItem.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('Recycle Item in Grid', () => {

describe('Error handling', () => {
it('error while deleting item does not recycle in interface', () => {
cy.setUpApi({ ...SAMPLE_ITEMS, recycleItemError: true });
cy.setUpApi({ ...SAMPLE_ITEMS, recycleItemsError: true });
const { id } = SAMPLE_ITEMS.items[0];
const { id: idToDelete } = SAMPLE_ITEMS.items[2];

Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/item/delete/listRecycleItem.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('Recycle Item in List', () => {

describe('Error handling', () => {
it('error while recycling item does not recycle in interface', () => {
cy.setUpApi({ ...SAMPLE_ITEMS, recycleItemError: true });
cy.setUpApi({ ...SAMPLE_ITEMS, recycleItemsError: true });
const { id } = SAMPLE_ITEMS.items[0];
const { id: idToDelete } = SAMPLE_ITEMS.items[2];

Expand Down
1 change: 0 additions & 1 deletion cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ Cypress.Commands.add(
postItemFlagError = false,
getItemChatError = false,
recycleItemsError = false,
// getRecycledItemsError = false,
deleteItemTagError = false,
restoreItemsError = false,
getItemThumbnailError = false,
Expand Down
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"Alexandre Chau"
],
"dependencies": {
"@emotion/react": "11.11.0",
"@emotion/react": "11.11.1",
"@emotion/styled": "11.11.0",
"@graasp/chatbox": "2.0.0-rc.1",
"@graasp/query-client": "1.0.0-rc1",
"@graasp/query-client": "1.0.0-rc.2",
"@graasp/sdk": "1.0.0-rc1",
"@graasp/translations": "1.14.0",
"@graasp/ui": "3.0.0-rc.2",
Expand Down Expand Up @@ -142,12 +142,11 @@
"resolutions": {
"@mui/icons-material": "5.11.16",
"@mui/material": "5.12.3",
"immer": "9.0.6",
"node-forge": "1.3.0",
"@graasp/sdk": "1.0.0-rc1",
"nth-check": "2.0.1",
"react-error-overlay": "6.0.9",
"@types/react": "17.0.2",
"immer": "9.0.21",
"node-forge": "1.3.1",
"nth-check": "2.1.1",
"react-error-overlay": "6.0.11",
"@types/react": "17.0.62",
"@svgr/webpack": "6.5.1"
},
"packageManager": "yarn@3.5.1"
Expand Down
Loading

0 comments on commit 6a5d15d

Please sign in to comment.