can cancel request (#4366)

This commit is contained in:
Jack Kavanagh 2022-01-19 12:35:03 +01:00 committed by GitHub
parent cfed59e45e
commit 722044ed33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 0 deletions

View File

@ -42,6 +42,27 @@ resources:
description: "" description: ""
scope: collection scope: collection
_type: workspace _type: workspace
- _id: req_e6fab3568ed54f9d83c92e2c8006e145
parentId: wrk_5b5ab67830944ffcbec47528366ef403
modified: 1636141084436
created: 1636141078600
url: http://127.0.0.1:4010/delay/seconds/20
name: delayed request
description: ""
method: GET
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1636141078600
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: req_e6fab3568ed54f9d83c92e2c8006e140 - _id: req_e6fab3568ed54f9d83c92e2c8006e140
parentId: wrk_5b5ab67830944ffcbec47528366ef403 parentId: wrk_5b5ab67830944ffcbec47528366ef403
modified: 1636141084436 modified: 1636141084436

View File

@ -39,6 +39,11 @@ test('can send requests', async ({ playwright }) => {
await page.click('button:has-text("Clipboard")'); await page.click('button:has-text("Clipboard")');
await page.click('text=CollectionSmoke testsjust now'); await page.click('text=CollectionSmoke testsjust now');
await page.click('button:has-text("GETdelayed request")');
await page.click('text=http://127.0.0.1:4010/delay/seconds/20Send >> button');
await page.click('text=Loading...Cancel Request >> button');
await page.click('text=Request was cancelled');
await page.click('button:has-text("GETsend JSON request")'); await page.click('button:has-text("GETsend JSON request")');
await page.click('text=http://127.0.0.1:4010/pets/1Send >> button'); await page.click('text=http://127.0.0.1:4010/pets/1Send >> button');
await page.click('text=200 OK'); await page.click('text=200 OK');