Skip to content

Commit 10cb24c

Browse files
committed
test: Add wait for compas save dialog step
1 parent 4bca88c commit 10cb24c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

integration-testing/include/general-compas.robot

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Documentation Generic variables and Keywords to work with the OpenSCD CoMPAS C
77
Resource ./general-config.robot
88
Resource ./general-openscd.robot
99

10+
*** Variables ***
11+
${compas-save-dialog-selector} div#menuContent mwc-dialog#compas-save-dlg
12+
1013
*** Keywords ***
1114
Initialize and Start OpenSCD
1215
Set global variables
@@ -26,6 +29,7 @@ Open from CoMPAS
2629
Add to CoMPAS
2730
[Arguments] ${initialValue} ${name} ${type} ${expectedVersion}
2831
# Make sure the initial value is entered. so we can continue.
32+
Wait for compas save dialog
2933
Get Text div#menuContent mwc-dialog#compas-save-dlg > compas-save mwc-textfield#name label > input == ${initialValue}
3034
# Sleep 1s test
3135
Fill Text div#menuContent mwc-dialog#compas-save-dlg > compas-save mwc-textfield#name label > input ${name}-${current-date}
@@ -102,3 +106,6 @@ Select label
102106
Click ${dialog} compas-scl-list oscd-filter-button#labelsFilter > mwc-dialog#filterDialog mwc-formfield > mwc-checkbox
103107
Click ${dialog} compas-scl-list oscd-filter-button#labelsFilter > mwc-check-list-item[value="${label}"]
104108
Click ${dialog} compas-scl-list oscd-filter-button#labelsFilter > mwc-dialog#filterDialog > mwc-button[slot="primaryAction"] > button
109+
110+
Wait for compas save dialog
111+
Wait Until Element Is Visible ${compas-save-dialog-selector}

0 commit comments

Comments
 (0)