PromucFlow_constructor/app/client/cypress
Mihir Joshi bce5a0c7c5
chore: Linter check for dangling it.only tests (#23991)
## Description
Dangling it.only tests skips other tests in the file and reduces our
test coverage.

Added rule in .eslintrc to detect it.only calls in test files.
Cypress tests are named as `*_spec.js`, `*_Spec.js`, `*_spec.ts` and
`*_Spec.ts`, whereas other tests follow the `*.test.js|ts|jsx`
convention. So, I added this rule differently for Cypress and Default
ESLint configuration.

#### PR fixes following issue(s)
Fixes #23708

#### Media

#### Type of change
- Chore (housekeeping or task changes that don't impact user perception)

## Testing
>
#### How Has This Been Tested?
- [X] Manual

Test Cases:
- Cypress: Button_Text_WithRecaptcha_spec.js contains it.only test,
which starts getting detected by ESLint after this change.
- Default: Randomly picked files (which has *.test.js, *.test.ts, or
*.test.tsx extensions) and changed some it tests to it.only tests. All
these cases where detected by ESLint after this change.

#### Test Plan
> Add Testsmith test cases links that relate to this PR
>
>
#### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)
>
>
>
## Checklist:
#### Dev activity
- [X] My code follows the style guidelines of this project
- [X] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [X] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


#### QA activity:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Test-plan-implementation#speedbreaker-features-to-consider-for-every-change)
have been covered
- [ ] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans/_edit#areas-of-interest)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [ ] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [ ] Cypress test cases have been added and approved by SDET/manual QA
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed

---------

Co-authored-by: Mihir <mihir.joshi@senpiper.com>
2023-06-06 17:40:44 +05:30
..
e2e fix: Autocomplete trigger changes (#24025) 2023-06-06 14:22:16 +05:30
fixtures fix: Add support for xls,json,tsv file types in file widget (#23159) 2023-06-06 08:53:45 +05:30
locators feat: Adds support for showing navbar in embedded view. (#23725) 2023-06-05 19:37:39 +05:30
manual_TestSuite feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
patches test: Script updates for flaky fixes (#16143) 2022-08-24 19:53:41 +05:30
plugins feat: ci changes & cypress tests with cypress tags (#22989) 2023-05-12 00:15:06 +05:30
snapshots feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
support feat: Adds support for showing navbar in embedded view. (#23725) 2023-06-05 19:37:39 +05:30
.eslintrc.json chore: Linter check for dangling it.only tests (#23991) 2023-06-06 17:40:44 +05:30
apply-patches.js chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
cypress-docker-compose.yml ci: Add lint check to the build step (#21442) 2023-03-20 22:50:44 +05:30
index.ts test: Automated few tests for AForce Migration scenarios + Flaky fixes (#12231) 2022-03-31 17:21:08 +05:30
init-mssql-dump-for-test.sql test: Cypress - Automated basic tests for MsSQL DS (#21446) 2023-03-16 23:58:32 +05:30
init-mysql-dump-for-test.sql feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
init-pg-dump-for-test.sql Using local Postgres database instead of remote (#6241) 2021-07-30 11:41:14 +05:30
limited-tests.txt test: Auto Layout uncovered test cases (#23626) 2023-05-29 14:28:02 +05:30
package.json test: Cypress version upgrade Cy 11.2 + Flaky fixes (#23667) 2023-05-24 18:00:39 +05:30
setup-test-ci.sh ci: run fat container docker inside perf tests and update setup-perf-test workflow to use localhost for accessing dev environment (#20280) 2023-02-07 15:56:41 +05:30
setup-test.sh test: Cypress migration to TED GITEA (#18799) 2023-02-15 01:12:45 +05:30
test.sh feat: Bundle optimization and first load improvements (#21667) 2023-05-11 10:56:03 +05:30
tsconfig.json chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
xataadd.sh ci: Comment failing tests to PR (#18450) 2022-12-19 16:23:39 +05:30
xatadel.sh ci: Comment failing tests to PR (#18450) 2022-12-19 16:23:39 +05:30