Commit Graph

320 Commits

Author SHA1 Message Date
Rory Powell bcc9374e77 Merge pull request #8684 from Budibase/test-updates
Fail pro scripts on error, unify TS versions, update test and coverage configs, use pro source mappings
2022-11-15 16:09:20 +00:00
Rory Powell 9973f2e161 Bump jest and ts-jest to be consistent across backend packages to fix CI issue, test config updates 2022-11-14 22:55:47 +00:00
Rory Powell 5da699e27c Fail pro scripts on error, unify TS versions, update test and coverage configs, use pro source mappings 2022-11-14 13:29:46 +00:00
Pedro Silva e583349565 Remove logic from endpoint methods 2022-11-10 09:45:02 +00:00
Pedro Silva 4fde16d55b Fix duplicated name failure 2022-11-09 17:05:05 +00:00
Pedro Silva 604260f622 Add test for AppPackage 2022-11-09 16:05:15 +00:00
Pedro Silva c53e5ed886 Improve stability of tests 2022-11-08 18:06:53 +00:00
Pedro Silva a3cdb8eb83 Move assertion to endpoint definition 2022-11-07 15:48:24 +00:00
mike12345567 19669575e4 Fixing issue with self host build - import of backend-core changes mean that loading the public API files can require setup of backend-core, making it so that the JWT Strategy doesn't need to be setup to load backend-core. 2022-11-01 12:59:10 +00:00
Pedro Silva b9bd007a0b Add missing test to app flow 2022-10-28 16:48:29 +01:00
Rory Powell 9face50a07 Fix build failure around PouchDB type 2022-10-25 09:02:55 +01:00
mike12345567 724a23da2c Merge branch 'develop' of github.com:Budibase/budibase into feature/app-backups 2022-10-24 16:51:53 +01:00
mike12345567 e1dca87507 Fixing test case. 2022-10-21 18:52:39 +01:00
Pedro Silva 664c2af408 Fix some tests after merge 2022-10-20 17:48:05 +01:00
Pedro Silva ec958f3804 Merge branch 'develop' into api-tests-tables 2022-10-20 17:37:46 +01:00
Pedro Silva d3337a0219 Improvement from PR comments 2022-10-20 15:31:10 +01:00
Pedro Silva 2a4eedcf38 Fix EOF 2022-10-19 10:42:57 +01:00
Pedro Silva f328280cb1 Requested changes 2022-10-19 10:35:00 +01:00
Pedro Silva bbd42b4db3 Remove unecessary const 2022-10-18 17:34:19 +01:00
Pedro Silva 814670cbed Add operations on rows and columns 2022-10-18 17:29:13 +01:00
Pedro Silva eb1e85fb46 Add Table endpoints 2022-10-17 18:20:40 +01:00
Pedro Silva 7053472347 Fix extra declarations 2022-10-13 15:18:36 +01:00
Pedro Silva 185d55a3f4 Refactor create app 2022-10-13 14:58:23 +01:00
Mitch-Budibase 9eb0714033 Small changes based on PR feedback
As per some of the comments on the PR:
- Renaming createScreen & deleteScreen to create & delete as they are on the screens namespace
- Updating a test within create.spec.js (applications) for when a screen is generated
- Improvements to the current screens tests (removing unnecessary `expect` lines & updating the for loop for the create screens test)
2022-10-12 17:48:33 +01:00
Mitch-Budibase 3c25763bd9 Merge branch 'develop' into api-screens 2022-10-12 16:53:47 +01:00
Rory Powell 6e083c85a4 Fix linting 2022-10-12 10:25:02 +01:00
Pedro Silva 4090dd2dfe Add types for Responses 2022-10-11 16:47:02 +01:00
Pedro Silva 07359370e6 Fix Identation 2022-10-11 16:24:43 +01:00
Pedro Silva dd914d31db Remove Test and fix types 2022-10-11 16:21:05 +01:00
Pedro Silva 8ce7ca1bb2 Add types for response 2022-10-11 15:08:08 +01:00
Pedro Silva 2f5ab092fe Add test for appDefinition 2022-10-11 15:06:04 +01:00
Mitch-Budibase b301adbd88 API Screens - Updating create screen test
The create screen tests will now create a screen with each available role type
- The types are: BASIC, POWER, ADMIN, PUBLIC
2022-10-10 17:44:19 +01:00
Mitch-Budibase 6aa0d41eb2 API Screens - Fetch screens test
Additional test to fetch screens.
- To confirm the screen was created i am checking `routes`
- It will then confirm the route with the screen exists - in this case the route is `/test` (as determined when the screen is created)
2022-10-10 17:27:55 +01:00
Mitch-Budibase d52c9a5cfb Merge branch 'develop' into api-screens 2022-10-10 15:40:03 +01:00
Mitch-Budibase 43eab991f1 API: Screens - Add and Delete Screen
Screens API tests
- This includes adding a basic screen and deleting a screen
2022-10-10 15:39:02 +01:00
Pedro Silva 12eb99600d Remove comment 2022-10-10 14:39:12 +01:00
Pedro Silva e55d116c5e Fix revert test with 400 status 2022-10-10 14:24:34 +01:00
Martin McKeaveney 052bc0aeed ensure correct revert endpoint being hit, update call to revert 2022-10-09 19:31:35 +01:00
Pedro Silva 970ba0315e Add tests for revert endpoint 2022-10-07 18:05:58 +01:00
Pedro Silva ea02929130 Add tests for endpoints 2022-10-07 12:19:00 +01:00
Pedro Silva ea8122d5a0 Add missing applications endpoints 2022-10-04 17:12:38 +01:00
Pedro Silva dbfcdb70d5 Merge branch 'develop' into api-create-app 2022-10-04 16:13:58 +01:00
Pedro Silva 2c2cd4c9f6 Add Sync endpoint 2022-10-04 16:11:19 +01:00
Rory Powell 761c8b2027 Fix linting for qa-core 2022-10-04 10:59:53 +01:00
Martin McKeaveney 62736aec73 remove module file 2022-10-03 10:04:15 +01:00
Martin McKeaveney 2610475150 tidy up 2022-10-01 02:56:08 +01:00
Martin McKeaveney 65c70cca4c QA Core tests for app creation 2022-10-01 02:54:51 +01:00
Martin McKeaveney d5455bdc50 create app with formdata 2022-09-30 15:35:13 +01:00
Martin McKeaveney c532c7388d create app tests 2022-09-30 15:03:38 +01:00
Martin McKeaveney 7594873f49 Merge pull request #8024 from Budibase/qa/internal-api-tests
Qa/internal api tests
2022-09-29 10:20:18 +01:00
Martin McKeaveney 65279e7d3b removing users api file as no longer required 2022-09-29 09:56:09 +01:00
Martin McKeaveney fbfb0096fe tidy up 2022-09-29 09:33:48 +01:00
Martin McKeaveney 44ac18afb8 use environment variables in jest run 2022-09-28 18:31:23 +01:00
Martin McKeaveney d2e71b32e6 setting up internal API with auth 2022-09-28 18:21:05 +01:00
Martin McKeaveney f7cfd9f0b3 removing random test file 2022-09-26 18:26:09 +01:00
Martin McKeaveney 57bbf28119 merge with master 2022-09-26 17:57:23 +01:00
Martin McKeaveney d55cda0d80 internal API test config 2022-09-26 16:54:14 +01:00
Martin McKeaveney d9cdfd9357 Merge pull request #7964 from Budibase/qa/real-couch-integration-tests 2022-09-26 11:10:15 +01:00
Martin McKeaveney e06afeb194 adding startup script for local 2022-09-25 23:43:37 +01:00
Michael Drury 31841d2a7b x-ing the search test which should not work. 2022-09-24 19:39:19 +01:00
Martin McKeaveney 25ce82fa4b using real couch in integration tests 2022-09-24 13:17:21 +01:00
Mitch-Budibase f71c6d345b API Test: Search Rows
Commenting out this specific test for now as it is quite flakey and preventing successful CI runs.
2022-09-21 16:16:18 +01:00
Martin McKeaveney dbe1263ef0 Merge branch 'qa/qa-core-jest' of github.com:Budibase/budibase into qa/qa-core-jest 2022-09-15 20:36:02 +01:00
Martin McKeaveney cbd7d82170 more random test data for rows 2022-09-15 20:34:37 +01:00
Martin McKeaveney 492a0cffab Create .env 2022-09-15 20:12:32 +01:00
Martin McKeaveney d6c8527340 tidy up 2022-09-15 20:09:23 +01:00
Martin McKeaveney bc090f5f9d better tests and cleaner import for server 2022-09-15 19:51:11 +01:00
Martin McKeaveney e3dbc28dd5 better generation, and letting tests run in isolation 2022-09-15 09:48:44 +01:00
Martin McKeaveney fdbe429581 complete refactor and total type safety of test suite - making use of OpenAPI types throughout 2022-09-15 00:58:08 +01:00
Martin McKeaveney c3f15b5af2 QA Core repo, and Jest API tests running end to end 2022-09-05 18:28:53 +01:00