-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Unit test cases for redux and settings * Unit tests for misc and result section * Unit test cases for logs and sublattice * Unit test cases for dispatches and navdrawer * Unit test cases added for dispatches folder * Unit test cases describe text modified * Unit test cases for common componenets * Unit test cases for logs and common components * Sonarqube fixes * Graph: removed commented code and lint check * Added license text * Fix hideLabels and params * Update changelog * Fix tests * Fix unused imports Co-authored-by: kamalesh.suresh <[email protected]> Co-authored-by: Amalan Jenicious F <[email protected]> Co-authored-by: Alejandro Esquivel <[email protected]>
- Loading branch information
1 parent
b53046e
commit 25b2ace
Showing
72 changed files
with
4,672 additions
and
783 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |
|
||
## [UNRELEASED] | ||
|
||
### Added | ||
|
||
- Front-end pending unit tests for the GUI. | ||
|
||
## [0.211.1-rc.0] - 2023-01-12 | ||
|
||
### Authors | ||
|
@@ -16,7 +20,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |
- Co-authored-by: ArunPsiog <[email protected]> | ||
- Co-authored-by: Alejandro Esquivel <[email protected]> | ||
|
||
|
||
### Fixed | ||
|
||
- Optimization of logs on the GUI for large log file sizes. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,5 +69,8 @@ | |
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
}, | ||
"devDependencies": { | ||
"redux-mock-store": "^1.5.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* Copyright 2021 Agnostiq Inc. | ||
* | ||
* This file is part of Covalent. | ||
* | ||
* Licensed under the GNU Affero General Public License 3.0 (the "License"). | ||
* A copy of the License may be obtained with this software package or at | ||
* | ||
* https://www.gnu.org/licenses/agpl-3.0.en.html | ||
* | ||
* Use of this file is prohibited except in compliance with the License. Any | ||
* modifications or derivative works of this file must retain this copyright | ||
* notice, and modified files must contain a notice indicating that they have | ||
* been altered from the originals. | ||
* | ||
* Covalent is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. | ||
* | ||
* Relief from the License may be granted by purchasing a commercial license. | ||
*/ | ||
|
||
import configureMockStore from 'redux-mock-store' | ||
import thunk from 'redux-thunk' | ||
import ReactDOM from 'react-dom' | ||
|
||
jest.mock('react-dom', () => ({ render: jest.fn() })) | ||
|
||
describe('testing index', () => { | ||
test('mock store', () => { | ||
const mockStore = configureMockStore([thunk]) | ||
expect(mockStore).toBeDefined() | ||
}) | ||
test('rendering react dom', () => { | ||
const div = document.createElement('div') | ||
div.id = 'root' | ||
document.body.appendChild(div) | ||
require('../index') | ||
expect(ReactDOM.render).toHaveBeenCalled() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
covalent_ui/webapp/src/components/common/__tests__/DownloadButton.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/** | ||
* Copyright 2021 Agnostiq Inc. | ||
* | ||
* This file is part of Covalent. | ||
* | ||
* Licensed under the GNU Affero General Public License 3.0 (the "License"). | ||
* A copy of the License may be obtained with this software package or at | ||
* | ||
* https://www.gnu.org/licenses/agpl-3.0.en.html | ||
* | ||
* Use of this file is prohibited except in compliance with the License. Any | ||
* modifications or derivative works of this file must retain this copyright | ||
* notice, and modified files must contain a notice indicating that they have | ||
* been altered from the originals. | ||
* | ||
* Covalent is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. | ||
* | ||
* Relief from the License may be granted by purchasing a commercial license. | ||
*/ | ||
import '@testing-library/jest-dom' | ||
import { render, screen } from '@testing-library/react' | ||
import App from '../DownloadButton' | ||
|
||
describe('download button', () => { | ||
test('renders download button', () => { | ||
render(<App title="download button" />) | ||
const element = screen.getByTestId('downloadButton') | ||
expect(element).toBeInTheDocument() | ||
}) | ||
|
||
test('renders download button with border', () => { | ||
render(<App title="download button" isBorderPresent />) | ||
const element = screen.getByTestId('downloadButton') | ||
expect(element).toBeInTheDocument() | ||
}) | ||
|
||
test('button clicked', () => { | ||
render(<App title="download button" />) | ||
const element = screen.getByLabelText('download button') | ||
expect(element).toBeInTheDocument() | ||
}) | ||
}) |
Oops, something went wrong.