Kusuma04-dev commented on code in PR #2902:
URL: 
https://github.com/apache/incubator-kie-tools/pull/2902#discussion_r2006872811


##########
packages/dmn-editor/tests-e2e/__fixtures__/propertiesPanel/decisionPropertiesPanel.ts:
##########
@@ -82,18 +90,35 @@ export class DecisionPropertiesPanel extends 
PropertiesPanelBase {
     await this.panel().getByPlaceholder("Enter a question...").press("Tab");
   }
 
+  public async setDecisionQuestion(args: { newQuestion: string }) {
+    await this.beepanel().getByPlaceholder("Enter a 
question...").fill(args.newQuestion);
+    await this.beepanel().getByPlaceholder("Enter a question...").press("Tab");
+  }
+
   public async getQuestion() {
     return await this.panel().getByPlaceholder("Enter a 
question...").inputValue();
   }
 
+  public async getDecisionQuestion() {
+    return await this.beepanel().getByPlaceholder("Enter a 
question...").inputValue();
+  }
+
   public async setAllowedAnswers(args: { newAllowedAnswers: string }) {
     await this.panel().getByPlaceholder("Enter allowed 
answers...").fill(args.newAllowedAnswers);
     await this.panel().getByPlaceholder("Enter allowed 
answers...").press("Tab");
   }
 
+  public async setDecisionAllowedAnswers(args: { newAllowedAnswers: string }) {
+    await this.beepanel().getByPlaceholder("Enter allowed 
answers...").fill(args.newAllowedAnswers);
+    await this.beepanel().getByPlaceholder("Enter allowed 
answers...").press("Tab");
+  }
+
   public async getAllowedAnswers() {
     return await this.panel().getByPlaceholder("Enter allowed 
answers...").inputValue();
   }
+  public async getDecisionAllowedAnswers() {
+    return await this.beepanel().getByPlaceholder("Enter allowed 
answers...").inputValue();
+  }

Review Comment:
   Hi @jomarko , we need to write properties for bee panel when we see in 
decisionProperties with panel method using test-id 
_"kie-tools--dmn-editor--properties-panel-container"_ but we have beeproperties 
panel with test-id _"kie-tools--dmn-editor--bee-properties-panel-container"_. 
So i have written like that before but i can see it's already present in 
beePropertiesPanelBase which i have used right now.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to