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

Create "Setup CT" Promo #26837

Closed
mike-plummer opened this issue May 23, 2023 · 2 comments · Fixed by #26894
Closed

Create "Setup CT" Promo #26837

mike-plummer opened this issue May 23, 2023 · 2 comments · Fixed by #26894
Assignees

Comments

@mike-plummer
Copy link
Contributor

mike-plummer commented May 23, 2023

When in E2E mode without CT configured, we should display a Promo to help users learn about and get started with CT within the Specs Explorer.

The Testing Type switcher shown here will be implemented under #26448 , this ticket is for implementing the Promo.

CTA Headline: Component Testing is not set up for this project
CTA Text: Try it out now, or read our guides to learn more

  • "read our guides" is a link to on.cypress.io/component
  • clicking this creates a "campaign completed" event using the /machine-collect endpoint
    campaign: Read our guide
    medium: CT Preview

CTA Button Text: Quick setup

  • clicking this creates a "campaign completed" event using the /machine-collect endpoint
    campaign: Quick setup
    medium: CT Preview

Body headline: What is Component Testing?
Body text: Cypress Component Testing is a technique for developers to write, test, and debug components in isolation without ever leaving the browser — and without having to run your entire application.
Body list:

  • Item 1: Instead of visiting a page, use cy.mount() to render your front-end components directly in the browser.
  • Item 2: Test from a user's perspective with all the same Cypress commands that are available in end-to-end testing.
  • Item 3: To get started, you can generate the config for Angular, React, or Vue (and more!) in just a few clicks.
    * each framework name has an inline icon in front of it for that framework
    * the framework names should be on-links created in Create "Setup CT" Promo onlinks #26838
    * they will share the following params:
    utm_medium: CT Preview,
    utm_content: if detected {framework}-{bundler}, otherwise empty
    utm_campaign: the content of the link that was clicked, so Angular, Vue, React or "more"
    for reference see: https://github.com/cypress-io/cypress/blob/develop/packages/app/src/specs/banners/ComponentTestingAvailableBanner.vue#L122
    * Each docs link should also record a "campaign completed" event
    medium: CT Preview
    campaign: the content of the link that was clicked, so Angular, Vue, React or "more"

Feedback link: Give feedback

  • Existing onlink: on.cypress.io/component-survey-q2-23
  • clicking this creates a "campaign completed" event using the /machine-collect endpoint
    campaign: Give feedback
    medium: CT Preview

Screenshot 2023-05-23 at 11 45 23 AM

@mike-plummer
Copy link
Contributor Author

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jun 7, 2023

Released in 12.14.0.

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

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jun 7, 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 a pull request may close this issue.

1 participant