* misc: Begin code for moving viewport dimensions and removing dropdown
* Update styles for viewport size + scale and handle component testing views
* add changelog
* fix changelog link
* fix issue link again!
* misc: begin reworking the browser dropdown
* Update UIs for dropdowns to work right in both modes
* changelog entry
* remove assertions about browser dropdown being visible in tiny widths
* update changelog entry
* Add zindex of 5 for the aut-panel so it doesn't ever cover the reporter-panel
* Just pass zindex to style - apparently tailwind css option doesn't want to work........
* Update aut height to new height
* Move zindex to input instead of main aut-url container to prevent screenshotting from breaking.
* Add a comment, maybe it will help someone one day
* set z-index back to 51 to be above studio URL panel, but runner to 60 to be above that also
* zindex
* more z index changes!!1
* revert the resizable panel changes - make zindex of input dynamic!
* Fix browser dropdown in AutomationMissing UI
* misc: Add some missing types + Convert js driver/query tests to ts
* changelog entry
* reuse partial
* Update cli/CHANGELOG.md
* Update call to querySelector to assign an identifier when checking for null
* feat: implement BiDi automation client base (without full extension cutover). [run ci]
* chore: implement suggestions from code review. [run ci]
* update error text to be in line with documentation
* address comments from code review
* address comments from code review
* make bidi, cdp, and both active protocols object enumerations to make the code easier to read
* address additional comments from code review
* fix errors from refactor
* update firefox warning
* misc: update a few cypress types + convert internal driver tests to TypeScript
* Update packages/driver/cypress/e2e/commands/actions/scroll.cy.ts
* add changelog entry
* bump circle cache?
* More type fixes
* fix some more
* Make the values numbers
* Update cli/CHANGELOG.md
Co-authored-by: Bill Glesias <bglesias@gmail.com>
---------
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* fix: retry instance creation when the Cloud request fails
* cleanup defunct branches in circleci workflows.yml
* rm unintentional delta in system test snapshot
* change how user invocation stacks are prepared, for more flexibility
* build darwin and persist artifacts for this branch
* changelog
* add implicit dependencies to @packages/extension so things build in the right order
* note about binary testing for error_utils and stack_utils
* changelog
* Update packages/driver/test/unit/cypress/err_utils.spec.ts
Co-authored-by: Bill Glesias <bglesias@gmail.com>
---------
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* fix: actions not running in after hooks that fail
* empty commit
* Add tests for actionability retries for click and type
* empty commit
* add changelog entry
* Remove done calls in tests
* changelog update to be more specific
* dependency: bump mime dep
* changelog entry
* yarn lock update
* add pending to changelog
* index on mime-dep-update: ccff6a976e add pending to changelog
* index on mime-dep-update: ccff6a976e add pending to changelog
* another removal of package
* changelog update
* index on mime-dep-update: ccff6a976e add pending to changelog
* whoops wrong issue
* fix test that was just....wrong
* Revert "fix test that was just....wrong"
This reverts commit 73ed5b0867.
* nvm, application/javascript is obsolete
* app/js to text/js updates
* downgrade to mime 3.0.0
* back to application/javascript
* index on mime-dep-update: 23cbb7783b Merge branch 'mime-dep-update' of https://github.com/cypress-io/cypress into mime-dep-update
* index on mime-dep-update: 23cbb7783b Merge branch 'mime-dep-update' of https://github.com/cypress-io/cypress into mime-dep-update
* index on mime-dep-update: 23cbb7783b Merge branch 'mime-dep-update' of https://github.com/cypress-io/cypress into mime-dep-update
---------
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: AtofStryker <bglesias@gmail.com>
Closes Mesa/GLX related warnings shown when running Cypress #29521
The primary Cypress process can emit benign warnings related to Mesa/GLX when running in certain Linux environments or containers. These warnings are related to graphics drivers and X11 display settings, but are not necessary for Cypress to execute correctly. This PR suppresses these warnings from stdout, similar to other benign Electron warnings:
- `error: XDG_RUNTIME_DIR is invalid or not set in the environment.`
- `MESA: error: ZINK: failed to choose pdev`
- `glx: failed to create drisw screen`
1. Execute Cypress tests in run mode on a Linux machine or container with minimal graphics drivers installed
2. Execute Cypress tests in run mode in a Docker container using a basic Linux image (e.g. ubuntu:latest)
3. Verify the suppressed warnings no longer appear in the terminal output
Users will no longer see benign graphics-related warnings in their terminal output when running Cypress in Linux environments with minimal graphics support. This reduces noise in the terminal output while not affecting any actual test functionality.
- [x] Have tests been added/updated?
- [NA] Has a PR for user-facing changes been opened in cypress-documentation?
- [NA] Have API changes been updated in the type definitions?
fix linting
change word for CI
Update cli/CHANGELOG.md
Going with the suggesting.
Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
fix linting
update readme with another fixed issue
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* remove experimentalSkipDomainInjection, add and deprecate injectDocumentDomain
* remove experimentalSkipDomainInjection, add injectDocumentDomain
* begin rethreading domain injection
* complete document domain transition
* move some cookie specs to separate test run
* origin and privileged commands with default docdom inject
* fix privileged channel when injecting document domain
* rm unnecessary .getOrigin abstraction in cors lib
* move remote-states in prep for refactor Replace Conditional with Polymorphism
* refactor remote states to strategy pattern
* cookie commands work as expected w cross origin bridge on different origins
* some origin tests updated
* run tests with document domain enabled
* run tests actually
* use correct config, swap conditional
* check-ts
* inject documetn domain for webkit tests
* do not exec injectDocumetnDomain in parallel
* fix ServerBase construction in tests to include cfg now
* pass cfg to ServerBase
* improved integration tests
* remove document domain checks for all server integration specs - will add injectDocumentDomain cases
* tests for injecting document domain when configured to
* square away server integration tests
* ensure cookies are set correctly, potentially
* errors pkg snapshots
* fix config tests
* fixing config tests
* somewhat improves tests for cors policies in packages/network
* fix ts err in server-base
* enable injectDocumentDomain for cy in cy tests
* fix Policy type ref
* refactor cypress-schematic ct spec to be less prone to timeouts
* run vite-dev-server tests with injectDocumentDomain
* rm document domain assertion from page_loading system test
* add system tests that test with injectDocumentDomain and others that test with cy.origin
* fix results_spec snapshot
* update experimentalSkipDomainInjection system test
* different behavior for certain net_stubbing tests based on injectDocumentDomain or not
* fix ts
* extract origin key logic from remote states, for now
* move server-base and response-middleware over to new pattern
* WIP - reentry
* fix build, remove console.log
* check-ts
* fix spec frame injection
* remove injection for localhost
* mostly fix vite-dev-server app integration tests
* fix codeframe in certain cases in chrome
* drop internal stack frames from stacks intended for determining code frame data
* some improvements to vite ct error codeframes
* fix proxy unit tests to use document domain injection util class
* rm .only
* fix all vite ct error specs
* rm console.log
* slight refactor to util class to make easier to test
* fix refactor - missing rename in files.js
* several tests do not set testingtype in config, so just check against component instead of checking for e2e
* revert changes to getInvocationDetails to see if that breaks tests
* re-enable stack stripping in invocation details for chrome
* new snapshots with more accurate invocation details
* test for same-site cross-origin cookie behavior
* ignore window.top ts errors
* revert forcing injectDocumentDomain in vite-dev-server cy config
* fix normalized whitespace for firefox "loading_failed" error
* always trim trailing wsp from stack before appending additional content
* force normalization of whitespace to three \n when adding additional stack details
* normalize wsp between stack and additional stack to "\n \n" in firefox
* remove stack_utils attempt at normalizing wsp
* various cleanup: remove commented console logs, add more detailed comments
* add on links to error messages
* remove experimentalSkipDomainInjection from exported type defs
* Update system-tests/test/experimental_skip_domain_injection_spec.ts
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* Update packages/driver/cypress/e2e/e2e/origin/cookie_misc.cy.ts
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* no need to coerce a boolean value to a booleanc
* export base config from primary cypress config in driver for use in inject-document-domain test subset
* lift experimentalSkipDomainInjection breaking option to root
* rollback config/options changes
* rm invalid comment
* use hostname instead of origin to create cookie from automation cookie
* clarify stack regex in results_spec
* lint
* take a stab at the changelog entries for this
* Update cli/CHANGELOG.md
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
* Update cli/CHANGELOG.md
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
* reenable locally-failing test
* changelog
* snapshot updatesfor experimental skip domain injection err msg
* remove packageManager declaration in package.json
---------
Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>