Skip to content

Commit 9e09c5e

Browse files
committed
test: do not depend on title attribute
1 parent 25421bb commit 9e09c5e

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

test/spec/provider/camunda-platform/FormField.spec.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -719,17 +719,11 @@ describe('provider/camunda-platform - FormField', function() {
719719
});
720720

721721
// when
722-
const heading = domQuery(
723-
'div[data-entry-id=UserTask_4-formField-0-formFieldConstraints] [title="Constraints"]',
724-
container
725-
);
726-
clickInput(heading);
727-
728-
// then
729722
const constraintEntries = Array.from(domQueryAll(
730723
'div[data-entry-id=UserTask_4-formField-0-formFieldConstraints] .bio-properties-panel-collapsible-entry-header-title',
731724
container)).map(e => e.innerHTML);
732725

726+
// then
733727
expect(constraintEntries).to.eql([
734728
'Constraint3',
735729
'Constraint1',
@@ -899,17 +893,11 @@ describe('provider/camunda-platform - FormField', function() {
899893
});
900894

901895
// when
902-
const heading = domQuery(
903-
'div[data-entry-id=UserTask_4-formField-0-formFieldProperties] [title="Properties"]',
904-
container
905-
);
906-
clickInput(heading);
907-
908-
// then
909896
const propertiesEntries = Array.from(domQueryAll(
910897
'div[data-entry-id=UserTask_4-formField-0-formFieldProperties] .bio-properties-panel-collapsible-entry-header-title',
911898
container)).map(e => e.innerHTML);
912899

900+
// then
913901
expect(propertiesEntries).to.eql([
914902
'Property3',
915903
'Property1',

0 commit comments

Comments
 (0)