From 667bdb4727f035af34a67fcdf0dc2d56e38ff7da Mon Sep 17 00:00:00 2001 From: Pranam Lashkari Date: Thu, 19 Dec 2024 04:59:12 +0530 Subject: [PATCH] cypress: added jsdialog test test for fix from 296d48f4a0c14f2c527df209e8f10e40e33bdfef Signed-off-by: Pranam Lashkari Change-Id: I7033cf78a25235863662da6687107b6a539c2232 --- .../integration_tests/desktop/calc/jsdialog_spec.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cypress_test/integration_tests/desktop/calc/jsdialog_spec.js b/cypress_test/integration_tests/desktop/calc/jsdialog_spec.js index 2079f07e3b405..d9fc1402235b5 100644 --- a/cypress_test/integration_tests/desktop/calc/jsdialog_spec.js +++ b/cypress_test/integration_tests/desktop/calc/jsdialog_spec.js @@ -117,4 +117,15 @@ describe(['tagdesktop'], 'JSDialog unit test', function() { cy.cGet('#watermarkentry-input').should('not.be.disabled'); }); + + it('JSDialog check data validity options', function() { + cy.cGet('#Data-tab-label').click(); + cy.cGet('#data-validation').click(); + + // On changing options other fields should toggle enable and disable + cy.cGet('#data-input').should('be.disabled'); + cy.cGet('#allow-input').select("1"); + + cy.cGet('#data-input').should('not.be.disabled'); + }); });