From 83ec4d093b3ad131b5a7820ed70aaca2477fef77 Mon Sep 17 00:00:00 2001 From: akanshaaaa19 Date: Mon, 6 May 2024 16:36:20 +0530 Subject: [PATCH 1/4] removed the banner and updated the size --- src/containers/Auth/Auth.tsx | 5 +++-- src/containers/KnowledgeBase/UploadFile/UploadFile.tsx | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/containers/Auth/Auth.tsx b/src/containers/Auth/Auth.tsx index 8f71f0d40..1b200b16f 100644 --- a/src/containers/Auth/Auth.tsx +++ b/src/containers/Auth/Auth.tsx @@ -9,7 +9,7 @@ import WhatsAppIcon from 'assets/images/icons/Social/Whatsapp.svg?react'; import { termsOfUse } from 'containers/Organization/Organization'; import { Button } from 'components/UI/Form/Button/Button'; import GlificLogo from 'assets/images/logo/Logo.svg'; -import { Promotion } from './Promotion/Promotion'; +// import { Promotion } from './Promotion/Promotion'; import styles from './Auth.module.css'; import axios from 'axios'; import { ORGANIZATION_NAME } from 'config'; @@ -259,7 +259,8 @@ export const Auth = ({ ) : null} - {mode === 'login' && } + {/* commenting out promotion banner */} + {/* {mode === 'login' && } */} ); }; diff --git a/src/containers/KnowledgeBase/UploadFile/UploadFile.tsx b/src/containers/KnowledgeBase/UploadFile/UploadFile.tsx index 53ee8ee44..b012f351e 100644 --- a/src/containers/KnowledgeBase/UploadFile/UploadFile.tsx +++ b/src/containers/KnowledgeBase/UploadFile/UploadFile.tsx @@ -64,8 +64,8 @@ export const UploadFile = ({ setFile, setCategory }: UploadFileProps) => { const addFile = (event: any) => { const media = event.target.files[0]; if (media) { - if (media.size / 1000000 > 1) { - setErrors('File size should be less than 1MB'); + if (media.size / 1000000 > 20) { + setErrors('File size should be less than 20MB'); return; } else if (media.type !== 'application/pdf') { setErrors('File type should be PDF'); @@ -137,7 +137,7 @@ export const UploadFile = ({ setFile, setCategory }: UploadFileProps) => {

Please upload a single page PDF.
- Size should not exceed 1MB. + Size should not exceed 20MB.

From 65f078227437408938318723d003ec5435d5565b Mon Sep 17 00:00:00 2001 From: akanshaaaa19 Date: Wed, 8 May 2024 15:51:16 +0530 Subject: [PATCH 2/4] changes the size --- src/containers/KnowledgeBase/UploadFile/UploadFile.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/KnowledgeBase/UploadFile/UploadFile.test.tsx b/src/containers/KnowledgeBase/UploadFile/UploadFile.test.tsx index a4afc3f3b..a8d43b3cf 100644 --- a/src/containers/KnowledgeBase/UploadFile/UploadFile.test.tsx +++ b/src/containers/KnowledgeBase/UploadFile/UploadFile.test.tsx @@ -55,7 +55,7 @@ test('shows errors for invalid file', async () => { }); await waitFor(() => { - expect(screen.getAllByText('File size should be less than 1MB')[0]).toBeInTheDocument(); + expect(screen.getAllByText('File size should be less than 20MB')[0]).toBeInTheDocument(); }); fireEvent.change(screen.getByTestId('uploadFile'), { From 2a3558f39b0267f256393e6541c86cc4ba4d4110 Mon Sep 17 00:00:00 2001 From: akanshaaaa19 Date: Wed, 8 May 2024 16:08:41 +0530 Subject: [PATCH 3/4] changes the size --- src/containers/KnowledgeBase/UploadFile/UploadFile.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/KnowledgeBase/UploadFile/UploadFile.test.tsx b/src/containers/KnowledgeBase/UploadFile/UploadFile.test.tsx index a8d43b3cf..c05414539 100644 --- a/src/containers/KnowledgeBase/UploadFile/UploadFile.test.tsx +++ b/src/containers/KnowledgeBase/UploadFile/UploadFile.test.tsx @@ -50,7 +50,7 @@ test('shows errors for invalid file', async () => { fireEvent.change(screen.getByTestId('uploadFile'), { target: { - files: [mockFile('application/pdf', 1700000)], + files: [mockFile('application/pdf', 21000000)], }, }); From 4173e38186a6e2a7deab33391768983df4a19eab Mon Sep 17 00:00:00 2001 From: akanshaaaa19 Date: Wed, 8 May 2024 16:16:25 +0530 Subject: [PATCH 4/4] updated cypress branch --- .github/workflows/cypress-testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cypress-testing.yml b/.github/workflows/cypress-testing.yml index 320619d23..5d0b90ed0 100644 --- a/.github/workflows/cypress-testing.yml +++ b/.github/workflows/cypress-testing.yml @@ -96,7 +96,7 @@ jobs: git clone https://github.com/glific/cypress-testing.git echo done. go to dir. cd cypress-testing - git checkout test_cases_wa_group + git checkout main cd .. cp -r cypress-testing/cypress cypress yarn add cypress@13.6.2