* chore: Add extensionAlias for ESM TS to webpack-batteries-included
For TypeScript ESM projects that use module resolution requiring file
extensions, `.js` extension must be used for `.ts` imports. Take
advantage of `resolve.extensionAlias` to resolve these imports.
Fixes#26827Fixes#28805
* (Revisions) chore: Add extensionAlias for ESM TS to webpack-batteries-included
- Update typescript regex to allow .mts files
- Add ESM import tests
* chore: add changelog entry
* make sure extensionAlias is backwards compatible
---------
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* fix: check path for indexHtmlFile in onSpecsChange (#31819)
indexHtmlFile supports absolute paths,
so we need to check if the path is absolute before
fetching it from the project root.
* Update CHANGELOG.md
* Update CHANGELOG.md
updates changelog ref to 14.5.3
---------
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* chore: cut over mocha tests to vitest in @cypress/vite-dev-server
* breaking: make @cypress/vite-dev-server an ESM only package
* feat: support vite version 7 in @cypress/vite-dev-server
* build binaries
* test
* fix: file import issues on windows
* avoid optimized deps to suppress extraneous console logs
* does this work?
* chore: add unit tests for getVite as the implementation as changed quite a bit
* chore: update changelog
* fix vite optimize dependency messages being logged out to the console
even though log level is silent
* fix issues with correct vite being invoked
* chore: address issues from code review
* Downgrade react in vite 7 project to fix deprecation warnings
* dependency: update Electron to 34
* setup workflows to run against binary branch and on all tests
* changelog entry
* node version did bump minorly
* Update base-internal image to match new node version
* fix typo
* changelog updates
* bumping to newest version just released today - hopefully solves glibc error
* fix cy in cy
* remove extra register_ts_node require
* updated lockfile
* upgrade better-sqlite3
* changelog
* update electron in top level package.json
* ts issue, update to use binary workflow for e35, update ancillary deps
* update gh issue templates
* bump missed image names and engines field
* node 22
* snapgen?
* ts issue, log errors even if err.stderr/stdout is null
* more logging
* defer http-proxy common.js due to regexp issue in v8 13.4.* - 13.8.91
* update images for node 22.15.1, use bullseye instead of buster for bettersqlite
* use bullseye image for glibc2.31 build of bettersqlite
* use electron-36 publish binary branch
* node-abi update, set http-proxy deferred in darwin
* update .node-version
* attempt to patch http-proxy to immediately defer http-proxy/lib/http-proxy/common.js
* empty commit [run ci]
* better patch?
* changelog
* changelog
* Updates v8 snapshots to fix windows build (#31918)
* use node 22 in the v8 snapshot update workflow
* index on windows-v8-snapshots: a013464197 use node 22 in the v8 snapshot update workflow
* index on windows-v8-snapshots: a013464197 use node 22 in the v8 snapshot update workflow
* index on windows-v8-snapshots: a013464197 use node 22 in the v8 snapshot update workflow
* run workflows on windows/mac
---------
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
* update protocol system test snapshots (#31925)
* use snapshot to verify the error message on invalid json (#31926)
* chore: account for all node: internal stacks when trying to calculate the code frame. Accounts additionally for node:diagnostics_channel (#31935)
* Fixes electron 36 integrity checks (#31956)
* update the fs.readFileSync integrity check expectation
* maybe this fn is missing from the expected stack?
* more debug, change the stack up a little
* actual fn name is traceSync
* logging
* logging
* remove logging from integrity check
* maybe circle api changed?
* correct params
* inspect stack frames for differences
* have to manually serialize the stack frames
* change expectation
* update expected global keys
* additional allow list
* update key allow list
* increase zipfile size limit on non-windows builds
* revert logging changes
* Update scripts/binary/binary-integrity-check-source.js
* increase timeout to 120s for darwin fsevents/native module test (#31975)
* print out stdout for darwin test
* try and fix test
* update readme re: browsers-internal images, ensure module_api_spec binary test uses correct electron version
* Update .circleci/workflows.yml
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* Update .circleci/workflows.yml
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* trigger 15.0.0 binary pipeline rather than electron-36 specific one
* Update cli/CHANGELOG.md
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* Update cli/CHANGELOG.md
---------
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* chore: force CloudRequest to use 443 for https requests
* Update packages/network/lib/agent.ts
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
* Update CHANGELOG.md
---------
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
* misc: begin work on reporter redesign
* remove info icon on failing tests
* Add new queued icon to tests
* bump react-icon
* add some styles for the header
* add some styles and icons to describe blocks
* display chevron down on describe hover
* add css for red-400
* only display collapsible describes if there are tests in the suite
* add new test on describe hover
* add describe focus styles
* add describe focus styles scss
* fix add commands to test wand placement
* update stats icon with describe and test hover and focus
* update test status icons
* handles some of the test body styles and states
* add ellipsis to runnable title and flex shrink to icons
* fix command row stylings
* fix session alignment
* fix collapsible indicator styles
* handle attempt styling
* fix failing tests
* add back command status borders
* fix suites.cy.ts tests and make some styling fixes
* fix styles for New test button on focused/hovered suites
* fix header test
* attempt spacing fixes
* fix shortcuts test
* add open in ide on header hover
* make some styling fixes to errors
* make error styling changes
* update control icons and styles
* fix dotted line for suites
* add test dots
* fix logic for displaying test dots
* use stop circle icon
* refactor runnable and suite header icon
* only use test children to determine current suite state to display the suite icons
* fix suites test
* fix suite and test icon alignments
* clean up some comments and unused variables
* fix failing tests
* fix failing studio tests
* fix failing tests
* fix meta test
* fix suite_model test
* add more tests for suite-model
* fix more tests
* fix failing test
* fix padding for hook headers
* handle font weight, describe aligment and status border widths
* fix rounded corners on hover of commands
* round status border when test is opened
* handle chevron right/down when hovering when collapsible is open/closed
* add changelog entry
* yarn lock
* run on binary
* bust circle cache
* center align open in ide on command hover
* add padding to the bottom of the last suite/test
* fix attempt padding and connecting dots
* update progress bar color to gray-900
* no jumping when opening test
* top align describe/test text when the text wraps to the next line
* clean up new test button styles and add the linear gradient
* fix dotted line and describe/test padding
* round out error border and remove double red border on errors
* fix gap for stack trace
* only apply margin top to test and suite icons
* change opacity of add commands to test wand icon
* fix wand opacity test
* can we just remove this overflow: scroll?
* clean up TODOs
* fix error group line alignment
* align open IDE tooltip in hooks
* fix padding between suites
* remove purple border around describe in studio
* Add tailwind css so that styles work in e2e tests
* fix studio buttons padding
* fix stack trace padding
* disable clicking for skipped and queued up tests
* fix 1px jumping when opening test
* handle open in ide and new test button shadows/padding/alignment
* circle cache
* update yarn.lock
* index on mabel/issue-31677-reporter-redesign: 5e2503f339 Merge branch 'mabel/issue-31677-reporter-redesign' of https://github.com/cypress-io/cypress into mabel/issue-31677-reporter-redesign
* index on mabel/issue-31677-reporter-redesign: 5e2503f339 Merge branch 'mabel/issue-31677-reporter-redesign' of https://github.com/cypress-io/cypress into mabel/issue-31677-reporter-redesign
* index on mabel/issue-31677-reporter-redesign: 5e2503f339 Merge branch 'mabel/issue-31677-reporter-redesign' of https://github.com/cypress-io/cypress into mabel/issue-31677-reporter-redesign
* link issue to TODO
* only add pointer-events:none to tests and not suites
* fix failing tests
* Update cache-version.txt
* fix failing test
* fix clear sessions width
* remove unused style
* yarnlock update
* add caching when calculating children states in the suite-model
* Revert "add caching when calculating children states in the suite-model"
This reverts commit 3b59a94282.
* Remove * css style for reporter box-sizing - I don't see this impacting css styles at all
* have css only target languages we support showing in Cypress App
* Remove normalize.scss
* Remove more global css resets to improve rendering performance
* remove running state
* memoize components in runnable-and-suite
* fix failing test
* bump cache
* skip failing tests related to active states
---------
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
* feat: Rename SelectorPriority API to ElementSelector API
BREAKING: Rename SelectorPriority API to ElementSelector API
* bump unique-selector + remove restriction on type of prop
* rename file + remove test
* rename and add types to files
* save file
* fix types
* Add error when Cypress.SelectorPlayground is called to suggest renaming
* Add better description of ElementSelector API
* Error on invalid selector priority types
* changelog entry
* Update types to match exact type of selectorPriority
* remove semicolon
* Add feature description for separate feature
* remove the other semicolon
* Update types to use official cypress types
* Add other issue that this PR resolves.
* add name to selector priority
* alphabetize strings in selectorPriority types
* fix: don't automatically remove requests when cdpRequestWillBeSentReceivedTimestamp is set to 0. Also, do not ass hashes to prerequest url as the urls do not have hashes when coming through the middleware
* Update packages/server/lib/browsers/bidi_automation.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* chore: re-add the buffer, path, process, os, and stream built-ins to wbip
* Update npm/webpack-batteries-included-preprocessor/README.md
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* chore: add process to built in test
---------
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* spike: cut over cy.url(), cy.hash(), cy.location(), cy.reload(), cy.go(), and cy.title() all to use the automation client to subvert the cross-origin boundary
refactor backend client
* chore: add unit tests for cy url, hash, location, title, reload, and go changes to make it easier to test minor behavior changes
bump cache
* fix issues with cy in cy tests. refactor aut discovery code as the frame tree gets stale on reload
* update comments from code review
---------
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* chore(deps): update dependency hasha to v5.2.2
* use hashs instead of copied code
* chore(deps): update dependency hasha to v5.2.2
* move to dep instead of devDep
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* feat: install win32-x64 binary on win32-arm64 platform
* Move changelog feature to next minor release
---------
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* breaking: remove webpack built-ins shimmed in from webpack 4 to 5 upgrade as they should no longer be needed for most users
* Update npm/webpack-batteries-included-preprocessor/README.md
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* Update cli/CHANGELOG.md
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
---------
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* refactor: Update nested groups design
* Update styles
* Enhance command method styling for child elements in the reporter. Updated the CommandDetails component to conditionally apply a class for child commands and added corresponding SCSS styles to display a prefix for child command methods.
* Fix formatting in SCSS for child command styles by adjusting indentation for better readability.
* add chanagelog entry
* Enhance command expander styling by adding a parent class for better layout control and adjusting margin for command number column.
* Update padding for error message styles in SCSS to improve layout consistency.
* Refactor SCSS styles and introduce mixins for gutter alignment and command info padding. Update error component styles for improved layout and consistency. Adjust padding and margins for better alignment across command and error sections.
* Refactor command styles by removing redundant class names and consolidating group indentation styles into a mixin. Update SCSS files to utilize the new mixin for consistent width handling across command and error components.
* Enhance SCSS mixins by adding align-self property for improved layout consistency in command info and group indentation styles.
* Remove redundant align-self property from SCSS mixin for command info and add logging and expectation in Cypress test for improved clarity in UI state tests.
* Use snapshotReporter instead
* Refactor snapshotReporter to dynamically set width based on reporter panel size, improving snapshot accuracy and visibility of UI elements.
* Update snapshotReporter to include sidebar width in percy snapshots, enhancing UI element visibility and accuracy.
---------
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>