-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/ct-public-api' of https://github.com/cypress-io…
…/cypress into feature/ct-public-api
- Loading branch information
Showing
17 changed files
with
410 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
"commitInfo": { | ||
"sha": "commit1", | ||
"authorName": "Lachlan Miller", | ||
"authorEmail": "[email protected]", | ||
"summary": "chore: testing cypress", | ||
"branch": "main", | ||
"__typename": "CloudRunCommitInfo" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ const defaults = [ | |
{ attr: 'debug-header-branch', text: 'Branch Name: feature/DESIGN-183' }, | ||
{ attr: 'debug-header-commitHash', text: 'Commit Hash: b5e6fde' }, | ||
{ attr: 'debug-header-author', text: 'Commit Author: cypressDTest' }, | ||
{ attr: 'debug-header-createdAt', text: 'Run Total Duration: 01:00 (an hour ago) ' }, | ||
{ attr: 'debug-header-createdAt', text: 'Run Total Duration: 01m 00s (an hour ago) ' }, | ||
] | ||
|
||
describe('<DebugPageHeader />', { | ||
|
@@ -22,6 +22,7 @@ describe('<DebugPageHeader />', { | |
result.commitInfo.summary = 'Adding a hover state to the button component' | ||
result.commitInfo.branch = 'feature/DESIGN-183' | ||
result.commitInfo.authorName = 'cypressDTest' | ||
result.commitInfo.authorEmail = '[email protected]' | ||
result.commitInfo.sha = 'b5e6fde' | ||
} | ||
} | ||
|
@@ -144,4 +145,22 @@ describe('<DebugPageHeader />', { | |
|
||
cy.findByTestId('debug-commitsAhead').should('not.exist') | ||
}) | ||
|
||
it('renders duration over 1 hour', () => { | ||
cy.mountFragment(DebugPageHeaderFragmentDoc, { | ||
onResult (result) { | ||
if (result) { | ||
result.totalDuration = 3602000000 | ||
} | ||
}, | ||
render: (gqlVal) => { | ||
return ( | ||
<DebugPageHeader gql={gqlVal} commitsAhead={0}/> | ||
) | ||
}, | ||
}) | ||
|
||
cy.findByTestId('debug-header-createdAt') | ||
.should('have.text', 'Run Total Duration: 16h 33m 20s (an hour ago) ') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
a6a71e1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
linux arm64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
a6a71e1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
linux x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
a6a71e1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
darwin x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
a6a71e1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
darwin arm64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally: