Skip to content

Commit 5f1500e

Browse files
committed
feat: setup JSONPlaceholder API structure with endpoints and testData, add CRUD tests for Posts API
1 parent 44fe519 commit 5f1500e

File tree

131 files changed

+2942
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+2942
-4
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"uuid":"0007029e-a84c-42f2-a18d-89f2bbede3c8","name":"Login with locked out user","historyId":"206e5b87199c0ec0bb4363f4548b756f:3c3dd5219b8c42cd13b5e425638a4322","status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"Create context","start":1762455415887,"uuid":"4d17f970-19d7-46a8-9ea4-837e4cee1db2","stop":1762455415905}],"attachments":[],"parameters":[],"name":"Fixture \"context\"","start":1762455415885,"uuid":"c7967c24-897d-440a-ba87-efb9ab6bba64","stop":1762455415906},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"Create page","start":1762455415908,"uuid":"5e6c5b85-2c0f-40b6-971c-2e34daa9c24d","stop":1762455415994}],"attachments":[],"parameters":[],"name":"Fixture \"page\"","start":1762455415906,"uuid":"a9b8b4c3-701c-4090-8dfd-2bcd666c700b","stop":1762455415994},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"Navigate to \"/\"","start":1762455415996,"uuid":"7d352350-05c3-412d-b312-6fb838e1b20b","stop":1762455416459}],"attachments":[],"parameters":[],"name":"beforeEach hook","start":1762455415865,"uuid":"f218097f-6a3a-4877-bba1-f547c15eceee","stop":1762455416460}],"attachments":[],"parameters":[],"name":"Before Hooks","start":1762455415865,"uuid":"92a20a91-3d31-4016-9c41-887476bfa505","stop":1762455416460},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1762455416461,"name":"Fill \"locked_out_user\" locator('#user-name')","uuid":"e51765be-a9f2-46ea-adfb-f4c66849a852","stop":1762455416495},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1762455416496,"name":"Fill \"secret_sauce\" locator('#password')","uuid":"c3aae0e2-d21b-4d51-92b3-d95b2c0c7958","stop":1762455416506},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1762455416506,"name":"Click locator('#login-button')","uuid":"743c54b9-0419-4058-8cd1-35b3631832ca","stop":1762455416559},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1762455416559,"name":"Wait for selector locator('h3[data-test=\\'error\\']')","uuid":"f2eb4c98-6758-45e6-8d14-588572f5d9ad","stop":1762455416563},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1762455416568,"name":"Expect \"toContain\"","uuid":"2816c57c-7c80-4ddb-8526-26665f30ef3e","stop":1762455416568},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1762455416569,"name":"Wait for timeout","uuid":"5761f0e6-2704-4dc9-9b00-c0b6e782451f","stop":1762455419580},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"Fixture \"page\"","start":1762455419583,"uuid":"ba68f21c-2262-4e85-b689-482dccd94ea1","stop":1762455419584},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"Close context","start":1762455419593,"uuid":"d2004b82-9081-4943-addf-377475deadcb","stop":1762455419606}],"attachments":[],"parameters":[],"name":"Fixture \"context\"","start":1762455419585,"uuid":"ca2dfee4-2a6f-4f2e-a687-afebb6762ac4","stop":1762455419606}],"attachments":[],"parameters":[],"name":"After Hooks","start":1762455419581,"uuid":"8a70b920-1449-4744-bdd8-841ae29688d6","stop":1762455419621}],"attachments":[],"parameters":[{"name":"Project","value":"ui-tests"}],"labels":[{"name":"language","value":"javascript"},{"name":"framework","value":"playwright"},{"name":"package","value":"login.spec.ts"},{"name":"titlePath","value":" > ui-tests > ui\\login.spec.ts > Login Tests"},{"name":"host","value":"Filip"},{"name":"thread","value":"pid-9944-worker-2"},{"name":"parentSuite","value":"ui-tests"},{"name":"suite","value":"ui\\login.spec.ts"},{"name":"subSuite","value":"Login Tests"}],"links":[],"start":1762455415873,"testCaseId":"206e5b87199c0ec0bb4363f4548b756f","fullName":"login.spec.ts:38:3","titlePath":["login.spec.ts","Login Tests"],"stop":1762455419593}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"uuid":"01511ef9-fd02-44df-a595-6f830f74e83e","name":"Should update post with PUT","historyId":"d967a4989aac5c1d4ce97e602b2d4a34:cb8651f2bdd927b7c2a212b87524110e","status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"Create request context","start":1763144952015,"uuid":"d2bb37c3-ed78-4e5d-890c-954bf0515ad6","stop":1763144952019}],"attachments":[],"parameters":[],"name":"Fixture \"request\"","start":1763144952010,"uuid":"d3311ea1-8385-4cb2-ab54-82d18298f487","stop":1763144952020}],"attachments":[],"parameters":[],"name":"Before Hooks","start":1763144951989,"uuid":"01ea9813-8857-4f2f-819e-c22dcf718fca","stop":1763144952020},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1763144952023,"name":"PUT \"posts/1\"","uuid":"9981aeb3-cd6c-4c4b-8d27-96e221fa0b63","stop":1763144952446},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1763144952450,"name":"Expect \"toBe\"","uuid":"7e4b1ff2-e78a-4cd9-bf09-39a196b23ffd","stop":1763144952451},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"Fixture \"request\"","start":1763144952455,"uuid":"4ddb6e9a-d10d-4d05-8c0c-36058c6fdbc2","stop":1763144952459}],"attachments":[],"parameters":[],"name":"After Hooks","start":1763144952453,"uuid":"a2e5c167-7f66-4118-8fe4-97c827f37d69","stop":1763144952467}],"attachments":[{"name":"stdout","source":"150fb9e7-a707-4904-88bd-718fab70fc72-attachment.txt","type":"text/plain"}],"parameters":[{"name":"Project","value":"api-tests-jsonplaceholder"}],"labels":[{"name":"language","value":"javascript"},{"name":"framework","value":"playwright"},{"name":"package","value":"posts.updatePost.spec.ts"},{"name":"titlePath","value":" > api-tests-jsonplaceholder > api\\jsonPlaceHolder\\posts\\updatePost.spec.ts > Update Post"},{"name":"host","value":"Filip"},{"name":"thread","value":"pid-18972-worker-0"},{"name":"parentSuite","value":"api-tests-jsonplaceholder"},{"name":"suite","value":"api\\jsonPlaceHolder\\posts\\updatePost.spec.ts"},{"name":"subSuite","value":"Update Post"}],"links":[],"start":1763144951993,"testCaseId":"d967a4989aac5c1d4ce97e602b2d4a34","fullName":"posts/updatePost.spec.ts:7:8","titlePath":["posts","updatePost.spec.ts","Update Post"],"stop":1763144952445}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"title": "foo",
3+
"body": "bar",
4+
"userId": 1,
5+
"id": 101
6+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"uuid":"085a231f-074d-4a2a-a28a-ed4cb23f0821","name":"Login with invalid user","historyId":"630bc7b538b141cc8fa09f19089bacbc:3c3dd5219b8c42cd13b5e425638a4322","status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"Create context","start":1762455411752,"uuid":"9c6d107f-22db-4dfd-9fdc-ab690eb80c41","stop":1762455411758}],"attachments":[],"parameters":[],"name":"Fixture \"context\"","start":1762455411747,"uuid":"361ab2c8-b8ef-456c-bbd4-dd1b0e0a1c50","stop":1762455411758},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"Create page","start":1762455411761,"uuid":"425441a4-d8dc-45a2-ad48-d753fe685db2","stop":1762455411835}],"attachments":[],"parameters":[],"name":"Fixture \"page\"","start":1762455411759,"uuid":"de463800-82a5-45b1-9d9b-2cf5f7bccd89","stop":1762455411835},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"Navigate to \"/\"","start":1762455411837,"uuid":"6c42e23f-98a5-4cd8-90db-29260b995fbf","stop":1762455412658}],"attachments":[],"parameters":[],"name":"beforeEach hook","start":1762455411731,"uuid":"223b8958-8c6b-4be6-b928-fa1b0541887d","stop":1762455412659}],"attachments":[],"parameters":[],"name":"Before Hooks","start":1762455411730,"uuid":"a0053324-fb1e-4759-b31a-8546246ccbe8","stop":1762455412659},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1762455412661,"name":"Fill \"invalid_user\" locator('#user-name')","uuid":"eee9a49d-4d82-4b77-adce-24f0726d91ac","stop":1762455412710},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1762455412712,"name":"Fill \"wrong_password\" locator('#password')","uuid":"f30a679d-8fa7-4d65-8095-1285dea08ea3","stop":1762455412731},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1762455412734,"name":"Click locator('#login-button')","uuid":"053b4495-258f-496f-85e2-f42cf87829b1","stop":1762455412802},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1762455412804,"name":"Wait for selector locator('h3[data-test=\\'error\\']')","uuid":"039315e6-201a-4f12-87c6-54c210175193","stop":1762455412811},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1762455412820,"name":"Expect \"toContain\"","uuid":"78a99f0a-3e86-42a8-9795-b7ac6eb2d4a2","stop":1762455412821},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1762455412822,"name":"Wait for timeout","uuid":"8225b730-2803-4521-805c-b456f5a8077b","stop":1762455415832},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"Fixture \"page\"","start":1762455415834,"uuid":"f9b84293-50ab-4cf1-b23e-f8ca1f5bca2c","stop":1762455415834},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"Close context","start":1762455415840,"uuid":"37968d12-bb29-4db5-9e5d-d3ceef3d3324","stop":1762455415850}],"attachments":[],"parameters":[],"name":"Fixture \"context\"","start":1762455415835,"uuid":"1df08194-9b29-45b8-89de-a074cbc5dbc5","stop":1762455415850}],"attachments":[],"parameters":[],"name":"After Hooks","start":1762455415833,"uuid":"3a8722d8-b6ea-4dd1-8817-b1213c611138","stop":1762455415863}],"attachments":[],"parameters":[{"name":"Project","value":"ui-tests"}],"labels":[{"name":"language","value":"javascript"},{"name":"framework","value":"playwright"},{"name":"package","value":"login.spec.ts"},{"name":"titlePath","value":" > ui-tests > ui\\login.spec.ts > Login Tests"},{"name":"host","value":"Filip"},{"name":"thread","value":"pid-9944-worker-2"},{"name":"parentSuite","value":"ui-tests"},{"name":"suite","value":"ui\\login.spec.ts"},{"name":"subSuite","value":"Login Tests"}],"links":[],"start":1762455411729,"testCaseId":"630bc7b538b141cc8fa09f19089bacbc","fullName":"login.spec.ts:25:3","titlePath":["login.spec.ts","Login Tests"],"stop":1762455415832}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"title": "kamikTest",
3+
"body": "Test Body",
4+
"userId": 8,
5+
"id": 101
6+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"uuid":"0d276d9a-e9d1-4077-8f94-ad7ebc2ac977","name":"Link Clerk user with Pro subscription","historyId":"726fac7ee7b7a769d81b6be6a4847aa6:6a4f6016ef49b8eabf3671c5e744c384","status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"Create request context","start":1762455414608,"uuid":"d7663763-2a9c-48c2-b3a0-12f426f6033a","stop":1762455414608}],"attachments":[],"parameters":[],"name":"Fixture \"request\"","start":1762455414607,"uuid":"97b5307b-bcf9-4471-a544-ffc4fd8b783c","stop":1762455414609}],"attachments":[],"parameters":[],"name":"Before Hooks","start":1762455414597,"uuid":"a4e9b57e-4691-4783-8b07-3633b754d911","stop":1762455414609},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1762455414610,"name":"POST \"clerk/link-pro\"","uuid":"bf6cf673-5220-4b19-92ea-45efc7706f5f","stop":1762455414668},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1762455414671,"name":"Expect \"toBe\"","uuid":"fa2f4035-6f6a-478b-8670-eac2ed374c23","stop":1762455414671},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1762455414673,"name":"Expect \"toHaveProperty\"","uuid":"3cdb4b40-036b-42fd-93e8-8322235946ff","stop":1762455414673},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"Fixture \"request\"","start":1762455414674,"uuid":"699a10e6-de6d-4f31-81ca-afd4f59121e6","stop":1762455414680}],"attachments":[],"parameters":[],"name":"After Hooks","start":1762455414673,"uuid":"f1e7e0fb-2962-4872-9ca9-ef709049ea7e","stop":1762455414689}],"attachments":[{"name":"stdout","source":"47483c68-9aa8-4dce-8752-557069e0b550-attachment.txt","type":"text/plain"}],"parameters":[{"name":"Project","value":"api-tests"}],"labels":[{"name":"language","value":"javascript"},{"name":"framework","value":"playwright"},{"name":"package","value":"reqres.clerk.linkUser.spec.ts"},{"name":"titlePath","value":" > api-tests > api\\reqres\\clerk\\linkUser.spec.ts"},{"name":"host","value":"Filip"},{"name":"thread","value":"pid-9944-worker-1"},{"name":"parentSuite","value":"api-tests"},{"name":"suite","value":"api\\reqres\\clerk\\linkUser.spec.ts"}],"links":[],"start":1762455414600,"testCaseId":"726fac7ee7b7a769d81b6be6a4847aa6","fullName":"reqres/clerk/linkUser.spec.ts:5:1","titlePath":["reqres","clerk","linkUser.spec.ts"],"stop":1762455414674}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
userId: 1,
3+
id: 2,
4+
title: 'KamikTest3',
5+
body: 'est rerum tempore vitae\n' +
6+
'sequi sint nihil reprehenderit dolor beatae ea dolores neque\n' +
7+
'fugiat blanditiis voluptate porro vel nihil molestiae ut reiciendis\n' +
8+
'qui aperiam non debitis possimus qui neque nisi nulla'
9+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"uuid":"0f952067-e3ef-4573-ad17-f9d8268b8d73","name":"Get all posts","historyId":"ba5694f06b4474117d71af4258467f0e:6a4f6016ef49b8eabf3671c5e744c384","status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"Create request context","start":1763142368375,"uuid":"171d30d6-0fcb-42a1-9dbb-e06b6fe1776e","stop":1763142368378}],"attachments":[],"parameters":[],"name":"Fixture \"request\"","start":1763142368372,"uuid":"575a872f-2a36-4cb6-b0d3-cc6e772b56d7","stop":1763142368378}],"attachments":[],"parameters":[],"name":"Before Hooks","start":1763142368360,"uuid":"bd201f7c-06fe-4784-8b99-506b389e084e","stop":1763142368379},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1763142368381,"name":"GET \"/posts\"","uuid":"ee7baa3c-dbe4-41be-a73a-c1143f38fee3","stop":1763142368480},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1763142368483,"name":"Expect \"toBe\"","uuid":"4e3d2dbe-1a9b-49fb-b749-4a74c697ba52","stop":1763142368484},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"Fixture \"request\"","start":1763142368486,"uuid":"8f2f9f3a-abc1-4f5c-8e59-b7ccb203c140","stop":1763142368490}],"attachments":[],"parameters":[],"name":"After Hooks","start":1763142368484,"uuid":"6f93985c-4784-4852-b1cc-f94406bfc1a8","stop":1763142368497}],"attachments":[{"name":"stdout","source":"ee2f14a9-73a2-419b-a22b-68459c0af623-attachment.txt","type":"text/plain"}],"parameters":[{"name":"Project","value":"api-tests"}],"labels":[{"name":"language","value":"javascript"},{"name":"framework","value":"playwright"},{"name":"package","value":"jsonPlaceHolder.posts.getPosts.spec.ts"},{"name":"titlePath","value":" > api-tests > api\\jsonPlaceHolder\\posts\\getPosts.spec.ts"},{"name":"host","value":"Filip"},{"name":"thread","value":"pid-5472-worker-0"},{"name":"parentSuite","value":"api-tests"},{"name":"suite","value":"api\\jsonPlaceHolder\\posts\\getPosts.spec.ts"}],"links":[],"start":1763142368362,"testCaseId":"ba5694f06b4474117d71af4258467f0e","fullName":"jsonPlaceHolder/posts/getPosts.spec.ts:3:1","titlePath":["jsonPlaceHolder","posts","getPosts.spec.ts"],"stop":1763142368482}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
3+
firstName: 'Kamran',
4+
lastName: 'Musadirli',
5+
updatedAt: '2025-11-06T18:56:56.305Z'
6+
}

0 commit comments

Comments
 (0)