Skip to content

Commit 345d687

Browse files
test
1 parent 77a693b commit 345d687

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { test, expect, APIRequestContext } from '@playwright/test';
2+
import { json } from 'stream/consumers';
3+
4+
test.describe('API Gateway', () => {
5+
test('GET /items should return 200 and list items', async ({ request }) => {
6+
7+
const response = await request.get(
8+
'https://8mu4ycde02.execute-api.eu-west-2.amazonaws.com/main/letters',{
9+
params:{
10+
limit:'2'
11+
},
12+
headers: {
13+
'headerauth1': 'headervalue1',
14+
'nhsd-supplier-id':'70735ec9-3ba5-4fb0-bb01-b56d2df24bc',
15+
'nhsd-correlation-id':'1234',
16+
},
17+
});
18+
19+
expect(response.status()).toBe(200);
20+
const responseBody = await response.json();
21+
console.log(JSON.stringify(responseBody, null, 2));
22+
});
23+
});

tests/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"charenc": "^0.0.2",
66
"crypt": "^0.0.2",
77
"dotenv": "^17.2.2",
8-
"fsevents": "^2.3.2",
98
"is-buffer": "^1.1.6",
109
"md5": "^2.3.0",
1110
"playwright": "^1.54.2",
@@ -14,7 +13,7 @@
1413
},
1514
"description": "",
1615
"devDependencies": {
17-
"@playwright/test": "^1.55.0",
16+
"@playwright/test": "^1.55.1",
1817
"@types/node": "^24.3.1",
1918
"allure-commandline": "^2.34.1",
2019
"allure-playwright": "^3.3.3"

tests/test_Data/updateStatus.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

0 commit comments

Comments
 (0)