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

feat(forms): Horizontal layout #18354

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
fix(forms): Fix E2E tests
  • Loading branch information
ccailly committed Jan 13, 2025
commit 0d1ede43c0ec059418e5308af2350cc7bf01ed86
2 changes: 1 addition & 1 deletion js/modules/Forms/EditorController.js
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ export class GlpiFormEditorController
$(this.#target)
.find(`[data-glpi-form-editor-active-${type}]`)
.filter((index, element) => {
if (type === 'form') {
if (type === 'form' || type === 'section') {
return true;
}

Expand Down
2 changes: 2 additions & 0 deletions tests/cypress/e2e/form/form_editor.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,8 @@ describe ('Form editor', () => {
cy.findByRole('textbox', {'name': 'Question name'}).should('have.value', question.name);
cy.findByRole('checkbox', {'name': 'Mandatory'}).should('be.checked');
cy.findByLabelText("Question description").awaitTinyMCE().should('have.text', question.description);

cy.findByRole('textbox', {'name': question.type}).scrollIntoView();
cy.getDropdownByLabelText("Question type").should('have.text', question.type);
});
});
Expand Down
Loading