Skip to content

Commit 9318e7b

Browse files
Add project ID to Remove test run method
1 parent 9479312 commit 9318e7b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

e2e/api/user.api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class UserAPI extends BaseAPI {
8686
this.cookie = decodeURIComponent(authCookie.value)
8787
}
8888

89-
public async removeTestRun(testRunId: number) {
90-
return this.sendDelete(Endpoints.testrun, { id: testRunId, project_id: this.project.id }, null);
89+
public async removeTestRun(id: number, project_id: number) {
90+
return this.sendDelete(Endpoints.testrun, { id, project_id }, null);
9191
}
9292
}

e2e/specs/suite/syncSuite.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ describe('Sync Test Suite', () => {
9696
});
9797

9898
afterAll(async () => {
99-
await projectHelper.adminAPI.removeTestRun(notSyncTestRun[0].id);
100-
await projectHelper.adminAPI.removeTestRun(syncTestRuns[0].id);
101-
return projectHelper.adminAPI.removeTestRun(syncTestRuns[1].id);
99+
await projectHelper.adminAPI.removeTestRun(notSyncTestRun[0].id, projectHelper.project.id);
100+
await projectHelper.adminAPI.removeTestRun(syncTestRuns[0].id, projectHelper.project.id);
101+
return projectHelper.adminAPI.removeTestRun(syncTestRuns[1].id, projectHelper.project.id);
102102
});
103103

104104
it('Check default fields if suite was not chosen', async () => {

0 commit comments

Comments
 (0)