@@ -38,7 +38,7 @@ Initialize Versions
38
38
Set Test Variable ${scltype } CID
39
39
40
40
Open Menu Save project
41
- Add to CoMPAS MiniGrid.scd ${sclname } ${scltype } 1.0.0
41
+ Add to CoMPAS MiniGrid ${sclname } ${scltype } 1.0.0
42
42
43
43
Select Tab CoMPAS Versions
44
44
Get Element Count ${compas-versions-editor-selector } mwc-list > mwc-check-list-item == 1
@@ -164,7 +164,7 @@ TestCase002-30
164
164
# Next select the first version from the list and compare this to the current open edited version.
165
165
Click ${compas-versions-editor-selector } mwc-list > mwc-check-list-item:nth-child(1) mwc-checkbox
166
166
Click ${compas-versions-editor-selector } mwc-fab[label="Compare version (current)"] > button
167
- Get Text ${dialog-selector } \ #wizard-content > mwc-list > mwc-list-item:nth-child(3) >> text= Substation
167
+ Get Text ${dialog-selector } div #wizard-content mwc-list > mwc-list-item > span:has- text(" Substation")
168
168
Click ${dialog-selector } mwc-button[slot="secondaryAction"] > button
169
169
Wait for dialog is closed
170
170
@@ -175,15 +175,15 @@ TestCase002-31
175
175
Select Tab CoMPAS Versions
176
176
# Now select no versions and try to compare, should show a error dialog.
177
177
Click ${compas-versions-editor-selector } mwc-fab[label="Compare version (current)"] > button
178
- Get Text ${dialog-selector } \ #wizard-content:has-text("Select maximum one version to compare the current project against.")
178
+ Get Text ${dialog-selector } div #wizard-content > span :has-text("Select maximum one version to compare the current project against.")
179
179
Click ${dialog-selector } mwc-button[slot="secondaryAction"] > button
180
180
Wait for dialog is closed
181
181
182
182
# Now select two versions and try to compare, should show a error dialog.
183
183
Click ${compas-versions-editor-selector } mwc-list > mwc-check-list-item:nth-child(1) mwc-checkbox
184
184
Click ${compas-versions-editor-selector } mwc-list > mwc-check-list-item:nth-child(2) mwc-checkbox
185
185
Click ${compas-versions-editor-selector } mwc-fab[label="Compare version (current)"] > button
186
- Get Text ${dialog-selector } \ #wizard-content:has-text("Select maximum one version to compare the current project against.")
186
+ Get Text ${dialog-selector } div #wizard-content > span :has-text("Select maximum one version to compare the current project against.")
187
187
Click ${dialog-selector } mwc-button[slot="secondaryAction"] > button
188
188
Wait for dialog is closed
189
189
@@ -200,7 +200,7 @@ TestCase002-32
200
200
Click ${compas-versions-editor-selector } mwc-list > mwc-check-list-item:nth-child(1) mwc-checkbox
201
201
Click ${compas-versions-editor-selector } mwc-list > mwc-check-list-item:nth-child(2) mwc-checkbox
202
202
Click ${compas-versions-editor-selector } mwc-fab[label="Compare versions"] > button
203
- Get Text ${dialog-selector } \ #wizard-content > mwc-list:nth-child(1) > mwc-list-item:nth-child(3) >> text= Substation
203
+ Get Text ${dialog-selector } div #wizard-content mwc-list > mwc-list-item > span:has- text(" Substation")
204
204
Click ${dialog-selector } mwc-button[slot="secondaryAction"] > button
205
205
Wait for dialog is closed
206
206
@@ -214,21 +214,21 @@ TestCase002-33
214
214
Select Tab CoMPAS Versions
215
215
# Now select no versions and try to compare, should show a error dialog.
216
216
Click ${compas-versions-editor-selector } mwc-fab[label="Compare versions"] > button
217
- Get Text ${dialog-selector } \ #wizard-content:has-text("Select maximum two versions to compare with each other.")
217
+ Get Text ${dialog-selector } div #wizard-content > span :has-text("Select maximum two versions to compare with each other.")
218
218
Click ${dialog-selector } mwc-button[slot="secondaryAction"] > button
219
219
Wait for dialog is closed
220
220
221
221
# Now select one versions and try to compare, should show a error dialog.
222
222
Click ${compas-versions-editor-selector } mwc-list > mwc-check-list-item:nth-child(1) mwc-checkbox
223
223
Click ${compas-versions-editor-selector } mwc-fab[label="Compare versions"] > button
224
- Get Text ${dialog-selector } \ #wizard-content:has-text("Select maximum two versions to compare with each other.")
224
+ Get Text ${dialog-selector } div #wizard-content > span :has-text("Select maximum two versions to compare with each other.")
225
225
Click ${dialog-selector } mwc-button[slot="secondaryAction"] > button
226
226
Wait for dialog is closed
227
227
228
228
# Now select three versions (first is already selected) and try to compare, should show a error dialog.
229
229
Click ${compas-versions-editor-selector } mwc-list > mwc-check-list-item:nth-child(2) mwc-checkbox
230
230
Click ${compas-versions-editor-selector } mwc-list > mwc-check-list-item:nth-child(3) mwc-checkbox
231
231
Click ${compas-versions-editor-selector } mwc-fab[label="Compare versions"] > button
232
- Get Text ${dialog-selector } \ #wizard-content:has-text("Select maximum two versions to compare with each other.")
232
+ Get Text ${dialog-selector } div #wizard-content > span :has-text("Select maximum two versions to compare with each other.")
233
233
Click ${dialog-selector } mwc-button[slot="secondaryAction"] > button
234
234
Wait for dialog is closed
0 commit comments