Commit Graph

12 Commits

Author SHA1 Message Date
Mike Plummer bf590eba3f feat: CT stack traces (#23916)
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
Co-authored-by: astone123 <adams@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-09-26 17:31:46 -05:00
Emily Rohrbough 4e0e1cb85b chore: remove skipped test - covered elsewhere (#23675) 2022-09-02 17:50:49 -05:00
Bill Glesias a7ecbec2a3 fix: do not allow experimentalSessionAndOrigin to be available in CT … (#21588)
* fix: do not allow experimentalSessionAndOrigin to be available in CT per https://github.com/cypress-io/cypress/issues/21573

* remove experimentalSessionAndOrigin config as it is read only

* move runner session tests under own system test project to turn on experimentalSessionAndOrigin flag

* refactor session ui runner tests to point to runner-session-e2e-specs folder

* fix cypress_spec.js to account for experimentalSessionAndOrigin options

* remove experimentalSessionAndOrigin from env args
2022-05-23 13:55:15 -04:00
Bill Glesias 346bf458b0 Merge branch 'develop' into merge-develop-into-10.0 2022-05-10 12:46:29 -04:00
Emily Rohrbough dbbad318aa chore(sessions): add additional tests (#21338) 2022-05-05 18:21:15 -05:00
Bill Glesias 37830ad926 update system test flags for cy-in-cy tests to use experimentalSessionAndOrigin over experimentalSessionSupport 2022-05-02 22:54:16 -04:00
Lachlan Miller 03fbbd7bc7 chore: migrate mochaEvents integration tests from runner to app (#20678)
* mocha-events

* wip

* work on snapshots tests

* update

* lint

* remove unused code

* revert some changes

* remove old code

* migrate retries tests to app

* reduce duplication

* remove old code

* rename method

* use disparity
2022-03-24 15:32:25 +10:00
David Munechika c0945c1de8 fix: Snapshot Toggles Should Reset Correctly When Pinning New Command (#20670)
* switch default

* fix snapshot state

* remove old fix

* fix default value

* add highlight toggle state test

* Addressing PR feedback

Co-authored-by: Tyler Biethman <tbiethman@gmail.com>
2022-03-22 14:15:02 +10:00
Tyler Biethman 3885933036 test: Addressing TODOs in app (#20612)
* test: Updating app package TODOs/tests

* Adding ticket cross-references

* Updating more tests

* Reverting failing update

* Removing errant cy

* Renaming index.cy.ts -> specs.cy.ts

* Updating test to validate scaffold output in specs list
2022-03-16 15:33:08 -05:00
Tyler Biethman d4fa37e652 test: Migrate more runner UI specs to app (#20118)
* Adding remaining reporter error tests.

* Removing existing integration spec file

* Removing existing runner fixtures for error specs

* Fixing ts lint

* Testing with less tests kept in memory

* Testing some cypress-in-cypress settings to improve run-mode performance.

* Reverting changes to doc_url specs

* PR Updates. Inverting default value for 'open in IDE' validation in an attempt to reduce test time.

* Cleaning up ported code

* Update system-tests/projects/runner-e2e-specs/cypress/fixtures/index.html

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>

* Trying build workaround

* Bumping up parallelized builds for app integration tests

* Removing suspicious tests to validate CI build

* Removing more suspicious tests to test CI

* Trying to not scaffold every navigation

* Bumping resources for run-app-integration job. Updating reporter.errors specs to appropriately reduce AUT refreshes.

* Couple API tweaks

* test: Migrating runner hooks specs to app

* Removing unused helper from runner package; cleaning up a few things

* Updating yarn.lock

* fix: Migrating runner sessions ui tests to app

* test: Migrating runner's runner.ui tests to app

* test: Migrating runner retries ui tests to app

* Cleaning up a few things for consistency

* Fixing ts errors

* Removing tests for runner header that have existing coverage in app

* Working around detached elements in CI

* Still working around detached elements in CI

* Updating sessions.ui test to click more carefully. Adding bit more coverage around runner header and snapshot pinning.

* Update packages/app/cypress/e2e/runner/retries.ui.cy.ts

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

* Migrating issue specs. Updating TODOs. Hopefully addressing some flake.

* Stopping icon spin animation for percy snapshots

* WIP

* customPercyCommand.ts

* WIP: working on custom percy snapshots for hiding elements other than the reporter [skip ci]

* WIP: Adding naive mutation observer for reseting DOM mutations after snapshots [skip ci]

Got tired of tripping over types, I can add them when we're feature complete

* Implementing scoped snapshots throughout app/runner tests, let's see how percy output looks

* Adding more snapshots to runner tests.

* Using spec link as click target

* Stop taking snapshots of failed tests

* Scoping selector playground snapshots (though they're still unstyled)

* Addressing flake in virtualized spec list

* Drying up runner snapshotting

* Logging single percy snapshot that reflects proper viewport and overrides

* Updating describes to better match previous snapshot names

* Removing added snapshots to get more accurate better diff presentation in Percy

* Removing new runner.ui snapshots as well

* Adding a few PR recommendations. Updating one last spec name that was corrected for grammar and no longer matched. Updating/removing relevant TODOs.

* Updating to use anticipated default width for reporter

* Updating tests for consistency with previous snapshots

* Tying original command into promise chain

* Let's try that again

* Making percy command enqueuing explicit to test result

* Scoping down on some variables. Using defaults for sessions tests.

* Updating some overrides to see if visibility is handled inconsistently

* Whitespace vanquished, working session test updates back in for long command logs

* Viewport height is not reflected in snapshots, let's try forcing the height on the panel

* Forcing the height issue

* Let's try a minHeight on the percy command

* Cleaning up alterations made during percy exploration

* Trying to get a cleaner percy diff after merge

* Fix Percy to use 10.0-release branch as baseline image comparison

* add comments about temporary percy env vars

* Adding some doc for changes made to customPercyCommand

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@yahoo.com>
2022-02-17 18:29:44 -06:00
Tyler Biethman dd1bff8cab test: Porting runner's reporter error specs to app (#20000)
* Adding remaining reporter error tests.

* Removing existing integration spec file

* Removing existing runner fixtures for error specs

* Fixing ts lint

* Testing with less tests kept in memory

* Testing some cypress-in-cypress settings to improve run-mode performance.

* Reverting changes to doc_url specs

* PR Updates. Inverting default value for 'open in IDE' validation in an attempt to reduce test time.

* Cleaning up ported code

* Update system-tests/projects/runner-e2e-specs/cypress/fixtures/index.html

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>

* Trying build workaround

* Bumping up parallelized builds for app integration tests

* Removing suspicious tests to validate CI build

* Removing more suspicious tests to test CI

* Trying to not scaffold every navigation

* Bumping resources for run-app-integration job. Updating reporter.errors specs to appropriately reduce AUT refreshes.

* Couple API tweaks

* Removing unused helper from runner package; cleaning up a few things

* Updating yarn.lock

* Props isn't optional here.

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
2022-02-09 09:23:39 -06:00
Tyler Biethman dbe903095f fix(unify): Updating reporter to consistently use app-provided "Preferred Editor" dialog (#19933)
* fix(unify): Updating reporter to use consistent preferred editor dialog

Migrating helpers and initial tests to app from existing runner specs

* Simplifying reporter tests around IDE launch

* It'd help to open the stack trace

* Scoping util hooks

* Removing unnecessary spec project files

* Removing socket emit assertions from system test validation

* Condensing components further to better control tooltip presentation

* Updating runnables usage

Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-01-31 12:06:07 -06:00