Commit graph

67 commits

Author SHA1 Message Date
Akshay
c24a87d43a
Merge pull request #7311 from ToolJet/test/add-automation-for-azure-blob-storage
Added automation for azure blob storage
2023-08-22 18:39:13 +05:30
Mekhla Asopa
432c319c95 Updated spec 2023-08-22 16:33:16 +05:30
Mekhla Asopa
bd1541a12e Added spec for azure blob storage 2023-08-19 01:32:41 +05:30
Midhun Kumar E
cbb73a5797
Platform v3 automation fixes. (#7274)
- Fix failing specs.
- Add verification for constants on inspector.
- Add verification on queries.
2023-08-17 16:34:38 +05:30
Mekhla Asopa
b5fbad4d26
modify cypress specs (#7268) 2023-08-16 12:46:38 +05:30
Johnson Cherian
55cdc7a0b5
Query manager revamp (#6680)
* global store init

* Moved query data to new component

* Removed unwanted code

* Removed data queries prop drilling

* Moved query state out of editor

* Added unsafe to componentWillReceiveProps

* Selected first query when the version is changed

* Fixed bug on renaming query

* Fixed issue on dark theme

* Fixed running query on page load in viewer

* Query manager refactor init

* Added global data source in store

* Disabled devtools on production

* Fixed bug on selecting query after deletion

* Reset store when editor is loaded

* Moved query manager to functional component

* Fixed conflict issues

* Fixed infinite loop on tooljetDB

* Set the store name and updated devtools logic

* Fixed issue on displaying draft query from data sources

* Updated comments on the store

* Fixed bug on changing data source and creating query from data source

* Fixed bug on showing unsaved changes popup

* Fixed issue on showing confirmation modal everytime without any changes

* feat: autosave data query functionality

* feat: show publish button only when the status in draft state

* Fixed issues on query renaming

* feat: removed discard popup for data query create/edit widget

* stye: reduced autosave api call timeout and added draft tag

* feat: added minor style changes

* feat: fixed issues with restapi plugin, removed unused api calls

* fix: fixed issue that breaks restapi creation

* fix: reload selected query details after update query

* perf: reduced debounce time for data query update apis

* feat: removed full reloading of query list on query renaming

* feat: duplicate data query feature added

* Fixed issue on creating restAPI query

* fix: fixed issue in transforming response from update queyr api

* fix: refresh selected query details when the selected query is updated

* fix: rename query on click enter

* fix: full refresh of query list on update

* fix: style changes

* fix: subscribing to state to autsave

* feat: updated the query manager styles to new design

* feat: revamped the querypane header buttons

* fix: fixed the padding for query panel maximize button

* feat: updated search box style

* refactor: moved function to render data source icon to its own component

* fix: fixed querymanager widget breaking issue

* merged with feat/query-manager-autosave

* refactor: removed unused consoles

* refactor: removed unused consoles

* refactor: removed unused consoles

* fix: removed commented code

* fix: removed unused code

* refactor: removed unused comments

* fix: show change datasource select only if valid ds available

* Update frontend/src/Editor/Inspector/EventManager.jsx

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* Update frontend/src/Editor/QueryManager/Components/DataSourceLister.jsx

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* Update frontend/src/Editor/QueryManager/Components/DataSourceLister.jsx

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* Update frontend/src/Editor/QueryManager/Components/QueryManagerBody.jsx

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* feat: modify behaviour of search icon in query panel

* fix: fixed theme color mismatch in query manager

* refactor: remove dead code

* refactor: updated theme for data source listner

* fix: theming in filter and sort popup

* refactor: remove unused variables

* fix: removed draftQuery logic from query manager

* refactor: removed unused varibales

* Update frontend/src/Editor/QueryManager/QueryEditors/Restapi/TabParams.jsx

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* Update frontend/src/Editor/QueryPanel/QueryCard.jsx

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* feat: diable preview for draft queries

* fix: added tooltip for query panel button

* fix: fixed issues in saving query manager events

* fix: moved query save subscriber to QuerPanel component

* feat: converted query run api to save and run

* fix: made varibale an optional param in updateDataQuery dto

* refactor: cleanup update dataquery status api response

* refactor: moved query status to constants file

* feat: prompt for queryname when creating new query

* fix: store new queryname in state on create query pageload

* fix: fixed alignment of Tooljet db component form

* fix: correct translation and format file

* refactor: removed consoles

* merge: merge appbuilder-1.2

* style: updated rename input/button UX

* style: revamped dataquery create widget styles

* style: revamped data source selector styles

* fix: removed code added for debugging

* style: updated data query filter design

* style: Add prop to control visibility of clear button in search box

* style: implement new style for query filter

* merge appbuilder-1.2 to feat/query-manager-sort-filter

* refactor: remove unintended file change

* fix: set default value for method in respapi

* style: updated copilot info popup style

* style: updated quer panel header icons

* style: updated button styles

* style: fixed query manager button styles

* style: smoothened query preview modal view

* fix: correct import for some funs

* fix: fixed minor UX bugs

* style: fixed styling of REST api GDS

* style: fixed styleing of sort and filter popup

* style: improved data queries sort filter UI/UX

* fix: remove click listner when overlay is closed

* fix: moved component declaration out of parent component

* fix: set selected datasource for default sources

* fix: filter DS based on saerch in create dropdown

* fix: restrict draft query running to preview mode

* fix: query renamed on input change in create screen

* fix: set name to state as soon as user renames query

* fix: make query notification message consistent

* style: correct s3 bucket plugin layout config

* fix: fixed issues with cloning of Static DS queries

* fix: made change so that newly created query is reflected immediatly

* style: updated spacing for query manager components

* fix: hide rename input when no query selected

* fix: check bothe selected query and DS before rendering query manager

* fix: set isSaving to true only for api calls in querymanager

* fix: added success message form in qm

* fix: filter out draft queries from viewer on running

* fix: fixed inconsistent gutter for runpy and runjs editors

* fix: reload dataqueris on LDS deletion

* fix: redesigned filter/sort popup

* fix: fixed issue that resets filter on search

* fix: fixed query manager breaking on plugin select

* fix: diable json preview for text output

* fix: reset to filter and sort main menu on close filter popup

* refactor: rename varibales

* stye: redesigned query create panel

* feat: revert data query status column from backend

* style: redesign query picker section

* refactor: removed dead code

* style: querypanel expand/collapse btn style

* style: add query select and query filter popup style redesign

* style: updated filter popup style

* feat: removed draft query checks everywhere

* style: empty dataqueries style changed

* style: updated query selector popup and rest options styles

* style: removed 100% height to query option remove btn

* feat: added the query runnable status check

* style: updated query manager footer style

* feat: changed DS filter from kind to DS ID

* style: minor ui tweaks in filter popup

* style: disable DS filter if no DQs created

* style: minor ui change

* fix: rerender filter popup post DS api call. fixed rest api copy feature

* fix: add local DS to filter popup

* refactor: removed dead code/comments

* add new row is crashing when no data is fed to table (#7102)

* fix: fixed condition that blocked GDS run on load

* fix: revert name back to og name if update fails in rename query

* feat: added tooltip for show query btn

* fix: added click interaction for pill btn as well

* fix: minor UI tweaks to make UX better

* style: fixed the styling of filter popup

* style: minor UI tweaks in query filter popup

* fix: fixed minor css issue in ds picker

* style: wrap overflowing text in queryname

* fix: update updated_at after query update api call success

* fix: update remove the caller query from event query dropdown

* style: minor ui spacing tweaks

* fix: fix issue that cuased app crash when tjdb opened

* fix: fixed update row styles

* fix: fixed info popup dark theme bg

* fix: fixed headers styling according to general QM styles

* style: fixed stripe QM UI

* fix: added tooltip for quernames

* feat: add tooltip for select ds options

* added consoles to debug debugger issue

* fix: fixed :active style of ds select dropdown in QM

* fix: fixed DS kind name in data source selector in QM

* fix: fixed border color mismatch for ds select dd

* fix: change tooltip msg for maximize/minize QM

* Fix automation for query manager revamp. (#7223)

* Add data-cy to support modified specs

* Fix event handler

* Fix RunPy and RunJS specs

* Fix event handler label

* Fix basic components spec

* Fix basic components failure

* Fix tabel spec failure.

* Fix runjs and runpy actions

* Fix table column options

* Add data-cy

* version: version updated to 2.13.0

* Version bump

---------

Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>
Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
Co-authored-by: Manish Kushare <37823141+manishkushare@users.noreply.github.com>
Co-authored-by: Midhun Kumar E <midhun752@gmail.com>
2023-08-09 18:01:48 +05:30
Mekhla Asopa
26aede09d0
Fix cypress failure for postgres and snowflake (#7219)
* Fix cypress failure

* Fix snowflake cypress failure

* Updated datasource text

* Updated case name
2023-08-08 15:13:39 +05:30
Midhun Kumar E
c789289b19
Fixed cypress App Builder for v2.10.3 (#7118)
* Fix cypress for v2.10.3

* Remove only

* modify the expossed values count

* fix common methods

* Version modified
2023-07-25 13:51:49 +05:30
Midhun Kumar E
7355218b66
Fix failing specs on app builder 1.2 (#7068)
* fix common methods

* fix filures and add validation for new expossed values

* Remove .only
2023-07-20 20:38:33 +05:30
Midhun Kumar E
1b272b53f4
Fixed cypress for app builder on Platform v1.1 (#6993)
* App Builder cypress fix

* Revert typo

* Fix for hotfix failures

* Fix for canvas height

* Fix for runPy

* Fix for popover

* Fix for popover-2

* Fix for table column issue

* Fix inspector

* fix versions
2023-07-12 13:29:13 +05:30
Midhun Kumar E
cab4c5cc37
Fixed cypress for v2.9.0 app builder. (#6912)
* Add new specs to the suite

* Fix new CSAs

* Fix common methods

* Fix appbuilder automation spec failures

* Fix import spec

* Add fix for button spec

* Add fix for button position

* Add fix for table and codehinder
2023-07-05 12:58:09 +05:30
Mekhla Asopa
6c95d3eb06
Added csa action automation (#6910) 2023-07-05 12:57:42 +05:30
Mekhla Asopa
f1062429a0
Added csa action automation (#6863) 2023-07-03 16:20:29 +05:30
Mekhla Asopa
553d067237 Merge branch 'develop' into test/add-cypress-for-table-new-features 2023-06-22 17:11:03 +05:30
Midhun Kumar E
a2a70ec737
Fixed cypress app builder v2.7.0 (#6796)
* Fix table and database specs

* Fix toast issue

* Fix toast delay
2023-06-21 08:38:40 +05:30
Midhun Kumar E
e4a0a33f09
Fix cypress failures (#6792) 2023-06-20 19:20:49 +05:30
Ajith KV
fa243e0f83
Fixed workspace cypress v2.7.0 (#6781)
* Fix failing workspace specs

* Fix dashboard and share app test cases

* skip public app test case in Share app spec
2023-06-20 12:58:58 +05:30
Midhun Kumar E
d2d25e191e
Add automation for global settings (#6664) 2023-06-15 14:10:19 +05:30
Mekhla Asopa
49dcbb2b19 Added method for add new row and dynamic column 2023-06-14 03:49:19 +05:30
Mekhla Asopa
ecbdf3a191 Merge branch 'develop' into test/add-cypress-for-table-new-features 2023-05-31 00:50:36 +05:30
Mekhla Asopa
91402c1ae5 Add dynamic column method 2023-05-31 00:49:14 +05:30
Midhun Kumar E
a202d62768
Added automation for runPy (#6590)
* Initial Utils and spec

* Add automation for set and unset variable

* Add validations for globals, and rename

* Modify config file

* Add all the fixes

* Revert config

* Add automation for runPy
2023-05-30 13:06:52 +05:30
Midhun Kumar E
763b1eaa27
Added automation for runjs (#6536)
* Initial Utils and spec

* Add automation for set and unset variable

* Add validations for globals, and rename

* Modify config file

* Add all the fixes

* Revert config
2023-05-30 10:32:10 +05:30
Sherfin Shamsudeen
0fbfd12bbe Merge branch 'main' into merge-back/2.6.0 2023-05-23 16:00:10 +05:30
Ajith KV
21b2afebca
Modify datasource cypress spec (#6494) 2023-05-22 17:52:28 +05:30
Midhun Kumar E
86fad66ce7
Fix for failing specs on release branch (#6438)
* Fix multipage failure

* Fix config

* Fix text spec

* Add versions to the suite

* Fix password and versions spec

* Revert config

* Fix password and listview

* Fix versions with temp fix

* fix all failures.

* add retry

* revert button fix

* Add workspace specs to the suite
2023-05-18 13:41:41 +05:30
Midhun Kumar E
e21de08794
Fixed cypress for v2.6.0 (#6430)
* Add data-cy for the event handler input fields (#6382)

* Added automation for inspector. (#6380)

* Add utils for inspector node verification

* Add inspector verification spec

* Add verification for inspector buttons

* Fix cypress failure

* update toast message

* Modify Config

---------

Co-authored-by: Mekhla Asopa <dadhichmekhla@gmail.com>
2023-05-17 12:14:03 +05:30
Akshay
366b44b35d
Merge pull request #6377 from ToolJet/test/fix-version-and-database-cypress-spec-failure
Modified version and database cypress spec failure
2023-05-16 17:35:57 +05:30
Midhun Kumar E
07e31ed5de
Added automation for inspector. (#6380)
* Add utils for inspector node verification

* Add inspector verification spec

* Add verification for inspector buttons
2023-05-16 14:43:56 +05:30
Ajith KV
5ab569bf1a
Fixed datasource connection cypress test cases (#6371)
* Fix and modify datasource connection

* Modify config files

* Fix snowflake test cases

* Data sourcce count

* fix postgres error message
2023-05-15 09:48:09 +05:30
Mekhla Asopa
8e3fbf5fac Fix cypress failure 2023-05-12 16:10:16 +05:30
Midhun Kumar E
6f1e11ebca
Added automation for CSA (#6342)
* Add CSA for table

* Add CSA for button

* Add CSA for textinput

* Remove it.only

* Add CSA for text

* Add CSA for modal

* Add CSA for multiselect

* Add CSA fix for text input
2023-05-10 18:36:42 +05:30
Midhun Kumar E
ea3299574a
Fixed Editor cypress v2.5.0 (#6213)
* Fix for 2.5.0/Editor

* Minor selector fix

* Fix cinfig

* Fix cypress.yml

* revert cypress.yml changes

* Testing config changes

* Temp  changes

* revert Temp  changes

* Add screenshot verification and wait

* test screenshot on deletion

* Modify component delete util

* Fix config

* Fix for app deletion

* Test Table regression

* Fix table issue

* Fix table type issue

* Fix typo

* Fix clear via type

* Test fix for column input

* Test fix for column input 2

* Update cypress-run.config.js

* Remove spec skips

* Fix versions

---------

Co-authored-by: Adish M <44204658+adishM98@users.noreply.github.com>
2023-05-03 11:51:56 +05:30
Midhun Kumar E
9e63783eff
Fix failing specs (#6157) 2023-04-27 08:01:37 +05:30
Mekhla Asopa
e81a7d5c51 Fix cypress failure 2023-04-25 15:37:18 +05:30
Midhun Kumar E
8e65eabb70
Fix failing cypress specs. (#6099)
* Fix modal and basic specs

* Alert input fix

* Modify config
2023-04-24 16:33:27 +05:30
Akshay
3a2242718e
Merge pull request #5906 from ToolJet/test/fix-cypress-failure
Update automation script for export, import and version functionality
2023-04-17 14:50:27 +05:30
Midhun Kumar E
12b28e0ac6
Added automation for modal component (#6001)
* Add utils

* Modify common functions

* Add spec
2023-04-12 12:54:54 +05:30
Mekhla Asopa
ff329e4336 Fix cypress failure 2023-04-11 19:00:37 +05:30
Midhun Kumar E
b5acc1630c
Test/fix cypress editor v2.3 (#5914)
* Fix specs

* Modify config

* data-cy changes -temp

* Fix common component-fixes

* Fix latest failures [table,listView]

* Minor typo fix

* Fix the headless failures

* temp workflow changes

* Temp cypress yml changes

* Remove temp changes
2023-04-10 11:17:25 +05:30
Midhun Kumar E
24ef6a1f73
Added automation for mongoDB queries (#5810)
* init

* Add spec

* Add DS common utils

* Add mongoDB utils
2023-03-22 16:11:42 +05:30
Mekhla Asopa
96da078566
Added automation for app version functionality (#5771)
* Added data-cy for edit version

* Added method to verify elements

* added spec for version

* Added relese test cases

* Added case for delete released version
2023-03-20 10:43:24 +05:30
Midhun Kumar E
786e3a2707
Updated DS specs to pass on GitHub actions (#5634)
* Modify data-cy common

* Update constants

* Delete unused file

* Update specs

* Update utils and common specs

* Skip  specs

* Update gitignore
2023-03-06 12:13:47 +05:30
Midhun Kumar E
c3eb99f23a
Added automation for table filter (#5641)
* Add utils for filter

* Add spec

* Remove it.only

* Config change

* Revert config changes

* Modify config

* Fix Syntax on config.

* Typo fix
2023-03-06 12:09:58 +05:30
Midhun Kumar E
a7673e7394
Add automation for mysql queries (#5710)
* Add cypress realevents to cypress

* Add constants and selectors

* Add and modify utils

* Add spec changes
2023-03-06 12:09:27 +05:30
Midhun Kumar E
3e5379feb7
Fixed Component automation on actions (#5585)
* Config changes

* Fix editor/components specs

* Remove it.only
2023-02-21 14:29:23 +05:30
Midhun Kumar E
420d5373c6
Added automation for Multipages. (#5584)
* Add selectors and texts

* Add utils

* Add spec
2023-02-21 12:58:19 +05:30
Midhun Kumar E
b53156a42c
Added automation for table data download (#5550)
* Add data-cy for download

* Add spec changes

* Add task to read pdf and xlsx

* Add methods to parse constant data

* Fix typo

* Add tasks to cypress-run config

* Fix typo on config

* Fix typo on manage SSO

* Remove only from table spec
2023-02-14 14:04:20 +05:30
Midhun Kumar E
0d32857149
Add automation for DSs (#5512) 2023-02-09 10:48:20 +05:30
Midhun Kumar E
49f977b36c
Table automation enhancement (#5514)
* Add table utils

* Modify common utils

* Add new test cases

* Remove skip
2023-02-09 10:47:19 +05:30