Skip to content

Commit 2e6256e

Browse files
committed
(feat): HTTP Status code made separate in website tester
1 parent 6639469 commit 2e6256e

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

templates/website/usage_scenario.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ flow:
1414
commands:
1515
- type: playwright
1616
command: page_result = await page.goto("__GMT_VAR_PAGE__");
17-
- type: playwright
18-
command: if (!page_result.ok()) throw `Page was not accessible. HTTP Return code ${page_result.status()}`
1917
- type: console
2018
command: sleep '__GMT_VAR_SLEEP__'
2119

20+
- name: Check HTTP Status Code
21+
container: gmt-playwright-nodejs
22+
hidden: true
23+
commands:
24+
- type: playwright
25+
command: if (!page_result.ok()) throw `Page was not accessible. HTTP Return code ${page_result.status()}`

templates/website/usage_scenario_cached.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ flow:
2121
commands:
2222
- type: playwright
2323
command: page_result = await page.goto("__GMT_VAR_PAGE__");
24-
- type: playwright
25-
command: if (!page_result.ok()) throw `Page was not accessible. HTTP Return code ${page_result.status()}`
2624
- type: console
2725
command: sleep __GMT_VAR_SLEEP__
26+
27+
- name: Check HTTP Status Code
28+
container: gmt-playwright-nodejs
29+
hidden: true
30+
commands:
31+
- type: playwright
32+
command: if (!page_result.ok()) throw `Page was not accessible. HTTP Return code ${page_result.status()}`

templates/website/usage_scenario_cached_debug.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,17 @@ flow:
3333
commands:
3434
- type: playwright
3535
command: page_result = await page.goto("__GMT_VAR_PAGE__");
36-
- type: playwright
37-
command: if (!page_result.ok()) throw `Page was not accessible. HTTP Return code ${page_result.status()}`
3836
- type: console
3937
command: sleep '__GMT_VAR_SLEEP__'
4038

39+
- name: Check HTTP Status Code
40+
container: gmt-playwright-nodejs
41+
hidden: true
42+
commands:
43+
- type: playwright
44+
command: if (!page_result.ok()) throw `Page was not accessible. HTTP Return code ${page_result.status()}`
45+
46+
4147
- name: Dump Log (Load and idle)
4248
hidden: true
4349
container: squid

0 commit comments

Comments
 (0)