Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/cdctoolbox 462 #107

Open
wants to merge 69 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
8c49d59
Adding second implementation
Nov 29, 2024
76dae99
Adding files
Dec 2, 2024
58eb20a
CDCTOOLBOX-462:Continuing implementation
Dec 6, 2024
88e602e
Local changes
Dec 10, 2024
3a6bca0
Local changes
Dec 11, 2024
df7beda
Local changes. Lite/Full
Dec 12, 2024
4f99940
CDCTOOLBOX-462: Lite configuration
Dec 13, 2024
9fae37b
CDCTOOLBOX-462:Fixing Mandatory fields and tooltip
Dec 16, 2024
bbbeae8
feature/CDCTOOLBOX-462: Fixing CSS Changes
Dec 16, 2024
e8d2b39
feature:CDCTOOLBOX-462: Changing azure templates
Dec 17, 2024
959cdcf
Fixing local
Dec 17, 2024
4789bc1
feature/CDCTOOLBOX-462:Centralizing feature
Dec 17, 2024
1e4c9af
feature/CDCTOOLBOX-462: Fixing second part changes
Dec 17, 2024
8959101
Local changes
Dec 18, 2024
16db78b
feature/CDCTOOLBOX-462: Removing other servers
Dec 18, 2024
aa56a33
feature/CDCTOOLBOx-462: Adding copyright comment
Jan 8, 2025
b910eb3
Adding local testing
Jan 8, 2025
cb98c5d
feature/CDCTOOLBOX-462:Adding jest testing for server import
Jan 8, 2025
799edcb
feature/CDCTOOLBOX-462:Adding jest testing for server import
Jan 8, 2025
9f4a220
feature/CDCTOOLBOX-462:Adding tests
Jan 9, 2025
1dbd608
feature/CDCTOOLBOX-462:Fixing cypress testing
Jan 9, 2025
b375fb9
feature/CDCTOOLBOX-462:Remove cypress file
Jan 9, 2025
bb1bcdd
feature/CDCTOOLBOX-462:Changing button ID
Jan 9, 2025
7831838
feature/CDCTOOLBOX-462:Adding cypress testing
Jan 9, 2025
0888066
feature/CDCTOOLBOX-462:Ading cypress tests
Jan 9, 2025
26347c5
feature/CDCTOOLBOX-462:Adding cypress testing
Jan 9, 2025
ca54a6e
feature/CDCTOOLBOX-462:Fixing server import jest testing
Jan 9, 2025
30e5fb1
featurEe
Jan 9, 2025
80a41d2
feature/CDCTOOLBOX-462:Fixing duplicated code from templates
Jan 10, 2025
ca429c5
feature/CDCTOOLBOX-462:Adding one more common data
Jan 10, 2025
7ce7145
feature/CDCTOOLBOX-462: ADDING MORE COMMON STEPS
Jan 10, 2025
e89dbb5
feature/CDCTOOLBOX-462: ADDING GENERIC FUNTION
Jan 10, 2025
5d310a2
feature/CDCTOOLBOX-462:Adding some refactoring
Jan 10, 2025
472cf4e
feature/CDCTOOLBOX-462:Refactoring dinamic steps
Jan 10, 2025
71f90f5
feature/CDCTOOLBOX-462:Removing and refactoring empty lines and hardC…
Jan 16, 2025
401b02d
feature/CDCTOOLBOX-462:Refactoring code for PR
Jan 16, 2025
0e0cb1a
feature/CDCTOOLBOX-462:Adding first feature and Collapsable panels
Jan 16, 2025
d146630
feature/CDCTOOLBOX-462:Fixing view
Jan 17, 2025
50ba9ca
feature/CDCTOOLBOX-462:Adding the first feature and joining them
Jan 17, 2025
dac5de7
feature/CDCTOOLBOX-462:Fixing requested changes
Jan 17, 2025
d03da50
feature/CDCTOOLBOX-462:Fixing requested changes
Jan 17, 2025
454fa2b
feature/CDCTOOLBOX-462:Fixing cypress testing
Jan 17, 2025
01a689b
feature/CDCTOOLBOX-462:Fixing code smells
Jan 17, 2025
50b9a4d
feature/CDCTOOLBOX-462:Fixing changes
Jan 17, 2025
6a464be
feature/CDCTOOLBOX-462:Adding slice tests
Jan 17, 2025
af48d9d
feature/CDCTOOLBOX-462:Add empty lines on the treeSearch class
Jan 17, 2025
05864b5
CDCTOOLBOX-462:Fixing changes
Jan 19, 2025
a2036d1
feature/CDCTOOLBOX-462:Changing dataflow id on the expected message
Jan 20, 2025
7643826
feature/CDCTOOLBOX-462:Fixing changes
Jan 23, 2025
38ba44a
feature/CDCTOOLBOX-462:Fixing import Redux utils changes
Jan 23, 2025
3493297
feature/CDCTOOLBOX-462:Fixing cypress testing
Jan 24, 2025
c3340aa
CDCTOOLBOX-462:Adding more tests
Jan 24, 2025
956a382
CDCTOOLBOX-462:Adding redirection link and adjusting tests
Jan 24, 2025
00d5fd6
feature/CDCTOOLBOX-462:Adding tests
Jan 24, 2025
f040bf9
feature/CDCTOOLBOX-462:Removing code smells
Jan 24, 2025
e849ad4
feature/CDCTOOBOX-462:Removing useless code
Jan 24, 2025
00fcd82
feature/CDCTOOLBOX-462:Fixing url from dataflow success message
Jan 24, 2025
4c4c5dc
feature/CDCTOOLBOX-462:Fixing checkmarx
Jan 24, 2025
067db8e
feature/CDCDTOOLBOX-462: Fixing requested changes
Jan 27, 2025
3839449
feature/CDCTOOLBOX-462:Refactoring condition for mandatory fields
Jan 27, 2025
7044434
feature/CDCTOOLBOX-462:Fixing redirectional url
Jan 28, 2025
e92897c
feature/CDCTOOLBOX-462:Fixing cypress testing
Jan 28, 2025
7abbc88
feature/CDCTOOLBOX-462:Changing function name
Jan 28, 2025
85d7583
feature/CDCTOOLBOX-462:Fixing grey page after url link
Jan 29, 2025
407da21
feature/CDCTOOLBOX-462:Adding validation before replacing variables
Jan 31, 2025
d1a9621
feature/CDCTOOLBOX-462:Fixing cypress testing
Jan 31, 2025
f758e6a
feature/CDCTOOLBOX-462:Adding tests
Jan 31, 2025
661ab8d
feature/CDCTOOLBOX-462:Fixing testing
Jan 31, 2025
9487506
feature/CDCTOOLBOX-462:Refactoring dataflow template
Feb 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions cypress/e2e/dataTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ const prettifySingleNoJavascript = 'CloseThere is no Javascript on this Screen-S
const prettifySingleSuccess = 'ClosePrettify Javascript has been successful.'
const prettifySingleError = 'CloseError formatting Screen-Set ID'
const prettifyMultipleScreensNoJavascript = 'CloseThere is no Javascript to Format on any Screen-Set.'
const importAccounts = 'Import Data'
const serverImportHeader = 'Deploy and Import'
const serverImportSuccessMessage = 'The dataflow was deployed successfully (ID: a25eed98877d42faaee2a8c0c4ab7d78). \n Check status of imported accounts in: Dataflows > Job Status.'
const importData = 'Import Data'
const importAccountsDescription = 'Import accounts and generate csv with schema and legal fields'
const importAccountDownloadButton = 'Download Template'
Expand Down Expand Up @@ -744,6 +747,15 @@ const mockedGetSmsConfigsResponse = {
},
}

const mockedSetSchedulerResponse = {
callId: 'b61ad31db138476ab908ae8d602f3422',
errorCode: 0,
apiVersion: 2,
statusCode: 200,
statusReason: 'OK',
time: '2025-01-09T15:17:08.545Z',
id: 'a25eed98877d42faaee2a8c0c4ab7d78',
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't you have already a success response defined for previous tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved, I've reused a success message that was using on another test.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This object is not used in the code/tests

const mockedSetSchemaResponse = {
callId: '0b4d8c50fdc0431491d6ed355228c787',
errorCode: 0,
Expand Down Expand Up @@ -1962,6 +1974,10 @@ export {
setCaptchaConfigMock,
setPoliciesMock,
setRiskProvidersMock,
importAccounts,
serverImportHeader,
mockedSetSchedulerResponse,
serverImportSuccessMessage,
importData,
importAccountsDescription,
importAccountDownloadButton,
Expand Down
2 changes: 2 additions & 0 deletions cypress/e2e/importAccounts.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ describe('Import Account - Configuration Tree test suite', () => {
beforeEach(() => {
utils.mockConfigurationTreeFullAccount()
utils.startUp('Import Data')
cy.get('#importAccountsPanel').click()
utils.getImportAccountsInformation()
})
afterEach(() => {
Expand Down Expand Up @@ -52,6 +53,7 @@ describe('Import Account - Configuration Tree test suite', () => {
beforeEach(() => {
utils.mockConfigurationTreeFullAccount()
utils.startUp('Import Data')
cy.get('#importAccountsPanel').click()
utils.getImportAccountsInformation()
})
afterEach(() => {
Expand Down
32 changes: 32 additions & 0 deletions cypress/e2e/serverImport.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Copyright: Copyright 2023 SAP SE or an SAP affiliate company and cdc-tools-chrome-extension contributors
* License: Apache-2.0
*/

import * as dataTest from './dataTest'
import * as utils from './utils'

describe('Server Import test suite', () => {
context('Import Full for Azure local storage', () => {
beforeEach(() => {
utils.startUp(dataTest.importAccounts)
cy.get('#serverImportPanel').click()
utils.checkServerImportState('Full')
})
it('Import account', () => {
cy.intercept('POST', 'idx.createDataflow', {
body: dataTest.mockedSetSchedulerResponse,
}).as('setSchedule')

cy.get('#serverImportSaveButton').should('have.attr', 'disabled', 'disabled')
cy.get('#\\{\\{dataflowName\\}\\}').shadow().find('.ui5-input-inner').type('dataflowName')
cy.get('#\\{\\{accountName\\}\\}').shadow().find('.ui5-input-inner').type('accountName')
cy.get('#\\{\\{accountKey\\}\\}').shadow().find('.ui5-input-inner').type('accountKey')
cy.get('#\\{\\{container\\}\\}').shadow().find('.ui5-input-inner').type('container')
cy.get('#\\{\\{readFileNameRegex\\}\\}').shadow().find('.ui5-input-inner').should('have.value', '')
cy.get('#\\{\\{blobPrefix\\}\\}').shadow().find('.ui5-input-inner').should('have.value', '')
cy.get('#serverImportSaveButton').should('not.be.disabled').click()
cy.get('#serverImportSuccessPopup').find('span').should('have.text', dataTest.serverImportSuccessMessage)
})
})
})
4 changes: 2 additions & 2 deletions cypress/e2e/siteDeployerTests.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('Site Deployer Test Suite', () => {

it('Should create 3 parent sites with different datacenters', () => {
utils.getBaseDomain(dataTest.baseDomain, 0)
utils.getSiteStructure(1)
utils.getSiteStructure(5)
cy.get('[data-cy ="cdctools-siteStructure"]').shadow().find('.ui5-select-label-root').should('have.text', dataTest.dropdownOption)
utils.getCreateButton().click()
cy.get('ui5-table-row').should('have.length', '18')
Expand All @@ -27,7 +27,7 @@ describe('Site Deployer Test Suite', () => {
it('Should create 3 parent sites (dev, stag, prod) with US datacenter', () => {
utils.getCreateButton().should('be.disabled')
utils.getBaseDomain(dataTest.baseDomain, 0)
utils.getSiteStructure(1)
utils.getSiteStructure(5)
cy.get('[data-cy ="cdctools-siteStructure"]').shadow().find('.ui5-select-label-root').should('have.text', dataTest.dropdownOption)
utils.getDataCenters('US')
cy.get('ui5-table-row').should('have.length', '0')
Expand Down
18 changes: 11 additions & 7 deletions cypress/e2e/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import {
setCaptchaConfigMock,
setPoliciesMock,
setRiskProvidersMock,
serverImportHeader,
importData,
importAccountsDescription,
importAccountDownloadButton,
Expand All @@ -68,10 +69,15 @@ export function startUp(pageName) {
export function getImportAccountsInformation() {
cy.get('#importAccountsTitle').should('contain.text', importData)
cy.get('#importAccountsHeaderText').should('contain.text', importAccountsDescription)
cy.get('ui5-card-header').eq(3).shadow().find('.ui5-card-header-first-line').should('contain.text', importAccountDownloadButton)
cy.get('ui5-card-header').eq(3).shadow().find('.ui5-card-header-subtitle').should('contain.text', importAccountsSubtitle)
cy.get('#importAccountsPanel').shadow().find('.ui5-panel-header-title').should('contain.text', importAccountDownloadButton)
cy.get('#importAccountsPanel').find('ui5-label').should('contain.text', importAccountsSubtitle)
}

export function checkServerImportState(accountType) {
cy.get('#serverImportPanel').shadow().find('.ui5-panel-header-title').should('contain.text', serverImportHeader)
cy.get('#selectAccountType').should('contain.text', `${accountType} Account`)
cy.get('#selectStorageServer').should('contain.text', 'Azure')
}
export function clearCredentials() {
resizeObserverLoopErrRe()
const openPopoverButton = cy.get('body').find('#openPopoverButton')
Expand Down Expand Up @@ -136,8 +142,8 @@ export function getBaseDomain(baseDomain, timeout) {
export function getDataCenters(chosenDataCenter) {
cy.wait(1000)
cy.get('[data-cy ="cdctools-dataCenter"]').shadow().find('ui5-icon').realClick()
cy.get('ui5-static-area-item').shadow().find('ui5-responsive-popover > ui5-list').find('ui5-li').eq(0).shadow().find('li > ui5-checkbox').click()
cy.get('ui5-static-area-item').shadow().find('ui5-responsive-popover > ui5-list').find('ui5-li').eq(1).shadow().find('li > ui5-checkbox').click()
cy.get('ui5-static-area-item').shadow().find('ui5-responsive-popover > ui5-list').find('ui5-li').eq(2).shadow().find('li > ui5-checkbox').click()
return cy
.get('[data-cy ="cdctools-dataCenter"]')
.shadow()
Expand All @@ -152,9 +158,8 @@ export function getSiteStructure(optionNumber, timeout) {
cy.get('[data-cy ="cdctools-siteStructure"]').should('be.visible')
cy.get('[data-cy ="cdctools-siteStructure"]', { timeout: timeout }).click()
cy.wait(1000)
return cy.get('ui5-static-area-item').shadow().find('.ui5-select-popover').find('ui5-li').eq(optionNumber).click(1, 1) // Specify explicit coordinates because clickable text has a 66 characters limitation
cy.get('ui5-static-area-item').shadow().find('ui5-responsive-popover').find('ui5-li').eq(optionNumber).click(1, 1) // Specify explicit coordinates because clickable text has a 66 characters limitation
}

export function deleteChildSite(length) {
cy.get('ui5-table-row').eq(length).find('ui5-table-cell').eq(4).find('ui5-button').shadow().find('button').click()
cy.get('ui5-responsive-popover').find(' [accessible-name="Delete Item 2 of 2"]').eq(0).shadow().find('button').realClick()
Expand Down Expand Up @@ -299,10 +304,9 @@ export function writeParentSiteTable(baseDomain, siteDescription, dataCenterOpti
cy.get('[data-cy ="descriptionInput"]').shadow().find('[class = "ui5-input-inner"]').type(siteDescription).should('have.value', siteDescription)
cy.wait(1000)
cy.get('[data-cy ="dataCenterSelect"]').click()
cy.get('ui5-static-area-item').shadow().find('ui5-responsive-popover').eq(5).find('ui5-li').eq(dataCenterOption).realClick()
cy.get('ui5-static-area-item').shadow().find('ui5-responsive-popover').eq(7).find('ui5-li').eq(dataCenterOption).realClick()
cy.wait(500)
}

export function writeChildrenSiteTable(childrenDomain, childrenDescription) {
cy.get('[data-cy ="childBaseDomainInput"]').shadow().find('[class = "ui5-input-inner"]').type(childrenDomain).should('have.value', childrenDomain)
cy.get('[data-cy ="childDescriptionInput"]').shadow().find('[class = "ui5-input-inner"]').type(childrenDescription).should('have.value', childrenDescription)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* License: Apache-2.0
*/


import { useEffect, useState } from 'react'
import { useDispatch } from 'react-redux'
import { withTranslation } from 'react-i18next'
Expand Down Expand Up @@ -32,7 +31,6 @@ const DataflowSettings = ({ dataFlowTreeNode, setDataflowVariableValue, setDataf
setInitialVariableValues(dataFlowTreeNode.variables)
}
}, [openSettingsDialog]) //eslint-disable-line

const onDataflowSettingsButtonClickHandler = () => {
setOpenSettingsDialog(true)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const ImportAccountConfigurationTree = ({
const checkBoxId = event.srcElement.id
const value = event.srcElement.checked
setFields(event)
console.log('branches-->,', branches)
dispatch(setConfigurationStatus({ checkBoxId, value, branches }))

if (treeNodeInputValue) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const styles = {
formContainer: {
display: 'flex',
flexDirection: 'column',
width: '100%',
margin: '0 auto',
padding: '20px',
borderRadius: '4px',
},
outerDiv: {
width: '100%',
marginBottom: '8px',
marginTop: '8px',
},
labelIconContainer: {
display: 'flex',
alignItems: 'center',
width: '100%',
},
tooltipIconStyle: {
alignSelf: 'center',
marginLeft: '6px',
color: '#1d2d3e',
},
inputStyle: {
width: '100%',
},
outerDivFormItem: {
width: '100%',
},
MandatoryFieldIcon: { color: '#ba066c' },
}

export default styles
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { createUseStyles } from 'react-jss'
import { Label } from '@ui5/webcomponents-react'
import styles from './server-import-component.styles.js'

const CustomLabel = ({ name }) => {
const useStyles = createUseStyles(styles, { name: 'Server Import' })
const classes = useStyles()
const parts = name.split('*')
return (
<Label>
{parts[0]}
{parts.length > 1 && <span className={classes.MandatoryFieldIcon}>*</span>}
{parts[1]}
</Label>
)
}

export default CustomLabel
60 changes: 60 additions & 0 deletions src/components/server-import-form/server-import-form.container.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
import { useState } from 'react'
import { Icon, Input, Popover } from '@ui5/webcomponents-react'
import { createUseStyles } from 'react-jss'
import styles from './server-import-component.styles.js'
import CustomLabel from './server-import-custom-label-component.jsx'

const FormItemWithIcon = ({ field, handleInputChange }) => {
const useStyles = createUseStyles(styles, { name: 'Server Import' })
const classes = useStyles()
const [isMouseOverIcon, setIsMouseOverIcon] = useState(false)
const [tooltipTarget, setTooltipTarget] = useState('')

const onMouseOverHandler = (event) => {
if (event.target.shadowRoot) {
setTooltipTarget(event.target.shadowRoot.host.id)
setIsMouseOverIcon(true)
}
}
const onMouseOutHandler = () => {
setIsMouseOverIcon(false)
}

const openPopover = (id) => {
return isMouseOverIcon && tooltipTarget === `${id}TooltipIcon`
}
return (
<div className={classes.outerDiv}>
<div className={classes.labelIconContainer}>
<CustomLabel name={field.name} />
{field.tooltip && (
<>
<Icon
id={`${field.id}TooltipIcon`}
name="message-information"
design="Neutral"
onMouseOver={onMouseOverHandler}
onMouseOut={onMouseOutHandler}
className={classes.tooltipIconStyle}
/>
<Popover className={classes.popoverStyle} id={`${field.id}Popover`} opener={`${field.id}TooltipIcon`} open={openPopover(field.id)} placementType="Right">
{field.tooltip}
</Popover>
</>
)}
</div>

<Input
id={field.id}
type={field.type}
name={field.name}
placeholder={field.placeholder}
className={classes.inputStyle}
value={field.value !== undefined ? field.value : ''}
onInput={(event) => handleInputChange(event, field.id)}
/>
</div>
)
}

export default FormItemWithIcon
9 changes: 8 additions & 1 deletion src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,15 @@
"MANUAL_REMOVAL_POPUP.ERROR_MESSAGE": "The command was executed with errors, but some sites were created and could not be deleted.",
"MANUAL_REMOVAL_POPUP.CHECKBOX_TEXT": "I understand that manual action is required to avoid data duplication.",
"MANUAL_REMOVAL_POPUP.TOAST_TEXT": "Site list was copied to the clipboard",
"SERVER_IMPORT_COMPONENT.TEMPLATES_LITE_ACCOUNT": "Lite Account",
"SERVER_IMPORT_COMPONENT.TEMPLATES_CANCEL_BUTTON": "Cancel",
"SERVER_IMPORT_COMPONENT.TEMPLATES_FEATURE_DESCRIPTION": "Fill the information below to import a full or lite account from a storage server",
"SERVER_IMPORT_COMPONENT.TEMPLATES_IMPORT_BUTTON": "Import",
"SERVER_IMPORT_COMPONENT.TEMPLATES_IMPORTED_SUCCESSFULLY": "The dataflow was deployed successfully (ID: {{dataflowId}}). \n Check status of imported accounts in: Dataflows > Job Status.",
"SERVER_IMPORT_COMPONENT.TEMPLATES_FULL_ACCOUNT": "Full Account",
"SERVER_IMPORT_COMPONENT.TEMPLATES_LITE_ACCOUNT": "Lite Account",
"SERVER_IMPORT_COMPONENT.TEMPLATES_SELECT_ACCOUNT_TYPE": "Select Account Type",
"SERVER_IMPORT_COMPONENT.TEMPLATES_SELECT_LOCAL_STORAGE": "Select Storage Server",
"SERVER_IMPORT_COMPONENT.TEMPLATES_SUBTITLE_TEXT": "Import a full or lite account from a storage server",
"SITE_DEPLOYER_COMPONENT.ADD_OR_REMOVE_SITES": "Quickly add or remove sites, change the structure, update the domains naming, description and select data centers.",
"SITE_DEPLOYER_COMPONENT.CHOOSE_DATA_CENTER": "Choose Data Centers: *",
"SITE_DEPLOYER_COMPONENT.CREATE_STRUCTURE": "Create Structure",
Expand Down
1 change: 0 additions & 1 deletion src/redux/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
* License: Apache-2.0
*/


export const ZIP_FILE_MIME_TYPE = 'application/zip'
1 change: 0 additions & 1 deletion src/redux/dataTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* License: Apache-2.0
*/


export const testErrorObject = {
callId: '1234567890',
errorCode: 500000,
Expand Down
1 change: 0 additions & 1 deletion src/redux/importAccounts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export const propagateConfigurationState = (configuration, value) => {
propagateConfigurationState(branch, value)
})
}
console.log('configuration', configuration)
return configuration
}

Expand Down
2 changes: 1 addition & 1 deletion src/redux/importAccounts/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { mockConfigurationTree, mockConfigurationTreeTrue } from './dataTest'
import { getParent, propagateConfigurationState } from './utils'
import { propagateConfigurationState } from './utils'

describe('importAccountsSlice utils test suite', () => {
test('should propagate configuration state to first level configurations', () => {
Expand Down
12 changes: 12 additions & 0 deletions src/redux/serverImport/dataTest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { serverStructure } from '../../services/serverImport/serverStructure/serverStructure'

export const initialState = { currentSiteApiKey: '', currentSiteInformation: {}, errors: [], isLoading: false, serverConfigurations: [], showSuccessMessage: false }

export const initialStateWithServerConfigurations = {
currentSiteApiKey: '',
currentSiteInformation: {},
errors: [],
isLoading: false,
serverConfigurations: serverStructure,
showSuccessMessage: false,
}
Loading