@@ -7,6 +7,9 @@ Documentation Generic variables and Keywords to work with the OpenSCD CoMPAS C
7
7
Resource ./general-config.robot
8
8
Resource ./general-openscd.robot
9
9
10
+ *** Variables ***
11
+ ${compas-save-dialog-selector } mwc-dialog#compas-save-dlg
12
+
10
13
*** Keywords ***
11
14
Initialize and Start OpenSCD
12
15
Set global variables
@@ -25,20 +28,24 @@ Open from CoMPAS
25
28
26
29
Add to CoMPAS
27
30
[Arguments] ${initialValue } ${name } ${type } ${expectedVersion }
31
+ # Wait for compas save dialog to open
32
+ Sleep 0.5s Wait for dialog to be open
28
33
# Make sure the initial value is entered. so we can continue.
29
- Get Text mwc-dialog# compas-save-dlg > compas-save mwc-textfield#name label > input == ${initialValue }
30
- Fill Text mwc-dialog# compas-save-dlg > compas-save mwc-textfield#name label > input ${name } -${current-date }
31
- Click mwc-dialog# compas-save-dlg > compas-save compas-scltype-select mwc-select
32
- Click mwc-dialog# compas-save-dlg > compas-save compas-scltype-select mwc-select > mwc-list-item[value="${type.upper() } "]
33
- Add label mwc-dialog# compas-save-dlg > compas-save ${type } _${current-date }
34
- Click mwc-dialog# compas-save-dlg > mwc-button[slot="primaryAction"] > button
34
+ Get Text ${ compas-save-dialog-selector } > compas-save mwc-textfield#name label > input == ${initialValue }
35
+ Fill Text ${ compas-save-dialog-selector } > compas-save mwc-textfield#name label > input ${name } -${current-date }
36
+ Click ${ compas-save-dialog-selector } > compas-save compas-scltype-select mwc-select
37
+ Click ${ compas-save-dialog-selector } > compas-save compas-scltype-select mwc-select > mwc-list-item[value="${type.upper() } "]
38
+ Add label ${ compas-save-dialog-selector } > compas-save ${type } _${current-date }
39
+ Click ${ compas-save-dialog-selector } > mwc-button[slot="primaryAction"] > button
35
40
Wait for dialog is closed
36
41
Close Menu
37
42
# check if the title (filename) changed to the new expected one.
38
43
Check Title Filename ${name } -${current-date } -${expectedVersion } ${type }
39
44
40
45
Save as to CoMPAS
41
46
[Arguments] ${initialValue } ${name } ${type } ${expectedVersion }
47
+ # Wait for compas save dialog to open
48
+ Sleep 0.5s Wait for dialog to be open
42
49
# Make sure the initial value is entered. so we can continue.
43
50
Get Text mwc-dialog#compas-save-as-dlg > compas-save mwc-textfield#name label > input == ${initialValue }
44
51
Fill Text mwc-dialog#compas-save-as-dlg > compas-save mwc-textfield#name label > input ${name } -${current-date }
@@ -53,9 +60,11 @@ Save as to CoMPAS
53
60
54
61
Update in CoMPAS
55
62
[Arguments] ${changeType } ${name } ${type } ${expectedVersion }
56
- Click mwc-dialog#compas-save-dlg > compas-save compas-changeset-radiogroup mwc-list > mwc-radio-list-item[value="${changeType.upper() } "]
57
- Add label mwc-dialog#compas-save-dlg > compas-save ${type } _${current-date } _${expectedVersion.replace('.', '') }
58
- Click mwc-dialog#compas-save-dlg > mwc-button[slot="primaryAction"] > button
63
+ # Wait for compas save dialog to open
64
+ Sleep 0.5s Wait for dialog to be open
65
+ Click ${compas-save-dialog-selector } > compas-save compas-changeset-radiogroup mwc-list > mwc-radio-list-item[value="${changeType.upper() } "]
66
+ Add label ${compas-save-dialog-selector } > compas-save ${type } _${current-date } _${expectedVersion.replace('.', '') }
67
+ Click ${compas-save-dialog-selector } > mwc-button[slot="primaryAction"] > button
59
68
Wait for dialog is closed
60
69
Close Menu
61
70
# check if the title (filename) changed to the new expected one.
0 commit comments