Skip to content

Commit c00b1eb

Browse files
fix: remove unnecessary error logging and clean up unused imports in various components
1 parent 6e23bd4 commit c00b1eb

File tree

8 files changed

+7
-18
lines changed

8 files changed

+7
-18
lines changed

src/pages/Plan/context/planContext.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ export const PlanProvider = ({ children }: { children: ReactNode }) => {
9595
}
9696
} catch (error) {
9797
setIsPaymentInProgress(false);
98-
console.error(`Error while checkout process: ${error}`);
9998
}
10099
};
101100

src/pages/Plan/modals/DateInThePastAlertModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const DateInThePastAlertModal = ({ onQuit }: { onQuit: () => void }) => {
6666
.then(() => {
6767
navigate(window.location.pathname, { replace: true });
6868
})
69-
.catch((err) => {
69+
.catch(() => {
7070
addToast(
7171
({ close }) => (
7272
<Notification

src/pages/Plan/modules/Factory/modules/Literacy/Component.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
22
AccordionNew,
3-
Button,
43
Checkbox,
54
FormField,
65
Hint,

src/pages/Plan/modules/Factory/modules/OutOfScope/Component.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
Label,
77
SM,
88
Span,
9-
Textarea,
109
Tooltip,
1110
} from '@appquality/unguess-design-system';
1211
import { useState } from 'react';

src/pages/Plan/modules/Factory/modules/TargetSize/Component.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {
22
AccordionNew,
33
Alert,
4-
Button,
54
FormField,
65
IconButton,
76
Input,

src/pages/Plan/useSetDraftOnFailed.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,7 @@ export const useSetDraftOnFailed = () => {
5454
{ placement: 'top' }
5555
);
5656
})
57-
.catch((err) => {
58-
console.error(
59-
'Error updating plan status after payment failure',
60-
err
61-
);
57+
.catch(() => {
6258
navigate(notFoundRoute, { state: { from: location.pathname } });
6359
});
6460
};

tests/e2e/plan/modules/out_of_scope.spec.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
import draft from '../../../api/plans/pid/_get/200_draft_complete.json';
2-
import { expect, test } from '../../../fixtures/app';
1+
import { test } from '../../../fixtures/app';
32
import { PlanPage } from '../../../fixtures/pages/Plan';
4-
import { OutOfScopeModule } from '../../../fixtures/pages/Plan/Module_out_of_scope';
3+
// import { OutOfScopeModule } from '../../../fixtures/pages/Plan/Module_out_of_scope';
54

65
test.describe('The title module defines the Plan title.', () => {
76
let planPage: PlanPage;
8-
let module: OutOfScopeModule;
7+
// let module: OutOfScopeModule;
98

109
test.beforeEach(async ({ page }) => {
1110
planPage = new PlanPage(page);
12-
module = new OutOfScopeModule(page);
11+
// module = new OutOfScopeModule(page);
1312
await planPage.loggedIn();
1413
await planPage.mockPreferences();
1514
await planPage.mockWorkspace();

tests/e2e/plan/modules/tasks.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ test.describe('The tasks module defines a list of activities.', () => {
2323
await moduleBuilderPage.elements().tabInstructions().click();
2424
});
2525

26-
test('Tasks can be deleted, but it is required to have at least 1 item to Request a Quote', async ({
27-
i18n,
28-
}) => {
26+
test('Tasks can be deleted, but it is required to have at least 1 item to Request a Quote', async () => {
2927
await expect(tasksModule.elements().module()).toBeVisible();
3028
const tasks = TasksModule.getTasksFromPlan(apiGetDraftMandatoryPlan);
3129
await expect(tasksModule.elements().taskListItem()).toHaveCount(

0 commit comments

Comments
 (0)