diff --git a/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-container-remoting-profile.cy.ts b/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-container-remoting-profile.cy.ts index 365ac76f8..f72181f6d 100644 --- a/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-container-remoting-profile.cy.ts +++ b/packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-container-remoting-profile.cy.ts @@ -29,6 +29,28 @@ describe("TESTS: Configuration => Subsystem => EJB => Container => Remoting Prof cy.addAddress(managementEndpoint, address.concat(remotingProfiles.update.name)); cy.addAddress(managementEndpoint, address.concat(remotingProfiles.remove.name)); cy.addAddress(managementEndpoint, address.concat(remotingProfiles.reset.name)); + }) + .then(() => { + cy.writeAttribute( + managementEndpoint, + address.concat(remotingProfiles.reset.name), + "local-receiver-pass-by-value", + true + ); + cy.writeAttribute( + managementEndpoint, + address.concat(remotingProfiles.reset.name), + "exclude-local-receiver", + true + ); + cy.writeAttribute(managementEndpoint, address.concat(remotingProfiles.reset.name), "static-ejb-discovery", [ + { + uri: "someUri", + "app-name": "someAppName", + "module-name": "someModule", + "distinct-name": "someDistinctName", + }, + ]); }); }); @@ -170,5 +192,29 @@ describe("TESTS: Configuration => Subsystem => EJB => Container => Remoting Prof cy.get("#remoting-profile-item").click(); cy.selectInTable(remotingProfilesTableId, remotingProfiles.reset.name); cy.resetForm(configurationFormId, managementEndpoint, address.concat(remotingProfiles.reset.name)); + //Verify reset + cy.verifyAttribute( + managementEndpoint, + address.concat(remotingProfiles.reset.name), + "local-receiver-pass-by-value", + false + ); + cy.verifyAttribute( + managementEndpoint, + address.concat(remotingProfiles.reset.name), + "exclude-local-receiver", + false + ); + cy.verifyListAttributeDoesNotContain( + managementEndpoint, + address.concat(remotingProfiles.reset.name), + "static-ejb-discovery", + { + uri: "someUri", + "app-name": "someAppName", + "module-name": "someModule", + "distinct-name": "someDistinctName", + } + ); }); }); diff --git a/packages/testsuite/cypress/support/resource-utils.ts b/packages/testsuite/cypress/support/resource-utils.ts index 2ae05d5e9..e632ee758 100644 --- a/packages/testsuite/cypress/support/resource-utils.ts +++ b/packages/testsuite/cypress/support/resource-utils.ts @@ -283,7 +283,7 @@ declare global { managementEndpoint: string, address: string[], name: string, - value: string | boolean | number + value: string | boolean | number | object | object[] ): Chainable; /**