Skip to content

Conversation

@kstekovi
Copy link
Collaborator

Thanks for submitting your Pull Request!

Please delete this text, and add a link to the public Jira issue and/or Berg issue solved by this PR, if available.

If this PR is not for the 'main' branch you must add a link to the equivalent change in 'main'.

Remember to use the Jira issue ID or Berg issue number in the PR title and any commits, if available.

Keep the title/summary of PR and any commits descriptive, so that the repository history is human readable.

@kstekovi kstekovi changed the title [JBEAP-29211] Add filter to Configurable HTTP Server Mechanism Factory Draft: [JBEAP-29211] Add filter to Configurable HTTP Server Mechanism Factory Aug 12, 2025
@kstekovi kstekovi changed the title Draft: [JBEAP-29211] Add filter to Configurable HTTP Server Mechanism Factory [JBEAP-29211] Add filter to Configurable HTTP Server Mechanism Factory Aug 13, 2025
flip(formId: string, attributeName: string, value: boolean): Chainable<void>;
/**
* Set text value to form input.
* Set text value to form input. The id of form filed is concatenated like: cy.get("#" + configurationFormId + "-" + attributeName + "-editing");
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is confusing

Copy link
Collaborator Author

@kstekovi kstekovi Aug 27, 2025

Choose a reason for hiding this comment

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

I didn't get how is the element ID concatenate. I have to look at the implementation to understand what I have use for formId and attributeName. So i just the important part into description.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see, perhaps
@param formId - The ID of section which contain form inputs. This parameter is appended with -editing to obtain full ID is more clear. On the other hand most of function present in this class do the same, without this explanation, introducing Inconsistency.
However I don't have strong opinion about this

};

const addButtonInForm = "hal-modal > div > div > div.modal-footer";
const filtrsButtonForConfigurableHttpServer = "#hal-uid-1";
Copy link
Collaborator

Choose a reason for hiding this comment

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

this random number changes between version, ID shouldn't be used

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the ID. Or do you mean something else?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes, the ID suffix is random number and shouldnt be relied on

cy.addInTable(httpServerMechanismFactory + "-table");
cy.text(factoryForm.id, factoryForm.fieldName.name, factoryForm.fieldName.value);
cy.text(factoryForm.id, factoryForm.fieldFactory.name, factoryForm.fieldFactory.value);
cy.addSingletonResource(addButtonInForm);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
cy.addSingletonResource(addButtonInForm);
cy.confirmAddResourceWizard();

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks. updated.

const filterForm = {
id: httpServerMechanismFactoryFiltrs + "-add",
fieldEnabled: {
id: "#" + httpServerMechanismFactoryFiltrs + "-add-editing > div:nth-child(2)",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Try avoiding nth-child method for clarity

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I would like but here it nonstandard check to verify the text. The element itself doesn't have any specific ID to be able use as a selector.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can't we use something like here:

Copy link
Collaborator

@laDok8 laDok8 left a comment

Choose a reason for hiding this comment

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

few changes required

cy.navigateToSpecificChannel(managementEndpoint, channels.url.name);
cy.editForm(channelForm);
cy.get(".tm-tag-remove").click()
cy.get(".tm-tag-remove").click();
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't disagree with this changes, but it's unnecessarily increasing changed files/PR size here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants