maxgui/src/components/common/DetailsPage/__tests__/DetailsParametersTable.spec.js
/**
 * This function puts component into editable mode to mockup the changes of parameters and open confirmation dialog.
 * @param {Object} wrapper A Wrapper is an object that contains a mounted component and methods to test the component
 * @param {Function} intercept Callback intercept function to be executed after editable mode is on and
 * before confirmation dialog is opened
 * @param {Function} cb Callback function to be executed after confirmation dialog is opened
 */
This function puts component into editable mode to mockup the changes of parameters and open confirmation dialog.
@param {Object} wrapper A Wrapper is an object that contains a mounted component and methods to test the component
@param {Function} intercept Callback intercept function to be executed after editable mode is on and
before confirmation dialog is opened
@param {Function} cb Callback function to be executed after confirmation dialog is opened
This function puts component into editable mode to mockup the changes of parameters and open confirmation dialog . @param { Object } wrapper A Wrapper is an object that contains a mounted component and methods to test the component @param { Function } intercept Callback intercept function to be executed after editable mode is on and before confirmation dialog is opened @param { Function } cb Callback function to be executed after confirmation dialog is opened
async function mockupOpenConfirmationDialog(wrapper, intercept, cb) {
    await wrapper.setData({ editableCell: true })
    expect(wrapper.vm.$data.editableCell).to.be.true
    typeof intercept === 'function' && (await intercept())
    await wrapper.find('.done-editing-btn').trigger('click')
    typeof cb === 'function' && (await cb())
}
async function mockupOpenConfirmationDialog ( wrapper , intercept , cb ) { await wrapper . setData ( { editableCell : true } ) expect ( wrapper . vm . $data . editableCell ) . to . be . true typeof intercept === 'function' && ( await intercept ( ) ) await wrapper . find ( '.done-editing-btn' ) . trigger ( 'click' ) typeof cb === 'function' && ( await cb ( ) ) }
This function puts component into editable mode to mockup the changes of parameters and open confirmation dialog.
This function puts component into editable mode to mockup the changes of parameters and open confirmation dialog .
// open confirmation dialog