Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/wasm-sdk/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
playwright-report/
test-results/
6 changes: 6 additions & 0 deletions packages/wasm-sdk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1994,6 +1994,7 @@ <h2>Results</h2>
{ name: "dataContractId", type: "text", label: "Data Contract ID", required: true },
{ name: "documentTypeName", type: "text", label: "Document Type Name", required: true },
{ name: "indexName", type: "text", label: "Index Name", required: true },
{ name: "indexValues", type: "array", label: "Index Values", required: true },
{ name: "resultType", type: "select", label: "Result Type", required: true,
options: [
{ value: "contenders", label: "Contenders" },
Expand All @@ -2014,6 +2015,7 @@ <h2>Results</h2>
{ name: "dataContractId", type: "text", label: "Data Contract ID", required: true },
{ name: "documentTypeName", type: "text", label: "Document Type Name", required: true },
{ name: "indexName", type: "text", label: "Index Name", required: true },
{ name: "indexValues", type: "array", label: "Index Values", required: true },
{ name: "contestantId", type: "text", label: "Contestant ID", required: true },
{ name: "startAtIdentifierInfo", type: "json", label: "Start At Identifier Info (JSON)", required: false },
{ name: "count", type: "number", label: "Count", required: false },
Expand Down Expand Up @@ -4400,6 +4402,7 @@ <h2>Results</h2>
values.dataContractId,
values.documentTypeName,
values.indexName,
values.indexValues,
values.resultType,
values.allowIncludeLockedAndAbstainingVoteTally,
values.startAtIdentifierInfo ? JSON.stringify(values.startAtIdentifierInfo) : undefined,
Expand All @@ -4412,6 +4415,7 @@ <h2>Results</h2>
values.dataContractId,
values.documentTypeName,
values.indexName,
values.indexValues,
values.resultType,
values.allowIncludeLockedAndAbstainingVoteTally,
values.startAtIdentifierInfo ? JSON.stringify(values.startAtIdentifierInfo) : undefined,
Expand All @@ -4427,6 +4431,7 @@ <h2>Results</h2>
values.dataContractId,
values.documentTypeName,
values.indexName,
values.indexValues,
values.contestantId,
values.startAtIdentifierInfo ? JSON.stringify(values.startAtIdentifierInfo) : undefined,
values.count,
Expand All @@ -4438,6 +4443,7 @@ <h2>Results</h2>
values.dataContractId,
values.documentTypeName,
values.indexName,
values.indexValues,
values.contestantId,
values.startAtIdentifierInfo ? JSON.stringify(values.startAtIdentifierInfo) : undefined,
values.count,
Expand Down
212 changes: 208 additions & 4 deletions packages/wasm-sdk/test/ui-automation/fixtures/test-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,28 @@ const testData = {
},
getTotalCreditsInPlatform: {
testnet: [{}]
},
getCurrentQuorumsInfo: {
testnet: [{}] // No parameters needed
},
getPrefundedSpecializedBalance: {
testnet: [
{ identityId: "AzaU7zqCT7X1kxh8yWxkT9PxAgNqWDu4Gz13emwcRyAT" }
]
}
},

protocol: {
getProtocolVersionUpgradeState: {
testnet: [{}]
testnet: [{}] // No parameters needed
},
getProtocolVersionUpgradeVoteStatus: {
testnet: [
{
startProTxHash: "143dcd6a6b7684fde01e88a10e5d65de9a29244c5ecd586d14a342657025f113",
count: 100
}
]
}
},

Expand All @@ -263,26 +279,214 @@ const testData = {
getEpochsInfo: {
testnet: [
{
epoch: 1000,
count: 5,
startEpoch: 1000,
count: 100,
ascending: true
}
]
},
getFinalizedEpochInfos: {
testnet: [
{
startEpoch: 8635,
count: 100,
ascending: true
}
]
},
getEvonodesProposedEpochBlocksByIds: {
testnet: [
{
epoch: 8635,
ids: ["143dcd6a6b7684fde01e88a10e5d65de9a29244c5ecd586d14a342657025f113"]
}
]
},
getEvonodesProposedEpochBlocksByRange: {
testnet: [
{
epoch: 8635,
limit: 10,
startAfter: "143dcd6a6b7684fde01e88a10e5d65de9a29244c5ecd586d14a342657025f113",
orderAscending: true
}
]
}
},

dpns: {
getDpnsUsername: {
testnet: [
{
identityId: "5DbLwAxGBzUzo81VewMUwn4b5P4bpv9FNFybi25XB5Bk",
limit: 10
}
]
},
dpnsCheckAvailability: {
testnet: [
{ label: "alice" },
{ label: "test-username" },
{ label: "available-name" }
]
},
dpnsResolve: {
testnet: [
{ name: "therea1s11mshaddy5" },
{ name: "alice.dash" },
{ name: "test-name" }
]
},
dpnsSearch: {
testnet: [
{
prefix: "the",
limit: 10
},
{
prefix: "test",
limit: 5
}
]
}
},

token: {
getTokenStatuses: {
testnet: [
{
tokenIds: ["Hqyu8WcRwXCTwbNxdga4CN5gsVEGc67wng4TFzceyLUv"]
tokenIds: ["Hqyu8WcRwXCTwbNxdga4CN5gsVEGc67wng4TFzceyLUv", "H7FRpZJqZK933r9CzZMsCuf1BM34NT5P2wSJyjDkprqy"]
}
]
},
getTokenDirectPurchasePrices: {
testnet: [
{
tokenIds: ["H7FRpZJqZK933r9CzZMsCuf1BM34NT5P2wSJyjDkprqy"]
}
]
},
getTokenContractInfo: {
testnet: [
{
dataContractId: "H7FRpZJqZK933r9CzZMsCuf1BM34NT5P2wSJyjDkprqy"
}
]
},
getTokenPerpetualDistributionLastClaim: {
testnet: [
{
identityId: "5DbLwAxGBzUzo81VewMUwn4b5P4bpv9FNFybi25XB5Bk",
tokenId: "Hqyu8WcRwXCTwbNxdga4CN5gsVEGc67wng4TFzceyLUv"
}
]
},
getTokenTotalSupply: {
testnet: [
{
tokenId: "Hqyu8WcRwXCTwbNxdga4CN5gsVEGc67wng4TFzceyLUv"
}
]
}
},

voting: {
getContestedResources: {
testnet: [
{
documentTypeName: "domain",
dataContractId: "GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec",
indexName: "parentNameAndLabel",
resultType: "documents",
allowIncludeLockedAndAbstainingVoteTally: false,
limit: 10,
offset: 0,
orderAscending: true
}
]
},
getContestedResourceVoteState: {
testnet: [
{
dataContractId: "GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec",
documentTypeName: "domain",
indexName: "parentNameAndLabel",
indexValues: ["dash", "alice"],
resultType: "contenders",
allowIncludeLockedAndAbstainingVoteTally: false,
count: 10,
orderAscending: true
}
]
},
getContestedResourceVotersForIdentity: {
testnet: [
{
dataContractId: "GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec",
documentTypeName: "domain",
indexName: "parentNameAndLabel",
indexValues: ["dash", "alice"],
contestantId: "5DbLwAxGBzUzo81VewMUwn4b5P4bpv9FNFybi25XB5Bk",
count: 10,
orderAscending: true
}
]
},
getContestedResourceIdentityVotes: {
testnet: [
{
identityId: "5DbLwAxGBzUzo81VewMUwn4b5P4bpv9FNFybi25XB5Bk",
limit: 10,
offset: 0,
orderAscending: true
}
]
},
getVotePollsByEndDate: {
testnet: [
{
limit: 10,
offset: 0,
orderAscending: true
}
]
}
},

group: {
getGroupInfo: {
testnet: [
{
contractId: "49PJEnNx7ReCitzkLdkDNr4s6RScGsnNexcdSZJ1ph5N",
groupContractPosition: 0
}
]
},
getGroupInfos: {
testnet: [
{
contractId: "49PJEnNx7ReCitzkLdkDNr4s6RScGsnNexcdSZJ1ph5N",
count: 100
}
]
},
getGroupActions: {
testnet: [
{
contractId: "49PJEnNx7ReCitzkLdkDNr4s6RScGsnNexcdSZJ1ph5N",
groupContractPosition: 0,
status: "ACTIVE",
count: 10
}
]
},
getGroupActionSigners: {
testnet: [
{
contractId: "49PJEnNx7ReCitzkLdkDNr4s6RScGsnNexcdSZJ1ph5N",
groupContractPosition: 0,
status: "ACTIVE",
actionId: "6XJzL6Qb8Zhwxt4HFwh8NAn7q1u4dwdoUf8EmgzDudFZ"
}
]
}
Expand Down
Loading
Loading