mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-01 12:24:29 +01:00
Co-authored-by: Alcaraz, Bruno <Bruno.Alcaraz@ulgroup.com>
This commit is contained in:
parent
c99da3a581
commit
1d2e06d419
@ -1566,29 +1566,29 @@ export const collectionsSlice = createSlice({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (type === 'request-sent') {
|
if (type === 'request-sent') {
|
||||||
const item = collection.runnerResult.items.find((i) => i.uid === request.uid);
|
const item = collection.runnerResult.items.findLast((i) => i.uid === request.uid);
|
||||||
item.status = 'running';
|
item.status = 'running';
|
||||||
item.requestSent = action.payload.requestSent;
|
item.requestSent = action.payload.requestSent;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type === 'response-received') {
|
if (type === 'response-received') {
|
||||||
const item = collection.runnerResult.items.find((i) => i.uid === request.uid);
|
const item = collection.runnerResult.items.findLast((i) => i.uid === request.uid);
|
||||||
item.status = 'completed';
|
item.status = 'completed';
|
||||||
item.responseReceived = action.payload.responseReceived;
|
item.responseReceived = action.payload.responseReceived;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type === 'test-results') {
|
if (type === 'test-results') {
|
||||||
const item = collection.runnerResult.items.find((i) => i.uid === request.uid);
|
const item = collection.runnerResult.items.findLast((i) => i.uid === request.uid);
|
||||||
item.testResults = action.payload.testResults;
|
item.testResults = action.payload.testResults;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type === 'assertion-results') {
|
if (type === 'assertion-results') {
|
||||||
const item = collection.runnerResult.items.find((i) => i.uid === request.uid);
|
const item = collection.runnerResult.items.findLast((i) => i.uid === request.uid);
|
||||||
item.assertionResults = action.payload.assertionResults;
|
item.assertionResults = action.payload.assertionResults;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type === 'error') {
|
if (type === 'error') {
|
||||||
const item = collection.runnerResult.items.find((i) => i.uid === request.uid);
|
const item = collection.runnerResult.items.findLast((i) => i.uid === request.uid);
|
||||||
item.error = action.payload.error;
|
item.error = action.payload.error;
|
||||||
item.responseReceived = action.payload.responseReceived;
|
item.responseReceived = action.payload.responseReceived;
|
||||||
item.status = 'error';
|
item.status = 'error';
|
||||||
|
Loading…
Reference in New Issue
Block a user