Skip to content

Commit 502371c

Browse files
authored
Add timeouts to quickstart tests to avoid failures (#1398)
1 parent 4e72eb9 commit 502371c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

modules/get-started/pages/quick-start.adoc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,17 +176,18 @@ image::console:overview.png[]
176176
// (step {"checkLink": "http://localhost:8080/login", "statusCodes": 200})
177177
// (step {"goTo": "http://localhost:8080/login"})
178178
// (step {"wait": 30000})
179-
// (step {"find": {"selector": "[data-testid='auth-username-input']", "click": true, "type": "superuser"}})
180-
// (step {"find": {"selector": "[data-testid='auth-password-input']", "click": true, "type": "secretpassword"}})
181-
// (step {"find": {"selector": "button", "elementText": "Log in", "click": true}})
179+
// (step {"find": {"selector": "[data-testid='auth-username-input']", "timeout": 10000, "click": true, "type": "superuser"}})
180+
// (step {"find": {"selector": "[data-testid='auth-password-input']", "timeout": 10000, "click": true, "type": "secretpassword"}})
181+
// (step {"find": {"selector": "button", "elementText": "Log in", "timeout": 10000, "click": true}})
182182
// (step {"wait": 30000})
183+
// (step {"checkLink": "http://localhost:8080/overview", "statusCodes": 200})
183184
// (step {"goTo": "http://localhost:8080/overview"})
184185
// (step {"wait": 30000})
185186
// (step {"screenshot": {"path": "../../modules/console/images/overview.png", "overwrite": "aboveVariation", "maxVariation": 10}})
186187

187188
To view details about a specific broker, click *View* at the end of the row in the *Broker Details* table.
188189

189-
// (step {"find": {"selector": ".chakra-table tbody tr:last-child td:last-child button", "elementText": "View", "click": true}})
190+
// (step {"find": {"selector": ".chakra-table tbody tr:last-child td:last-child button", "elementText": "View", "timeout": 30000, "click": true}})
190191
// (step {"wait": 15000})
191192
// (step {"screenshot": {"path": "../../modules/console/images/broker-overview.png", "overwrite": "aboveVariation", "maxVariation": 10}})
192193

tests/setup-tests/fetch-versions-and-rpk.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"description": "Use doc-tools to install any additional test dependencies.",
5757
"runShell": {
5858
"command": "npx doc-tools install-test-dependencies",
59-
"timeout": 120000
59+
"timeout": 300000
6060
}
6161
},
6262
{

0 commit comments

Comments
 (0)