You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ui-tests-starter/tst-243+/software/aws/toolkits/jetbrains/uitests/docTests/createReadmeTests/CreateReadmeTest.kt
+4-23Lines changed: 4 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -87,11 +87,7 @@ class CreateReadmeTest {
87
87
val result = executePuppeteerScript(validateFeatureAvailabilityTestScript)
88
88
assertThat(result)
89
89
.contains("Test Successful")
90
-
.contains("Error: Test Failed")
91
-
92
-
if (result.contains("Error: Test Failed")) {
93
-
println("result: $result")
94
-
}
90
+
.doesNotContain("Error: Test Failed")
95
91
}
96
92
}
97
93
@@ -125,11 +121,7 @@ class CreateReadmeTest {
125
121
val result = executePuppeteerScript(createReadmePromptedToConfirmFolderTestScript)
126
122
assertThat(result)
127
123
.contains("Test Successful")
128
-
.contains("Error: Test Failed")
129
-
130
-
if (result.contains("Error: Test Failed")) {
131
-
println("result: $result")
132
-
}
124
+
.doesNotContain("Error: Test Failed")
133
125
}
134
126
}
135
127
@@ -163,11 +155,7 @@ class CreateReadmeTest {
163
155
val result = executePuppeteerScript(makeChangesFlowTestScript)
164
156
assertThat(result)
165
157
.contains("Test Successful")
166
-
.contains("Error: Test Failed")
167
-
168
-
if (result.contains("Error: Test Failed")) {
169
-
println("result: $result")
170
-
}
158
+
.doesNotContain("Error: Test Failed")
171
159
}
172
160
}
173
161
@@ -204,9 +192,6 @@ class CreateReadmeTest {
204
192
205
193
val result = executePuppeteerScript(acceptReadmeTestScript)
206
194
assertThat(result).doesNotContain("Error: Test Failed")
207
-
if (result.contains("Error: Test Failed")) {
208
-
println("result: $result")
209
-
}
210
195
211
196
val newReadmePath =Paths.get("tstData", "qdoc", "createFlow", "README.md")
212
197
val newReadme =File(newReadmePath.toUri())
@@ -253,11 +238,7 @@ class CreateReadmeTest {
253
238
val result = executePuppeteerScript(rejectReadmeTestScript)
254
239
assertThat(result)
255
240
.contains("Test Successful")
256
-
.contains("Error: Test Failed")
257
-
258
-
if (result.contains("Error: Test Failed")) {
259
-
println("result: $result")
260
-
}
241
+
.doesNotContain("Error: Test Failed")
261
242
262
243
val newReadmePath =Paths.get("tstData", "qdoc", "createFlow", "README.md")
0 commit comments