File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed
ui-tests/tst/software/aws/toolkits/jetbrains/uitests/tests Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -140,19 +140,9 @@ class InsightsQueryTest {
140
140
}
141
141
142
142
step(" Revising query from current results" ) {
143
- // Find query ID. Query ID is a GUID with dashes, which makes it 36 characters long.
144
- val currentQueryId = findAll<JLabelFixture >(byXpath(" //div[@class='ContentTabLabel']" ))
145
- .first {
146
- try {
147
- it.findAllText().firstOrNull()?.text?.length == 36
148
- } catch (e: Exception ) {
149
- false
150
- }
151
- }
152
- .findAllText()
153
- .first()
154
- .text
155
- val currentTab = find<JLabelFixture >(byXpath(" //div[@class='ContentTabLabel' and contains(@accessiblename, '$currentQueryId ')]" ))
143
+ val currentTab = find<JLabelFixture >(byXpath(" //div[@class='ContentTabLabel' and starts-with(@accessiblename, 'Query:')]" ))
144
+ val currentQueryId = currentTab.value.removePrefix(" Query: " )
145
+
156
146
openInsightsQueryDialogFromResults()
157
147
158
148
step(" Change relative time values" ) {
You can’t perform that action at this time.
0 commit comments