Skip to content

Commit

Permalink
Merge branch 'LF-2843-base-dialog' into 'master'
Browse files Browse the repository at this point in the history
LF-2843 Added base dialog

See merge request lfor/rule-editor!8
  • Loading branch information
wamorn committed May 13, 2024
2 parents 045cdcf + 91ef2c5 commit bdb383b
Show file tree
Hide file tree
Showing 71 changed files with 2,282 additions and 1,468 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This project follows [Semantic Versioning](http://semver.org/).

## [3.1.21] 2024-05-13
### Added
- Added base dialog component

## [3.1.20] 2024-05-03
### Changed
- Enable the 'Open Rule Editor' button only if the questionnaire is selected and either the 'Root level' checkbox or Question drop-down is selected.
Expand Down
20 changes: 10 additions & 10 deletions cypress/e2e/custom_extension_variable_type.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('Rule editor', () => {
// Click the button to edit the expression
cy.get('button#openRuleEditor').should('exist').click();
// The Rule Editor dialog should now appear
cy.get('#rule-editor-dialog').should('exist');
cy.get('lhc-rule-editor #rule-editor-base-dialog').should('exist');

// Variables section
cy.get('lhc-variables > h2').should('contain', 'Item Variables');
Expand Down Expand Up @@ -125,14 +125,14 @@ describe('Rule editor', () => {
// Click the button to edit the expression
cy.get('button#openRuleEditor').should('exist').click();
// The Rule Editor dialog should now appear
cy.get('#rule-editor-dialog').should('exist');
cy.get('lhc-rule-editor #rule-editor-base-dialog').should('exist');

// Variables section
cy.get('lhc-variables > h2').should('contain', 'Item Variables');
cy.get('#variables-section .variable-row').should('have.length', 2);

// Add variable of variable type "FHIR Query (Observation)""
cy.get('#add-variable').should('exist').click();
cy.get('#add-variable').should('exist').scrollIntoView().click();
cy.get('#variables-section .variable-row').should('have.length', 3);
cy.get('div#row-2').within(() => {
cy.get('#variable-type-2').select('FHIR Query (Observation)');
Expand Down Expand Up @@ -180,7 +180,7 @@ describe('Rule editor', () => {
// Click the button to edit the expression
cy.get('button#openRuleEditor').should('exist').click();
// The Rule Editor dialog should now appear
cy.get('#rule-editor-dialog').should('exist');
cy.get('lhc-rule-editor #rule-editor-base-dialog').should('exist');

cy.title().should('eq', 'Rule Editor');

Expand Down Expand Up @@ -250,7 +250,7 @@ describe('Rule editor', () => {
// Click the button to edit the expression
cy.get('button#openRuleEditor').should('exist').click();
// The Rule Editor dialog should now appear
cy.get('#rule-editor-dialog').should('exist');
cy.get('lhc-rule-editor #rule-editor-base-dialog').should('exist');

cy.title().should('eq', 'Rule Editor');

Expand Down Expand Up @@ -331,7 +331,7 @@ describe('Rule editor', () => {
// Click the button to edit the expression
cy.get('button#openRuleEditor').should('exist').click();
// The Rule Editor dialog should now appear
cy.get('#rule-editor-dialog').should('exist');
cy.get('lhc-rule-editor #rule-editor-base-dialog').should('exist');

cy.title().should('eq', 'Rule Editor');

Expand Down Expand Up @@ -403,7 +403,7 @@ describe('Rule editor', () => {
// Click the button to edit the expression
cy.get('button#openRuleEditor').should('exist').click();
// The Rule Editor dialog should now appear
cy.get('#rule-editor-dialog').should('exist');
cy.get('lhc-rule-editor #rule-editor-base-dialog').should('exist');

cy.title().should('eq', 'Rule Editor');

Expand All @@ -424,7 +424,7 @@ describe('Rule editor', () => {
// Click the button to edit the expression
cy.get('button#openRuleEditor').should('exist').click();
// The Rule Editor dialog should now appear
cy.get('#rule-editor-dialog').should('exist');
cy.get('lhc-rule-editor #rule-editor-base-dialog').should('exist');

cy.title().should('eq', 'Rule Editor');

Expand Down Expand Up @@ -469,7 +469,7 @@ describe('Rule editor', () => {
// Click the button to edit the expression
cy.get('button#openRuleEditor').should('exist').click();
// The Rule Editor dialog should now appear
cy.get('#rule-editor-dialog').should('exist');
cy.get('lhc-rule-editor #rule-editor-base-dialog').should('exist');

cy.title().should('eq', 'Rule Editor');

Expand Down Expand Up @@ -646,7 +646,7 @@ describe('Rule editor', () => {
// Click the button to edit the expression
cy.get('button#openRuleEditor').should('exist').click();
// The Rule Editor dialog should now appear
cy.get('#rule-editor-dialog').should('exist');
cy.get('lhc-rule-editor #rule-editor-base-dialog').should('exist');

cy.title().should('eq', 'Rule Editor');

Expand Down
Loading

0 comments on commit bdb383b

Please sign in to comment.