Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update stubbed cloud types #21451

Merged
merged 1 commit into from
May 12, 2022
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
14 changes: 14 additions & 0 deletions packages/graphql/schemas/cloud.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ type CloudRun implements Node {
"""
id: ID!
status: CloudRunStatus
tags: [CloudRunTag]

"""
Total duration of the run in milliseconds, accounting for any parallelization
Expand All @@ -239,6 +240,11 @@ type CloudRun implements Node {
"""
totalFailed: Int

"""
Number of flaky tests
"""
totalFlakyTests: Int

"""
This is the number of passed tests across all groups in the run
"""
Expand Down Expand Up @@ -330,6 +336,14 @@ enum CloudRunStatus {
TIMEDOUT
}

type CloudRunTag implements Node {
"""
Globally unique identifier representing a concrete GraphQL ObjectType
"""
id: ID!
name: String
}

"""
A CloudUser represents an User stored in the Cypress Cloud
"""
Expand Down
10 changes: 10 additions & 0 deletions packages/graphql/schemas/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ type CloudRun implements Node {
"""Globally unique identifier representing a concrete GraphQL ObjectType"""
id: ID!
status: CloudRunStatus
tags: [CloudRunTag]

"""
Total duration of the run in milliseconds, accounting for any parallelization
Expand All @@ -226,6 +227,9 @@ type CloudRun implements Node {
"""This is the number of failed tests across all groups in the run"""
totalFailed: Int

"""Number of flaky tests"""
totalFlakyTests: Int

"""This is the number of passed tests across all groups in the run"""
totalPassed: Int

Expand Down Expand Up @@ -295,6 +299,12 @@ enum CloudRunStatus {
TIMEDOUT
}

type CloudRunTag implements Node {
"""Globally unique identifier representing a concrete GraphQL ObjectType"""
id: ID!
name: String
}

"""A CloudUser represents an User stored in the Cypress Cloud"""
type CloudUser implements Node {
"""Url to manage cloud organizations for this user"""
Expand Down
2 changes: 2 additions & 0 deletions packages/graphql/test/stubCloudTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ export function createCloudRun (config: Partial<CloudRun>): Required<CloudRun> {
totalTests: 10,
totalPassed: 10,
totalDuration: 300,
totalFlakyTests: 0,
tags: [],
url: 'http://dummy.cypress.io/runs/1',
createdAt: new Date('1995-12-17T03:17:00').toISOString(),
commitInfo: createCloudRunCommitInfo({
Expand Down