-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Merge develop into release/13.0.0 (#25668)
* fix: match alternate edge version string format (#25457) * fix: match alternate edge version string format * chore: add changelog entry * Apply suggestions from code review * Update cli/CHANGELOG.md * Update cli/CHANGELOG.md * chore: update changelog to release on Tuesday for 12.5 * [run ci] --------- Co-authored-by: Emily Rohrbough <[email protected]> Co-authored-by: Bill Glesias <[email protected]> * chore: Use upstream cypress-testing-library again (#25548) * chore: Use upstream cypress-testing-library again * Update cypress-example-kitchensink commit hash * Revert "Update cypress-example-kitchensink commit hash" This reverts commit 8de5d1f. --------- Co-authored-by: Emily Rohrbough <[email protected]> * fix(deps): update dependency underscore.string to v3.3.6 🌟 (#25574) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Bill Glesias <[email protected]> * feat: Debug page [IATR] (#25488) Co-authored-by: Zachary Williams <[email protected]> Co-authored-by: Ankit <[email protected]> Co-authored-by: Stokes Player <[email protected]> Co-authored-by: elevatebart <[email protected]> Co-authored-by: Rocky <[email protected]> Co-authored-by: Stokes Player <[email protected]> Co-authored-by: Emily Rohrbough <[email protected]> Co-authored-by: Mark Noonan <[email protected]> Co-authored-by: Mike Plummer <[email protected]> Co-authored-by: amehta265 <[email protected]> Co-authored-by: Adam Stone-Lord <[email protected]> Co-authored-by: Mike Plummer <[email protected]> Co-authored-by: Lachlan Miller <[email protected]> * chore: fix changlelog section parsing and reference right ENV (#25633) * test: skip flaky migration test (#25378) * chore: Update README to add Cloud badges (#25645) * perf: remove reporter logs for collapsed tests in run mode (#25632) Co-authored-by: Emily Rohrbough <[email protected]> * chore: 12.5.0 release (#25648) * dependency: update dependency simple-git to v3.16.0 [security] (#25603) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Zachary Williams <[email protected]> Co-authored-by: Emily Rohrbough <[email protected]> * chore: renovate semantic types and percy ci updates (#25651) --------- Co-authored-by: Steven Collins <[email protected]> Co-authored-by: Emily Rohrbough <[email protected]> Co-authored-by: Bill Glesias <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Stokes Player <[email protected]> Co-authored-by: Zachary Williams <[email protected]> Co-authored-by: Ankit <[email protected]> Co-authored-by: Stokes Player <[email protected]> Co-authored-by: elevatebart <[email protected]> Co-authored-by: Rocky <[email protected]> Co-authored-by: Mark Noonan <[email protected]> Co-authored-by: Mike Plummer <[email protected]> Co-authored-by: amehta265 <[email protected]> Co-authored-by: Adam Stone-Lord <[email protected]> Co-authored-by: Mike Plummer <[email protected]> Co-authored-by: Lachlan Miller <[email protected]> Co-authored-by: Jennifer Shehane <[email protected]> Co-authored-by: Matt Schile <[email protected]>
- Loading branch information
1 parent
1f9ae86
commit ef507c6
Showing
197 changed files
with
15,277 additions
and
666 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 |
---|---|---|
@@ -0,0 +1,151 @@ | ||
import RelevantRunsDataSource_RunsByCommitShas from '../fixtures/gql-RelevantRunsDataSource_RunsByCommitShas.json' | ||
|
||
Cypress.on('window:before:load', (win) => { | ||
win.__CYPRESS_GQL_NO_SOCKET__ = 'true' | ||
}) | ||
|
||
// These mocks all the responses so we can get deterministic | ||
// results to test the debug page. | ||
// The JSON fixtures were generated by using a real app and capturing | ||
// the responses. | ||
describe('App - Debug Page', () => { | ||
beforeEach(() => { | ||
cy.scaffoldProject('cypress-in-cypress') | ||
cy.openProject('cypress-in-cypress') | ||
cy.startAppServer('component') | ||
|
||
cy.loginUser() | ||
cy.withCtx((ctx) => { | ||
ctx.git?.__setGitHashesForTesting(['commit1', 'commit2']) | ||
}) | ||
|
||
cy.remoteGraphQLIntercept((obj, _testState, options) => { | ||
if (obj.operationName === 'RelevantRunsDataSource_RunsByCommitShas') { | ||
obj.result.data = options.RelevantRunsDataSource_RunsByCommitShas.data | ||
} | ||
|
||
return obj.result | ||
}, { RelevantRunsDataSource_RunsByCommitShas }) | ||
}) | ||
|
||
it('all tests passed', () => { | ||
// This mocks all the responses so we can get deterministic | ||
// results to test the debug page. | ||
cy.intercept('POST', '/__cypress/graphql/query-Debug', { | ||
fixture: 'debug-Passing/gql-Debug.json', | ||
}) | ||
|
||
cy.intercept('POST', '/__cypress/graphql/query-CloudViewerAndProject_RequiredData', { | ||
fixture: 'debug-Passing/gql-CloudViewerAndProject_RequiredData.json', | ||
}) | ||
|
||
cy.intercept('POST', '/__cypress/graphql/query-MainAppQuery', { | ||
fixture: 'debug-Passing/gql-MainAppQuery.json', | ||
}) | ||
|
||
cy.intercept('POST', '/__cypress/graphql/query-SideBarNavigationContainer', { | ||
fixture: 'debug-Passing/gql-SideBarNavigationContainer', | ||
}) | ||
|
||
cy.intercept('POST', '/__cypress/graphql/query-HeaderBar_HeaderBarQuery', { | ||
fixture: 'debug-Passing/gql-HeaderBar_HeaderBarQuery', | ||
}) | ||
|
||
cy.intercept('POST', '/__cypress/graphql/query-SpecsPageContainer', { | ||
fixture: 'debug-Passing/gql-SpecsPageContainer', | ||
}) | ||
|
||
cy.visitApp() | ||
|
||
cy.findByTestId('sidebar-link-debug-page').click() | ||
cy.findByTestId('debug-container').should('be.visible') | ||
|
||
cy.findByTestId('header-top').contains('update projectId') | ||
cy.findByTestId('debug-header-dashboard-link') | ||
.contains('View in Cypress Cloud') | ||
.should('have.attr', 'href', 'https://cloud.cypress.io/projects/7p5uce/runs/2') | ||
|
||
cy.findByTestId('debug-runNumber-PASSED').contains('#2') | ||
cy.findByTestId('debug-commitsAhead').contains('You are 1 commit ahead') | ||
|
||
cy.findByTestId('metadata').within(() => { | ||
cy.get('[title="passed"]').contains('2') | ||
cy.get('[title="failed"]').contains('0') | ||
cy.get('[title="skipped"]').contains('0') | ||
cy.get('[title="pending"]').contains('2') | ||
cy.findByTestId('debug-header-branch').contains('main') | ||
cy.findByTestId('debug-header-commitHash').contains('e9d176f') | ||
cy.findByTestId('debug-header-author').contains('Lachlan Miller') | ||
cy.findByTestId('debug-header-createdAt').contains('01:18') | ||
}) | ||
|
||
cy.findByTestId('debug-passed').contains('Well Done!') | ||
cy.findByTestId('debug-passed').contains('All your tests passed.') | ||
cy.findByLabelText('Relevant run passed').should('be.visible').contains('0') | ||
cy.findByTestId('run-failures').should('not.exist') | ||
}) | ||
|
||
it('shows information about a failed spec', () => { | ||
cy.intercept('POST', '/__cypress/graphql/query-Debug', { | ||
fixture: 'debug-Failing/gql-Debug.json', | ||
}) | ||
|
||
cy.intercept('POST', '/__cypress/graphql/query-CloudViewerAndProject_RequiredData', { | ||
fixture: 'debug-Failing/gql-CloudViewerAndProject_RequiredData.json', | ||
}) | ||
|
||
cy.intercept('POST', '/__cypress/graphql/query-MainAppQuery', { | ||
fixture: 'debug-Failing/gql-MainAppQuery.json', | ||
}) | ||
|
||
cy.intercept('POST', '/__cypress/graphql/query-SideBarNavigationContainer', { | ||
fixture: 'debug-Failing/gql-SideBarNavigationContainer', | ||
}) | ||
|
||
cy.intercept('POST', '/__cypress/graphql/query-HeaderBar_HeaderBarQuery', { | ||
fixture: 'debug-Failing/gql-HeaderBar_HeaderBarQuery', | ||
}) | ||
|
||
cy.intercept('POST', '/__cypress/graphql/query-SpecsPageContainer', { | ||
fixture: 'debug-Failing/gql-SpecsPageContainer', | ||
}) | ||
|
||
cy.visitApp() | ||
|
||
cy.findByTestId('sidebar-link-debug-page').click() | ||
cy.findByTestId('debug-container').should('be.visible') | ||
|
||
cy.findByTestId('header-top').contains('chore: testing cypress') | ||
cy.findByTestId('debug-header-dashboard-link') | ||
.contains('View in Cypress Cloud') | ||
.should('have.attr', 'href', 'https://cloud.cypress.io/projects/vgqrwp/runs/136') | ||
|
||
cy.findByLabelText('Relevant run had 1 test failure').should('be.visible').contains('1') | ||
|
||
cy.findByTestId('debug-runNumber-FAILED').contains('#136') | ||
cy.findByTestId('debug-commitsAhead').contains('You are 1 commit ahead') | ||
|
||
cy.findByTestId('metadata').within(() => { | ||
cy.get('[title="passed"]').contains('1') | ||
cy.get('[title="failed"]').contains('1') | ||
cy.get('[title="skipped"]').contains('0') | ||
cy.get('[title="pending"]').contains('0') | ||
cy.findByTestId('debug-header-branch').contains('main') | ||
cy.findByTestId('debug-header-commitHash').contains('commit1') | ||
cy.findByTestId('debug-header-author').contains('Lachlan Miller') | ||
cy.findByTestId('debug-header-createdAt').contains('00:19') | ||
}) | ||
|
||
cy.findByTestId('spec-contents').within(() => { | ||
cy.contains('src/components/InfoPanel/InfoPanel.cy.ts') | ||
cy.findByTestId('metaData-Results-spec-duration').contains('00:04') | ||
cy.findByTestId('metaData-Results-operating-system').contains('Linux Ubuntu') | ||
cy.findByTestId('metaData-Results-browser').contains('Electron 106') | ||
cy.findByTestId('metaData-Results-testing-type').contains('Component') | ||
}) | ||
|
||
cy.findByTestId('test-row').contains('InfoPanel') | ||
cy.findByTestId('test-row').contains('renders') | ||
cy.findByTestId('run-failures').should('exist').should('have.attr', 'href', '#/specs/runner?file=src/components/InfoPanel/InfoPanel.cy.ts&mode=debug') | ||
}) | ||
}) |
Oops, something went wrong.
ef507c6
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:
ef507c6
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:
ef507c6
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:
ef507c6
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
win32 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:
ef507c6
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: