cypress-skip-and-only-ui icon indicating copy to clipboard operation
cypress-skip-and-only-ui copied to clipboard

Clicking on "run only this test" overwrites entire test file with "undefined"

Open IvanBioRender opened this issue 5 years ago • 0 comments
trafficstars

After clicking on "Run only this test", my entire .spec.ts file is overwritten by undefined:

overwritten

Cypress logs:

[16375:1203/110944.313207:INFO:CONSOLE(54220)] "ui title", source: http://localhost:3001/__cypress/tests?p=cypress/support/index.ts-632 (54220)
[16375:1203/110944.313576:INFO:CONSOLE(54220)] "ui title", source: http://localhost:3001/__cypress/tests?p=cypress/support/index.ts-632 (54220)
[16375:1203/110944.313660:INFO:CONSOLE(54222)] "found matching test", source: http://localhost:3001/__cypress/tests?p=cypress/support/index.ts-632 (54222)
[16375:1203/110944.343448:INFO:CONSOLE(54220)] "ui title", source: http://localhost:3001/__cypress/tests?p=cypress/support/index.ts-632 (54220)
[16375:1203/110944.343520:INFO:CONSOLE(54222)] "found matching test", source: http://localhost:3001/__cypress/tests?p=cypress/support/index.ts-632 (54222)
[16375:1203/110944.346556:INFO:CONSOLE(54220)] "ui title", source: http://localhost:3001/__cypress/tests?p=cypress/support/index.ts-632 (54220)
[16375:1203/110944.346625:INFO:CONSOLE(54222)] "found matching test", source: http://localhost:3001/__cypress/tests?p=cypress/support/index.ts-632 (54222)
[16375:1203/110944.348359:INFO:CONSOLE(54220)] "ui title", source: http://localhost:3001/__cypress/tests?p=cypress/support/index.ts-632 (54220)
[16375:1203/110944.348426:INFO:CONSOLE(54222)] "found matching test", source: http://localhost:3001/__cypress/tests?p=cypress/support/index.ts-632 (54222)
[16375:1203/110944.349662:INFO:CONSOLE(54220)] "ui title", source: http://localhost:3001/__cypress/tests?p=cypress/support/index.ts-632 (54220)
[16375:1203/110944.349715:INFO:CONSOLE(54222)] "found matching test", source: http://localhost:3001/__cypress/tests?p=cypress/support/index.ts-632 (54222)
[16375:1203/110944.350877:INFO:CONSOLE(54220)] "ui title", source: http://localhost:3001/__cypress/tests?p=cypress/support/index.ts-632 (54220)
[16375:1203/110944.350928:INFO:CONSOLE(54222)] "found matching test", source: http://localhost:3001/__cypress/tests?p=cypress/support/index.ts-632 (54222)
[16375:1203/110944.352115:INFO:CONSOLE(54220)] "ui title", source: http://localhost:3001/__cypress/tests?p=cypress/support/index.ts-632 (54220)
[16375:1203/110944.352167:INFO:CONSOLE(54222)] "found matching test", source: http://localhost:3001/__cypress/tests?p=cypress/support/index.ts-632 (54222)
[16375:1203/110955.032083:INFO:CONSOLE(54165)] "onClickOnly", source: http://localhost:3001/__cypress/tests?p=cypress/support/index.ts-632 (54165)
onlyTests in spec [...]/cypress/integration/teams.spec.ts

Good thing I didn't lose any work this time, but maybe a warning that this may not be stable could be good.

IvanBioRender avatar Dec 03 '19 16:12 IvanBioRender