fix: remove sort history entries + fix history entries order - fixed #1455

This commit is contained in:
Liyas Thomas
2021-03-11 06:53:49 +00:00
committed by GitHub
parent c8cdfc8885
commit 17da230d72
7 changed files with 91 additions and 174 deletions

View File

@@ -49,32 +49,39 @@ beforeEach(async () => {
})
// Test History Entry
await mocksdk.firestore().collection("users").doc(testuser.uid).collection("history").doc().set({
auth: "None",
bearerToken: "",
bodyParams: [],
contentType: "",
date: "8/29/2020",
duration: 708,
headers: [],
httpPassword: "",
httpUser: "",
label: "",
method: "GET",
params: [],
path: "/status/200",
preRequestScript: "// pw.env.set('variable', 'value');",
rawInput: true,
rawParams: "",
requestType: "",
star: false,
status: 200,
testScript: "// pw.expect('variable').toBe('value');",
time: "12:12:27 PM",
url: "https://postman-echo.com",
usesPostScripts: true,
usesPreScripts: true,
})
await mocksdk
.firestore()
.collection("users")
.doc(testuser.uid)
.collection("history")
.doc()
.set({
auth: "None",
bearerToken: "",
bodyParams: [],
contentType: "",
updatedOn: new Date(1598703948000),
date: "8/29/2020",
duration: 708,
headers: [],
httpPassword: "",
httpUser: "",
label: "",
method: "GET",
params: [],
path: "/status/200",
preRequestScript: "// pw.env.set('variable', 'value');",
rawInput: true,
rawParams: "",
requestType: "",
star: false,
status: 200,
testScript: "// pw.expect('variable').toBe('value');",
time: "12:12:27 PM",
url: "https://postman-echo.com",
usesPostScripts: true,
usesPreScripts: true,
})
await mocksdk
.firestore()
@@ -740,6 +747,7 @@ describe("FirebaseInstance", () => {
bearerToken: "",
bodyParams: [],
contentType: "",
updatedOn: new Date(1598703948000),
date: "8/29/2021",
duration: 708,
headers: [],
@@ -910,6 +918,7 @@ describe("FirebaseInstance", () => {
bearerToken: "",
bodyParams: [],
contentType: "",
updatedOn: new Date(1598703948000),
date: "8/29/2021",
duration: 708,
headers: [],
@@ -954,6 +963,7 @@ describe("FirebaseInstance", () => {
bearerToken: "",
bodyParams: [],
contentType: "",
updatedOn: new Date(1598703948000),
date: "8/29/2021",
duration: 708,
headers: [],