Skip to content

Commit

Permalink
fix: e2e screenshots tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 committed Nov 10, 2022
1 parent b0a8341 commit cba3c71
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export const [DialogProvider, useDialogDispatch, useDialogContext] =
content: {
'application/json': {
name: props.keyName,
namespace: selectedNs,
namespace: selectedNs || undefined,
translations: newTranslations,
screenshotUploadedImageIds: screenshots.map((sc) => sc.id),
},
Expand All @@ -290,7 +290,7 @@ export const [DialogProvider, useDialogDispatch, useDialogContext] =
content: {
'application/json': {
name: props.keyName,
namespace: selectedNs,
namespace: selectedNs || undefined,
translations: newTranslations,
screenshotIdsToDelete: getRemovedScreenshots(),
screenshotUploadedImageIds: getJustUploadedScreenshots(),
Expand Down Expand Up @@ -434,7 +434,11 @@ export const [DialogProvider, useDialogDispatch, useDialogContext] =
const error =
languagesLoadable.error ||
translationsLoadable.error ||
scopesLoadable.error;
scopesLoadable.error ||
createKey.error ||
updateKey.error ||
deleteImage.error ||
uploadImage.error;

const screenshotsUploading = uploadImage.isLoading;

Expand Down

0 comments on commit cba3c71

Please sign in to comment.