Commit graph

418 commits

Author SHA1 Message Date
YuktiGoyal02
aa5806caee
Added environment permission UI and End-user cases (#15776)
* added environment UI and end-user cases

* pushed minor fix
2026-04-15 12:22:01 +05:30
Adish M
20b862e948
Merge pull request #15429 from ToolJet/test/image-component-automation
Add feature validations for image test app
2026-04-08 14:37:49 +05:30
ajith-k-v
d78392663a Add cypress test cases for byok support in AI 2026-04-07 17:47:26 +05:30
emidhun
e2dfbbdcfd fix: resolve CodeMirror element obstruction in postgres query editor test
Add force-click on .cm-content to pre-focus the CodeMirror field before
clearAndTypeOnCodeMirror runs its .realClick(). The "Primary key column-s"
field was covered by a flex layout container in the query editor panel.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 13:21:01 +11:00
emidhun
78d9ce225a fix: resolve failing marketplace specs for couchdb, graphql, smtp
- CouchDB: fix env var mismatch (couchdb_user → couchdb_username), add
  Database name to valid config, remove invalid port test (remote host
  TCP timeout)
- GraphQL: replace flaky cy.openApp() with API-only query execution
- SMTP: skip test 2 (Brevo SMTP credentials expired)
- Shared helper: unique intercept aliases per verifyDSConnection call,
  add API response assertion alongside UI toast, graceful
  connection-alert-text check

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 22:05:39 +11:00
ajith-k-v
b15da9bc2d Merge branch 'lts-3.16' into test/image-component-automation 2026-03-30 11:50:27 +05:30
emidhun
dcdfe4a6c9 fix: increase toast assertion timeouts for CI stability 2026-03-28 00:01:41 +11:00
emidhun
fb1ffe37f9 fix: add timeout to connection-alert-text selector in verifyDSConnection 2026-03-27 22:52:24 +11:00
emidhun
b294aff84a fix: mariadb spec - error messages, uncaught:exception, verifyDSConnection
- Add cy.on("uncaught:exception") handler for CodeMirror errors
- Add SSL certificate dropdown defaultValue: "None"
- Error messages: MariaDB wraps driver errors in generic
  "Database connection failed" (not specific MySQL-style errors)
- Remove invalidPort/invalidDatabase tests (no inline alert shown)
- verifyDSConnection: when customMessage provided, check inline alert
  only (skip toast); when no customMessage, check toast only
2026-03-27 17:03:28 +11:00
emidhun
e1db8228c3 fix: bigquery spec parseSpecialCharSequences and JSON5 error message
- Fix fillDSConnectionEncryptedField to use parseSpecialCharSequences:false
  preventing Cypress from interpreting { in JSON private keys as key sequences
- Update bigquery error assertion from "Unexpected token" to
  "JSON5: invalid character" matching current plugin JSON parser
2026-03-27 14:24:46 +11:00
emidhun
a82f598770 Merge remote-tracking branch 'origin/lts-3.16' into test/Cloud-storage 2026-03-26 20:07:40 +11:00
Midhun Kumar E
4bfc694d33
Marketplace pipeline test PR [Do not merge] (#15680)
* test

* fix: update MSSQL DNS error assertion and REST API datasource count for CI

* update Ds count

* test: update verifyDSConnection to use toast assertions (PR #15616)

TestConnection.jsx no longer renders inline status badges — success/failure
feedback is now via react-hot-toast. Update helper to:
- Success: assert toast 'Test connection verified' instead of test-connection-verified-text badge
- Failed: assert toast 'Test connection could not be verified' + keep connection-alert-text assertion for specific error messages
- Remove test-connection-failed-text assertion (element removed from UI)

* update timeout on toast
2026-03-26 12:21:08 +05:30
ajith-k-v
28781e50f4 Merge branch 'lts-3.16' into test/image-component-automation 2026-03-26 12:18:40 +05:30
emidhun
cd15f6706f Merge remote-tracking branch 'origin/lts-3.16' into test/marketplace-pipeline 2026-03-26 15:11:42 +11:00
emidhun
83daeca570 test: add GCS marketplace datasource Cypress spec and fix encrypted field typing 2026-03-26 10:38:48 +11:00
Midhun Kumar E
a0651a49c1
Update Cypress Marketplace workflow. (#15467)
* test

* final updates

* Remove CE from pipeline

* Update config

* fix: pass dataCy prop to ToggleV2 in FlipComponentDropdown

toggle-flip fields rendered via FlipComponentDropdown were not
receiving a dataCy prop, so ToggleV2 rendered without a data-cy
attribute. Now passes generateCypressDataCy(label) so toggle-flip
fields get the correct data-cy selector for Cypress tests.

* fix: update marketplace dataSource form helpers

- verifyToggleFieldUI: check both -label and -toggle-label selectors
- fillDSConnectionKeyValuePairs: use addMoreButton() instead of addButton()
- add fillDynamicSelectorFxMode for DynamicSelector fx fields
- add dynamicSelectorFx case to processFields switch

* fix: fix postgres marketplace Cypress spec

- constants: SSL → SSL/TLS, Database name → Database, fix placeholders
- constants: Primary key column(s) → Primary key column-s (cyParamName compat)
- constants: bulkUpdate schema/table as dynamicSelectorFx type
- spec: fix invalid port error message to current backend message
- spec: afterEach delete app before datasource, track appCreated flag
- spec: add pre-cleanup for orphaned apps

* fix: fix mysql marketplace Cypress spec

- constants: connection_type defaultValue Hostname → Manual connection
- constants: Database name → Database, fix host/port placeholders to manifest descriptions
- constants: SSL → SSL/TLS, isRequired false for username/database
- constants: remove SSL certificate from defaultFields (conditional field)
- spec: connection_type manual + protocol hostname in API payload
- spec: trim error messages to remove hardcoded server IPs

* fix: fix redis marketplace Cypress spec

* fix: fix mssql marketplace Cypress spec

- constants: add missing Connection type dropdown and Allow dynamic connection parameters toggle
- constants: fix host/port placeholders to manifest descriptions (localhost, 1433)
- constants: Database name → Database, isRequired false for database/username/password
- constants: Azure (encrypt connection) → Azure encrypt connection (manifest label)
- constants: add SSL/TLS toggle, remove SSH tunnel (conditional field)
- spec: add connection_type manual + SSL state keys in API payload
- spec: trim error messages to remove hardcoded IPs and timing values

* fix: fix mongodb marketplace Cypress spec

- constants: Database name → Database, fix placeholders to manifest descriptions
- constants: host/port isRequired true in manual branch (manifest required: true)
- constants: remove conditional TLS/SSL certificate dropdown from defaultFields
- constants: add missing Connection options keyValue, SSL/TLS toggle, SSH tunnel toggle
- constants: add missing Connection string encrypted field in connection string branch
- constants: remove hasEyeIcon from password-v3/password-v3-textarea fields (no eye icon)
- spec: add use_ssl and ssh_enabled state keys in API payload

* fix: fix elasticsearch marketplace Cypress spec

- constants: remove stale moment/moment import
- constants: remove hasEyeIcon from password field (password-v3 has no eye icon)
- spec: fix certificate fields encrypted flag to true in API payload
- spec: trim SSL EPROTO error message to stable partial "wrong version number"

* fix: update marketplace config specPattern to explicit datasources path

Replace **/*.cy.js glob with datasources/*.cy.js to scope the
marketplace test run to the datasources directory only.

* feat: migrate restAPI spec to datasources directory with new format

- move selectors/texts/utils to marketplace subdirectories
- update imports to use new marketplace paths
- replace cy.visit('/') with cy.viewport(1400,1600) in beforeEach
- fix cy.apiDeleteApp() to use UUID (no-arg form)
- fix datasource count assertions (44->45, APIs 22->23)
- replace fragile CSS-in-JS class selectors with stable data-cy selectors
- fix dropdown assertions: have.text -> contain.text for react-select
- fix SSL certificate label casing
- add scrollIntoView().first() for datasource button after reload

* fix: correct import casing for dataSourceForm helpers in datasource specs

Import paths used lowercase 'datasourceform' but actual filenames use
camelCase 'dataSourceForm', causing Webpack module-not-found errors on
Linux CI (case-sensitive filesystem).


* test

* update: cypress config

---------
2026-03-25 06:50:32 +05:30
Yukti Goyal
c91be31236 updated new host in all files 2026-03-18 15:30:35 +05:30
YuktiGoyal02
33d6813f74
Automation fixes (#15577)
* fixed all user page functionality falky case

* Fixed profile flaky case

* fixed minor issue
2026-03-16 22:04:23 +05:30
ajith-k-v
28b8b18305 Merge branch 'lts-3.16' into test/image-component-automation 2026-03-13 15:52:46 +05:30
ajith-k-v
39a96c5b34 update test case as per new flow 2026-03-13 15:22:00 +05:30
Ajith KV
9de55bfff8
Query panel automation (#15148)
* Add data-cy attirbutes for query manager components

* Update data-cy

* update data-cy

* update data-cy

* Add cypress test cases fro query panel

* update data-cy attribute

* Add data-cy for tjdb query components

* postgres query validation

* update cypress test and utils functions for postgres sql query

* update postgres query panel spec

* query preview

* Update postgres query spec

* update label data-cy

* update postgres query spec

* update data-cy

* update utils and selectors as per the data-cy changes

* update data-cy
2026-03-12 21:43:51 +05:30
ajith-k-v
13ee63b685 update test cases with common functions 2026-03-12 14:10:45 +05:30
ajith-k-v
ba7b1529b3 update test cases 2026-03-12 11:45:37 +05:30
ajith-k-v
f316be4be7 add zoom and rotate functionality validation 2026-03-05 18:03:53 +05:30
ajith-k-v
3e39755860 Add feature validations for image component 2026-03-04 17:49:52 +05:30
Yukti Goyal
d22a718b2f fixed data cy issue 2026-02-26 12:20:53 +05:30
Yukti Goyal
6d1e1f6e40 Merge branch 'lts-3.16' into test/Automation-fix-environment-permissions 2026-02-25 11:38:51 +05:30
Rudhra Deep Biswas
a0180c1bc3
Licensing Phase 2 (#14676)
* feat(otel): Add edition-based OpenTelemetry architecture

* Implement Enterprise Edition OpenTelemetry initialization

* init

* flag

* cloud

* cloud changes

* sso

* add IOtelListener interface for OpenTelemetry listeners

* feat(logging): Enhance OpenTelemetry logging details in startup info

* otel

* otel middleware

* fixed

* review changes

* fix

* server/src/otel/audit-metrics.ts

* fix for optional boolean in audut-metrics.ts

* refactor: remove redundant OpenTelemetry middleware application code

* refactor: use ES6 imports instead of require in tracing.ts

* added google and git

* Promote and Release for the app in phase 3 (#14872)

* Promote and Release for the app in phase 3

* fix after product review

* tooltip for app builder

* Removed extra variable

* Revert "tooltip for app builder"

This reverts commit b7079ab7d8.

* changes in BaseManageGroupPermissionResources

* fixed lint issues

---------

Co-authored-by: Pratush <pratush@Pratushs-MacBook-Pro.local>
Co-authored-by: Midhun G S <gsmithun4@gmail.com>

* fix: clean up formatting and whitespace in LicenseBase class

* fixed failed cases for license (#15242)

* feat: add customGroups, promote and release feature checks to license utility service

* fix: update group permission logic to exclude end user role

* fix: update granular permissions logic to include feature flag for custom groups

* fix: update permission logic to replace isBasicPlan with isEditable flag

* fix: update permission logic to use isEditable flag instead of isBasicPlan

* fixed failed case

* fix: correct formatting in BASIC_PLAN_TERMS features section

* bump version from 3.20.103-lts to 3.20.104-lts in all components

---------

Co-authored-by: adishM98 Bot <adish.madhu@gmail.com>
Co-authored-by: Pratush <pratush@Pratushs-MacBook-Pro.local>
Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
Co-authored-by: Pratush Sinha <104584767+Pratush613@users.noreply.github.com>
Co-authored-by: YuktiGoyal02 <100783212+YuktiGoyal02@users.noreply.github.com>
Co-authored-by: Shantanu Mane <maneshantanu.20@gmail.com>
Co-authored-by: Yukti Goyal <yuktigoyal02@gmail.com>
2026-02-24 21:53:13 +05:30
emidhun
2ffd1fdf81 Fix automation failures 2026-02-24 20:45:18 +11:00
Mekhla Asopa
6475a29f59
Update data-cy for platform automation (#15082)
* update data-cy for platform automation

* update data-cy for page setting

* update data-cy for public app
2026-02-24 10:49:54 +05:30
Yukti Goyal
3f690a8e1d fixed review comments 2026-02-16 20:31:44 +05:30
Yukti Goyal
a3abcc3f2b added cases for admin and builder env permission 2026-02-12 13:58:00 +05:30
Manish Kushare
47712bcf9a
Fix: Update right panel behavior and styles for better usability (#15165)
* Fix: Update right panel behavior and styles for better usability

* update test cases for new disabled CSS class implementation

---------

Co-authored-by: ajith-k-v <ajith.jaban@gmail.com>
2026-02-04 15:00:17 +05:30
vjaris42
ccce27a4f3
Fix: enable end user to have non-released enviroment access in paid plans (#15057)
* fix: enable end user to have non-released enviroment access in paid plans

* fix: public access logic

* fix: preview header

* fixed automation failing case

* fix: default env permissions

* fix: modules loading

* Fixing the redirect for apps preview

* bump version

---------

Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
Co-authored-by: Yukti Goyal <yuktigoyal02@gmail.com>
Co-authored-by: Siddharthpl <siddharthpundir73@gmail.com>
2026-01-30 19:21:35 +05:30
Siddharth Pundir
c29dfde7f8
Adding the organizational slug in the signup redirect url (#15048)
* Adding the organizational slug in the signup redirect url

* Fixing the signup redirect logic for user access urls

* Fixed signup flow

* Fixing the redirect logic for preview apps for signup

* chore: update version to 3.20.77-lts

---------

Co-authored-by: Yukti Goyal <yuktigoyal02@gmail.com>
Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2026-01-24 11:46:34 +05:30
Siddharth Pundir
41e5792bc7
Feat: add builder access control for themes (#14555)
* feat: add builder access control for themes

* Submodule conflict resolved

* Fixed user was able to see workspace setting page

* Resolving submodule conflict

* Fixed the base url for builder

* fixed builder permission failed cases

* fixed flaky case

* Fixed the workspace setting url for end-user

* removed verify theme step

* bump version from 3.20.66-lts to 3.20.67-lts

---------

Co-authored-by: Yukti Goyal <yuktigoyal02@gmail.com>
Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2026-01-12 21:59:56 +05:30
Srimanitejas123
522be441b6 Merge branch 'lts-3.16' into test/preview-disabled-for-released-apps 2026-01-07 11:38:57 +05:30
Vijaykant Yadav
4ebb8d7b40 Merge branch 'lts-3.16' into feat/env-permissions 2026-01-05 22:03:12 +05:30
Adish M
0dbf071c5f
Merge pull request #14850 from ToolJet/feat/Added-password-domains
Added allowed and restricted domain for password login and signup.
2026-01-05 21:57:07 +05:30
Vijaykant Yadav
035f1044d8 Merge branch 'lts-3.16' into feat/env-permissions 2026-01-05 21:09:37 +05:30
Yukti Goyal
5094876dc5 Merge branch 'feat/env-permissions' into test/Automation-fix-env-permission 2025-12-31 14:39:42 +05:30
Yukti Goyal
7a5e7e26ca fixed permission modal issues for app environment changes 2025-12-31 10:51:51 +05:30
Yukti Goyal
6a24604b7a updated allowed domain changes 2025-12-31 00:29:46 +05:30
Mekhla Asopa
a0cf8512d5 added datasource config 2025-12-24 05:49:37 +05:30
Mekhla Asopa
4829128a89 Update config for checkbox 2025-12-22 11:13:08 +05:30
ajith-k-v
438ae2b8ba Merge branch 'test/platform-subpath-deployment-test' into test/platform-subpath-deployment-test-dummy 2025-12-18 14:06:01 +05:30
ajith-k-v
e28d8762e9 Update the config and selectors 2025-12-17 16:47:59 +05:30
Mekhla Asopa
2b7234f786 fixed failed specs 2025-12-17 03:46:52 +05:30
Mekhla Asopa
45397cff66 updated method and data-cy for form fill 2025-12-15 21:29:49 +05:30
Srimanitejas123
082139bb0d added assertion for preview option in released apps 2025-12-15 12:16:21 +05:30