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: initial protocol api work #26080

Merged
merged 18 commits into from
Mar 13, 2023

Conversation

ryanthemanuel
Copy link
Collaborator

@ryanthemanuel ryanthemanuel commented Mar 10, 2023

Additional details

This is an initial base implementation of hooking into the protocol API that will be delivered from the cloud. It hooks into the lifecycle of specs, tests, and browser connections.

Steps to test

  • Clone the cypress-services repo
    • Run yarn
    • Run yarn watch in packages/app-capture-protocol
  • Set CYPRESS_LOCAL_PROTOCOL_PATH to the path to cypress-services/packages/app-capture-protocol/dist/index.js
  • Clone the cypress repo
    • Run yarn
    • Execute cypress run on a project in record mode with DEBUG set to cypress:*protocol* and ensure you can see the lifecycle events

How has the user experience changed?

n/a

PR Tasks

@ryanthemanuel ryanthemanuel changed the base branch from develop to feat/protocol March 10, 2023 20:39
@@ -330,6 +331,12 @@ module.exports = {
})
})
})
.then(async (result) => {
// TODO: Get url for the protocol code and pass it down to download
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest namespacing all the TODOs so we can easily verify that all the TODOs have been completed.

Suggested change
// TODO: Get url for the protocol code and pass it down to download
// TODO(protocol): Get url for the protocol code and pass it down to download

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call.

Copy link
Contributor

@mschile mschile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a few additional comments but otherwise it looks good!

@ryanthemanuel ryanthemanuel marked this pull request as ready for review March 13, 2023 13:45
@cypress
Copy link

cypress bot commented Mar 13, 2023

27 flaky tests on run #44711 ↗︎

0 26863 1281 0 Flakiness 27

Details:

empty commit
Project: cypress Commit: 8f974cb0e7
Status: Passed Duration: 19:28 💡
Started: Mar 13, 2023 4:19 PM Ended: Mar 13, 2023 4:39 PM
Flakiness  cypress/cypress.cy.js • 3 flaky tests • 5x-driver-electron

View Output Video

Test Artifacts
... > correctly returns currentRetry Output Video
... > correctly returns currentRetry Output Video
... > correctly returns currentRetry Output Video
Flakiness  commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-firefox

View Output Video

Test Artifacts
network stubbing > intercepting request > can delay and throttle a StaticResponse Output
Flakiness  e2e/origin/commands/assertions.cy.ts • 1 flaky test • 5x-driver-firefox

View Output Video

Test Artifacts
cy.origin assertions > #consoleProps > .should() and .and() Output
Flakiness  cypress/cypress.cy.js • 3 flaky tests • 5x-driver-firefox

View Output Video

Test Artifacts
... > correctly returns currentRetry Output
... > correctly returns currentRetry Output
... > correctly returns currentRetry Output
Flakiness  create-from-component.cy.ts • 2 flaky tests • app-e2e

View Output Video

Test Artifacts
... > runs generated spec Output Screenshots Video
... > runs generated spec Output Screenshots Video

The first 5 flaky specs are shown, see all 14 specs in Cypress Cloud.

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@ryanthemanuel ryanthemanuel requested a review from mjhenkes March 13, 2023 17:46
@ryanthemanuel ryanthemanuel changed the title feat: initial protocol api work chore: initial protocol api work Mar 13, 2023
@ryanthemanuel ryanthemanuel merged commit 32a73f7 into feat/protocol Mar 13, 2023
@ryanthemanuel ryanthemanuel deleted the ryanm/feat/initial-protocol-api branch March 13, 2023 21:32
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Aug 29, 2023

Released in 13.0.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.0.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Aug 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants