Commit Graph

77 Commits

Author SHA1 Message Date
Adam Stone-Lord
4c11731ee1 chore: optimize task execution (#27848)
* Revert "chore: simplify build script (#27547)"

This reverts commit 0a86ec686e.

* Revert "chore: upgrade lerna to 6, cache build step (#26913)"

This reverts commit 9e60aeba8f.

* [run ci]

* chore: upgrade lerna to 6, cache build step (#26913)

* chore: update build-npm-modules script

* chore: update build-npm-modules script

* chore: update build-npm-modules script

* chore: update build-npm-modules script

* chore: update lerna to 6

* [run ci]

* try caching build step

* we can't clean without building after

* add dependencies on scripts for npm packages

* update commands

* add config for data-context build step

* fix output configurations for npm packages, add gitignores

* revert changes to config and data-context build steps

* fix outputs

* run with cache

* fix outputs for cli

* actually fix outputs

* test with cache

---------

Co-authored-by: astone123 <adams@cypress.io>

* chore: simplify build script (#27547)

* chore: simplify build script

* update CI workflows

* fix workflows

* empty commit because Percy weirdness

* chore: add driver, reporter, config as implicit dependencies for runner package (#27559)

* run all workflows on branch

* chore: parallelize test-binary-against-recipes CI step (#27570)

* chore: fix some easy circular dependencies in dep graph (#27612)

* chore: remove gulp tasks from postinstall (#27616)

* empty commit

* chore: minor improvements to node_modules_install (#27647)

* chore: fix cypress:open and dev scripts

* run with cache [run ci]

* exclude mochaawesome assets from .yarnclean [run ci]

* bump cache again [run ci]

* run cached [run ci]

* chore: do not cache cli build step [run ci]

* update workflow command and docs for build-cli [run ci]

* fix commands that use scope [run ci]

* use different branch for publish repo [run ci]

* percy weirdness? [run ci]

* fix postbuild cli script [run ci]

* try to remove typescript from production binary [run ci]

* fix circular dependency [run ci]

* try removing ts from node_modules [run ci]

* remove typescript resolution [run ci]

* remove redundant target scripts

* update to lerna scoped commands

* remove unneeded yarn in lerna command

* try to fix Electron install in Windows workflow

---------

Co-authored-by: Jordan <jordan@jpdesigning.com>
Co-authored-by: Dave Kasper <dave.m.kasper@gmail.com>
2023-10-04 12:25:00 -05:00
Adam Stone-Lord
24f1460692 chore: revert changes to build process (#27584)
* Revert "chore: remove Typescript dependency from app node_modules in binary (#27577)"

This reverts commit 60d4c8356c.

* Revert "chore: simplify build script (#27547)"

This reverts commit 0a86ec686e.

* Revert "chore: upgrade lerna to 6, cache build step (#26913)"

This reverts commit 9e60aeba8f.

* build everything

* [run ci]
2023-08-18 10:05:29 -04:00
Jordan
9e60aeba8f chore: upgrade lerna to 6, cache build step (#26913)
* chore: update build-npm-modules script

* chore: update build-npm-modules script

* chore: update build-npm-modules script

* chore: update build-npm-modules script

* chore: update lerna to 6

* [run ci]

* try caching build step

* we can't clean without building after

* add dependencies on scripts for npm packages

* update commands

* add config for data-context build step

* fix output configurations for npm packages, add gitignores

* revert changes to config and data-context build steps

* fix outputs

* run with cache

* fix outputs for cli

* actually fix outputs

* test with cache

---------

Co-authored-by: astone123 <adams@cypress.io>
2023-08-10 11:12:38 -04:00
Jordan
fd63f19cbc chore: enable caching for lint task (#26791) 2023-06-02 16:47:02 -04:00
semantic-release-bot
1788f252f3 chore: release @cypress/angular-v2.0.3
[skip ci]
2023-03-14 12:01:45 -04:00
Michal Wozniak
e674f43040 fix(angular): mount cy-root in original location (#25965)
* fix(angular): mount cy-root in original location

* correctly fix insertRootElement to preserves html hierarchy, trim system-tests

---------

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2023-03-01 16:12:34 -05:00
semantic-release-bot
f9cf41ad42 chore: release @cypress/angular-v2.0.2
[skip ci]
2023-02-17 09:53:03 -05:00
Zachary Williams
104eef5dfb fix: mount component in [data-cy-root] (#25807)
* fix(angular): mount component in [data-cy-root]

* fix e2e test

* add changelog entry

* changelog [skip ci]

* changelog

---------

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2023-02-17 20:21:36 +10:00
Emily Rohrbough
a869d5dd28 chore: enforce changelog entries on PR reviews (#25459)
Co-authored-by: Blue F <blue@cypress.io>
2023-01-24 15:30:33 -06:00
Jan Papenbrock
4baad8eb6b docs(angular): Properties that are spied upon have to be defined within componentProperties instead of on root level. (#25359)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2023-01-06 09:13:10 -06:00
Zach Bloomquist
1b1ed9cd49 chore: improve linting (#25235) 2022-12-29 17:26:13 +00:00
Jordan
ed90b14d4f refactor: move linting to each lib to enable caching (#24424) 2022-11-17 17:31:19 +10:00
Adam Stone
141c799975 chore: normalize CT adapter readme documents (#24590) 2022-11-09 12:29:28 -05:00
semantic-release-bot
bad2cd7f3b chore: release @cypress/angular-v2.0.1
[skip ci]
2022-11-07 19:06:36 -05:00
Zachary Williams
838dd4fa2e fix: make component derived info not throw (#24571) 2022-11-07 16:36:43 -06:00
semantic-release-bot
06a40949ad chore: release @cypress/angular-v2.0.0
[skip ci]
2022-11-07 10:42:18 -05:00
rockindahizzy
7aba05b1a4 chore: add or improve mount JSDocs (#24475)
* Add or improve JSDoc

* Address code review comments

* Apply suggestions from code review

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>

* Update npm/react/src/mount.ts

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>

* Apply suggestions from code review

Co-authored-by: Stokes Player <stokes@cypress.io>

* on links

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Stokes Player <stokes@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-11-04 17:26:01 +10:00
Zachary Williams
f39eb1c19e fix: remove last mounted component upon subsequent mount calls (#24470)
BREAKING CHANGE: remove last mounted component upon subsequent mount calls of mount
2022-11-03 12:19:29 -05:00
Rainer Hahnekamp
54d2853217 fix: possibility to override global services in Angular component tests (#24394)
* fix: allow to override global services in Angular component tests

* move DI tests into their own context

* exclude `componentProviders` when a component is mounted with a template

* - revert and remove `componentProviders`
- run `eslint --fix` on `mount.cy.ts`
- add tests that use `TestBed.inject`

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-11-01 09:16:10 +10:00
semantic-release-bot
d8574c1ed5 chore: release @cypress/angular-v1.1.2
[skip ci]
2022-10-11 17:40:22 -04:00
Zachary Williams
53eef4fbd7 fix: angular and nuxt ct tests now fail on uncaught exceptions (#24122) 2022-10-11 10:21:32 -04:00
semantic-release-bot
94b4ca0b46 chore: release @cypress/angular-v1.1.1
[skip ci]
2022-10-03 21:22:10 -04:00
Jordan
670d438309 fix(angular): call ngOnChanges after mount (#23596)
* fix(angular): call ngOnChanges after mounting
2022-10-03 18:17:46 -04:00
semantic-release-bot
296cebb09c chore: release @cypress/angular-v1.1.0
[skip ci]
2022-09-27 20:26:24 -04:00
semantic-release-bot
8bcfe93ba9 chore: release @cypress/angular-v1.1.0
[skip ci]
2022-09-26 23:02:13 -04:00
semantic-release-bot
c9405d1dc4 chore: release @cypress/angular-v1.1.0
[skip ci]
2022-09-23 11:37:24 -04:00
Emily Rohrbough
86b02f3c96 chore: remove master branch from dev workflow 2022-09-20 08:45:38 -05:00
Mike Plummer
64c0f45182 fix: Fix missing it.skip function in Angular tests (#23829)
* fix: restore mocha methods

* Simplify `it.skip` patch, add tests

* Consolidate test runs for perf

* Add tests to validate `skip` and `only` behaviors

Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-09-16 09:42:01 +10:00
Emily Rohrbough
864ab8ebf2 chore: merge master into develop for release (#23803) 2022-09-13 10:49:01 -05:00
Mike Plummer
b5e6fd67a9 Merge branch 'master' into develop 2022-08-30 09:25:23 -05:00
Zachary Williams
2f337dbfa2 fix: angular 14.2 mount compilation error (#23593) 2022-08-29 13:40:43 -05:00
Zachary Williams
f6eaad40e1 feat: adding svelte component testing support (#23553)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
Co-authored-by: Rocky <25568640+rockindahizzy@users.noreply.github.com>
2022-08-26 12:36:05 -05:00
Zachary Williams
7ddcc96388 chore: update typescript (#23523)
* chore: update typescript

* use String()

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* use String()

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* use String()

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-08-25 09:31:02 +10:00
semantic-release-bot
02e5b24c63 chore: release @cypress/angular-v1.0.0
[skip ci]
2022-08-17 12:37:31 -04:00
Jordan
d4a034dbc6 build(angular): publish @cypress/angular to npm (#23387) 2022-08-17 10:59:06 -05:00
Bill Glesias
17f430768b Merge branch 'master' into develop 2022-08-15 12:29:07 -04:00
Jordan
d201b37b3d feat: add template support, teardown & standalone (#23117)
Co-authored-by: Jordan <jordan@jpdesigning.com>
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-08-08 09:38:52 -05:00
Zachary Williams
20f89bfa32 fix: remove dependency causing semantic-release to fail (#23142) 2022-08-05 15:54:44 -05:00
semantic-release-bot
d9c20fb3bb chore: release @cypress/angular-v1.0.0
[skip ci]
2022-08-04 18:02:15 -04:00
semantic-release-bot
d26b6a8054 chore: release @cypress/angular-v1.0.0
[skip ci]
2022-08-04 14:20:07 -04:00
Zachary Williams
94e78eba04 feat: enable Angular CT support (#23089) 2022-08-03 17:21:34 -05:00
Zachary Williams
ecad07e27b chore: remove angular integration (#23004) 2022-07-29 10:01:01 -05:00
Zachary Williams
aedb1e93f9 refactor: improve angular mount log and override build options for dev (#22955) 2022-07-28 10:23:45 -05:00
Jordan
4131b1fa84 feat(angular): angular mount (#22858)
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-07-26 17:44:44 -05:00
renovate[bot]
fac83fd451 chore(deps): update dependency semantic-release to v19 [security] (#22238)
* chore(deps): update dependency semantic-release to v19 [security]

* chore: try moving to semantic-release 18

* chore: update jasmine-core to 3.8.0

* chore: update semantic version 19.0.3

* fix: update test to deal with npm obscuring internal error code

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2022-06-27 12:35:58 +10:00
Alejandro Estrada
3274da7842 fix: terminal error message for non migrated config (#21467)
* fix: terminal error message for non migrated config

* fix: terminal error message for non migrated config
2022-05-13 16:56:01 -05:00
Jess
b326693879 chore: cutting over system-tests and Cypress to use the new CT Object API (#21079)
* removing vite-dev-server local dependency from react-vite-ts-configured system test

* moving some CRA examples over to use the object api for setup

* fixing issue where function API was broken by object API for cy config + devservers

* adding deeply nested react import to project-fixtures for cra

* finishes cutting over cypress/react for sys tests

* chore: adding circle for this feature branch

* chore: moving over many vue + vite system tests to use object API instead of function API (#21080)

* doing webpack-dev-server cutovers

* removing more webpack-dev-server refrences

* fixing snapshots

* bumping yarn.lock

* wip

* fix test

* fix assertion

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* feat: removing all references for "fresh" dev servers (webpack-dev-server-fresh and vite-dev-server-fresh) (#21094)

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>

* chore: add dev-servers as deps to server to be included in the binary (#21091)

* fix bad merge

* fix next types and webpack-dev-server- resolve

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-04-20 15:57:19 +10:00
Jess
0e7b555f93 feat: swap the #__cy_root id selector to become data-cy-root for component mounting (#20951)
* Change #__cy_root selector for CT mounting point to be a data-cy-root selector

* moving all of the gets for the container element into the mount-utils

* Force HTMLElement instead of Element

* unskip vue2 tests

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-04-13 16:08:35 -04:00
Zachary Williams
2c8e97df24 refactor: lift indexHtmlFile up to component, add validation (#20870) 2022-04-01 09:45:21 -05:00
Alejandro Estrada
61f7cfc592 fix: scope config to current testing type (#20677)
* fix: scope config to current testing type

* Revert options changes

* Fix some tests

* Fix more tests

* Fix more tests

* Fix more tests

* Update options

* Fix tests

* Fix tests

* Add comments

* Remove un-needed quote

* Fix test

* Fix tests
2022-03-23 19:06:36 -05:00