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

fix: component spec creation with spec pattern #19862

Merged
merged 17 commits into from
Jan 28, 2022

Conversation

estrada9166
Copy link
Member

User facing changelog

Additional details

How has the user experience changed?

PR Tasks

  • Have tests been added/updated?
  • Has the original issue (or this PR, if no issue exists) been tagged with a release in ZenHub? (user-facing changes only)
  • Has a PR for user-facing changes been opened in cypress-documentation?
  • Have API changes been updated in the type definitions?
  • Have new configuration options been added to the cypress.schema.json?

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jan 25, 2022

Thanks for taking the time to open a PR!

@cypress
Copy link

cypress bot commented Jan 25, 2022



Test summary

4357 0 51 0Flakiness 3


Run details

Project cypress
Status Passed
Commit 68f336d
Started Jan 28, 2022 1:45 AM
Ended Jan 28, 2022 1:57 AM
Duration 11:59 💡
OS Linux Debian - 10.10
Browser Electron 94

View run in Cypress Dashboard ➡️


Flakiness

commands/net_stubbing.cy.ts Flakiness
1 network stubbing > waiting and aliasing > can timeout waiting on a single response using "alias"
2 network stubbing > waiting and aliasing > can timeout incrementally waiting on requests
cypress/proxy-logging.cy.ts Flakiness
1 Proxy Logging > request logging > xhr log has response body/status code

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@estrada9166 estrada9166 marked this pull request as ready for review January 28, 2022 01:43
@@ -47,7 +47,7 @@ const isRunMode = window.__CYPRESS_MODE__ === 'run'
// requests, which is what we want.
const query = useQuery({
query: SpecPageContainerDocument,
requestPolicy: 'cache-and-network',
requestPolicy: 'cache-only',
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice

import { unionType } from 'nexus'

export const GeneratedSpecResult = unionType({
name: 'GeneratedSpecResult',
Copy link
Contributor

Choose a reason for hiding this comment

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

Did not know about this, very nice

baseName: 'Basic',
fileExtension: 'tsx',
contents: `it('should do stuff', () => {})`,
currentProject: ctx.currentProject,
Copy link
Contributor

Choose a reason for hiding this comment

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

Starting to wonder how useful the stubgql mutations are, they are really hard to keep up to date w/ real data

@@ -358,6 +395,28 @@ export class ProjectActions {

const [newSpec] = codeGenResults.files

const cfg = this.ctx.project.getConfig()

if (cfg) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure when or where but we really need to centralize this - it's a copy paste of some really complex and important code

@estrada9166 estrada9166 merged commit 910f88b into 10.0-release Jan 28, 2022
@estrada9166 estrada9166 deleted the alejandro/fix/component-spec-creation branch January 28, 2022 14:34
tgriesser added a commit that referenced this pull request Jan 31, 2022
* 10.0-release: (25 commits)
  fix(unify): improve dev server config ergonomics (#19957)
  feat: add spec pattern modal (#19801)
  fix: Windows e2e project scaffolding issues (#19938)
  feat: update @cypress/schematic to use proper e2e config for 10.0.0 (#19827)
  fix: correctly migrate projects with custom integration folder (#19929)
  fix: component spec creation with spec pattern (#19862)
  fix: missed committing yarn.lock after merge conflict
  fix: correct reference branch / commitSha in performance-reporter (#19941)
  feat: update navbar UI per Figma (#19926)
  fix: seed examples files when no e2e directory is created (#19768)
  chore: remove windy lightBlue warning
  test: component test updates (#19925)
  feat: Focus browser from select browser screen and on dashboard login (#19842)
  test: Honeycomb system-test reporter (#19855)
  fix(deps): update dependency engine.io to v5.2.1 [security]
  feat: Retain fileName when working with aliased fixtures and files (#19820)
  Update release-process.md
  Update release-process.md
  Update release-process.md
  Update release-process.md
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants