Skip to content

Conversation

@estrada9166
Copy link
Member

User facing changelog

Additional details

Fix viewport config params pass through CLI for CT - currently the usage of --config viewportWidth=333,viewportHeight=333 was not working for CT because it was being overridden in a config update; it was working fine for e2e tests

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?

@estrada9166 estrada9166 requested a review from a team as a code owner March 30, 2022 16:36
@estrada9166 estrada9166 requested review from jennifer-shehane and removed request for a team March 30, 2022 16:36
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Mar 30, 2022

Thanks for taking the time to open a PR!

@cypress
Copy link

cypress bot commented Mar 30, 2022



Test summary

17792 0 217 0Flakiness 1


Run details

Project cypress
Status Passed
Commit 17a70cb
Started Apr 1, 2022 1:10 AM
Ended Apr 1, 2022 1:23 AM
Duration 12:06 💡
OS Linux Debian - 10.10
Browser Multiple

View run in Cypress Dashboard ➡️


Flakiness

cypress/e2e/cypress/proxy-logging.cy.ts Flakiness
1 Proxy Logging > request logging > xhr log has response body/status code when xhr response is logged second

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 requested a review from lmiller1990 March 30, 2022 19:00
Copy link
Contributor

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

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

One comment around types

}, {
name: 'viewportWidth',
defaultValue: 1000,
defaultValue: (options: Record<string, any> = {}) => options.testingType === 'component' ? 500 : 1000,
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be options: Cypress.Config?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure if it should be Cypress.Config because it comes from here which is when we are building the config in runtime

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, seems fine then. 👍

@estrada9166 estrada9166 requested a review from lmiller1990 March 31, 2022 14:16
@jennifer-shehane jennifer-shehane removed their request for review March 31, 2022 14:54
@flotwig flotwig requested a review from davidmunechika March 31, 2022 15:35
@lmiller1990
Copy link
Contributor

cc @davidmunechika

@lmiller1990 lmiller1990 merged commit 1033e04 into 10.0-release Apr 1, 2022
@lmiller1990 lmiller1990 deleted the alejandro/fix/ct-cli-viewport branch April 1, 2022 01:39
tgriesser added a commit that referenced this pull request Apr 1, 2022
* 10.0-release:
  fix: add index.mjs to the published files of cli (#20884)
  refactor: lift indexHtmlFile up to component, add validation (#20870)
  fix: allow migration of pluginsFile using `env` properties (#20770)
  fix: viewport from CLI on CT (#20849)
  fix: git data source unit test failure (#20875)
  fix: Ensuring current browser is synchronized between app and launchpad (#20830)
  Fix missed await on merge conflict resolution
  test(unification): move record keys to contexts (#20860)
  test: move record keys to contexts (#20859)
  make alerts more responsive
  chore: Update Chrome (stable) to 100.0.4896.60 (#20841)
  Revise test.
  fix: cy.root respect timeout option.
  fix(deps): update dependency ansi-regex to v4.1.1 [security] (#20836)
  chore(deps): update dependency ansi-regex to 4.1.1 [security] (#20807)
  chore: Refactor cri-client to use async/await (#20825)
  remove automationId from runnerStore
  fix firefox automation and adress feedback
  feat: add automation warning/disconnected states in app
tgriesser added a commit that referenced this pull request Apr 1, 2022
…ess into tgriesser/fix/UNIFY-1389

* 'tgriesser/fix/UNIFY-1389' of github.com:cypress-io/cypress: (56 commits)
  fix: add index.mjs to the published files of cli (#20884)
  refactor: lift indexHtmlFile up to component, add validation (#20870)
  fix: allow migration of pluginsFile using `env` properties (#20770)
  fix: viewport from CLI on CT (#20849)
  Don't communicate if process isn't connected
  Remove config.get
  Update packages/data-context/src/data/ProjectLifecycleManager.ts
  fix: git data source unit test failure (#20875)
  add comment for autoBindDebug
  PR comments
  Fix tests that visit app without a configured testing type
  Fix type script
  Fix issue with refreshing on the welcome screen
  Add test for migration scenario
  Fix types
  Move IPC logic to all be in ProjectConfigIPC
  Other minor cleanup
  Additional code cleanup
  Fix more tests
  Fix typo
  ...
tgriesser added a commit that referenced this pull request Apr 5, 2022
* 10.0-release: (92 commits)
  chore: remove dependency-tree dep (#20905)
  chore(launchpad): work on infra for scaffold tests (#20818)
  fix: build mjs in the cli (#20889)
  fix(unify): Cypress version link should point to Cypress doc's changelog (#20869)
  fix: windows build (#20854)
  fix: add index.mjs to the published files of cli (#20884)
  refactor: lift indexHtmlFile up to component, add validation (#20870)
  fix: allow migration of pluginsFile using `env` properties (#20770)
  fix: viewport from CLI on CT (#20849)
  Don't communicate if process isn't connected
  Remove config.get
  Update packages/data-context/src/data/ProjectLifecycleManager.ts
  fix: git data source unit test failure (#20875)
  add comment for autoBindDebug
  fix: Ensuring current browser is synchronized between app and launchpad (#20830)
  Fix missed await on merge conflict resolution
  test(unification): move record keys to contexts (#20860)
  test: move record keys to contexts (#20859)
  PR comments
  Fix tests that visit app without a configured testing type
  ...
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.

4 participants