storybook-chromatic
Version:
Visual Testing for Storybook
54 lines (50 loc) • 1.22 kB
JavaScript
export const TesterCreateAppTokenMutation = `
mutation TesterCreateAppTokenMutation($projectToken: String!) {
createAppToken(code: $projectToken)
}
`;
export const TesterCreateBuildMutation = `
mutation TesterCreateBuildMutation($input: CreateBuildInput!, $isolatorUrl: String!) {
createBuild(input: $input, isolatorUrl: $isolatorUrl) {
id
number
specCount
snapshotCount
componentCount
webUrl
features {
uiTests
uiReview
}
wasLimited
app {
account {
exceededThreshold
paymentRequired
billingUrl
}
setupUrl
}
}
}
`;
export const TesterSkipBuildMutation = `
mutation TesterSkipBuildMutation($appId: ObjID, $commit: String!) {
skipBuild(appId: $appId, commit: $commit)
}
`;
export const TesterBuildQuery = `
query TesterBuildQuery($buildNumber: Int!) {
app {
build(number: $buildNumber) {
id
status
autoAcceptChanges
inProgressCount: snapshotCount(statuses: [SNAPSHOT_IN_PROGRESS])
snapshotCount
changeCount
errorCount: snapshotCount(statuses: [SNAPSHOT_CAPTURE_ERROR])
}
}
}
`;