Skip to content

Commit 2225755

Browse files
JakeSCahillpaulohtb6
authored andcommitted
Add timeouts to quickstart tests to avoid failures (#1398)
1 parent 031b4fe commit 2225755

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
@@ -177,17 +177,18 @@ image::console:overview.png[]
177177
// (step {"checkLink": "http://localhost:8080/login", "statusCodes": 200})
178178
// (step {"goTo": "http://localhost:8080/login"})
179179
// (step {"wait": 30000})
180-
// (step {"find": {"selector": "[data-testid='auth-username-input']", "click": true, "type": "superuser"}})
181-
// (step {"find": {"selector": "[data-testid='auth-password-input']", "click": true, "type": "secretpassword"}})
182-
// (step {"find": {"selector": "button", "elementText": "Log in", "click": true}})
180+
// (step {"find": {"selector": "[data-testid='auth-username-input']", "timeout": 10000, "click": true, "type": "superuser"}})
181+
// (step {"find": {"selector": "[data-testid='auth-password-input']", "timeout": 10000, "click": true, "type": "secretpassword"}})
182+
// (step {"find": {"selector": "button", "elementText": "Log in", "timeout": 10000, "click": true}})
183183
// (step {"wait": 30000})
184+
// (step {"checkLink": "http://localhost:8080/overview", "statusCodes": 200})
184185
// (step {"goTo": "http://localhost:8080/overview"})
185186
// (step {"wait": 30000})
186187
// (step {"screenshot": {"path": "../../modules/console/images/overview.png", "overwrite": "always"}})
187188

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

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

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)