1
0
Fork 0
mirror of synced 2024-09-17 17:57:47 +12:00
Commit graph

232 commits

Author SHA1 Message Date
Mitch-Budibase
fa5bd98621 Increase wait for addDatasourceConfig function
Timing issue against the nightly smoke build. This should help with it
2022-05-16 14:59:46 +01:00
MihailHadzhiev2022
4926e77c72 adding locators
adding interact.js
adding locators
2022-05-16 15:32:04 +03:00
Dean
2a1ef4c87f Code review updates 2022-05-16 11:13:17 +01:00
Dean
a20bfa62d3 Merge remote-tracking branch 'origin/develop' into feature/fill-app-name-on-create 2022-05-12 17:07:12 +01:00
Dean
f78bcdacea App name autofill on create. Initial cypress tests added for importing an application file with a sample fixture 2022-05-12 17:04:05 +01:00
Mitch-Budibase
d6bfb392df Skip createBinding test
Specifically the test for adding a URL param binding
- Issues with this test on against the CI (Works fine locally)
- Skipping for now while i investigate this further. Looks like some kind of timing issue for getting the url after a component has been added
2022-05-12 10:25:05 +01:00
Mitch-Budibase
abbb487dd2 Increase wait for addComponent
Sometimes after adding a component, the incorrect component ID is selected, causing test fails. This wait should allow the correct component ID to be selected
2022-05-11 23:14:06 +01:00
Mitch-Budibase
ce4a0270bc Update commands.js + createApp.spec.js
commands.js
- Increasing wait due to timing issue for specific test runs.
- Added `{ force: true }` to assist with adding components

createApp.spec.js
- Increasing wait due to timing issue for specific test runs
2022-05-11 21:13:57 +01:00
Dean
75535caef1 Cypress test fixes and a correction for the version update behaviour 2022-05-11 19:37:12 +01:00
Mitch-Budibase
04519cf950 Update commands.js
Commenting out createScreen function call within createTestApp
2022-05-11 18:22:52 +01:00
Mitch-Budibase
7fc7c5a2fc Update Commnds.js
Specifically updating the createTestApp function
- Creates a 'home' screen when a test app is being created
2022-05-11 17:23:05 +01:00
Mitch-Budibase
0355716c34 Update Commands.js
Adding `{ force: true }` to click functionality in several places.

There seems to be a discrepancy with clicks while running the smoke build
2022-05-11 17:04:54 +01:00
Mitch-Budibase
d20d0a65c5 Merge branch 'develop' into cypress-testing 2022-05-11 16:50:23 +01:00
Mitch-Budibase
ffd1821f7d Update DeleteApp function & Enable Cypress video flag
Commands.js
- DeleteApp does not need specific functionality for test env

cypress.json
- Enabling video flag for Cypress
2022-05-11 16:49:27 +01:00
Dean
4c3e8e44f4 Merge remote-tracking branch 'origin/develop' into feature/app-overview-section 2022-05-11 09:07:30 +01:00
Dean
d9524ba3b6 Cypress test fixes 2022-05-10 22:40:27 +01:00
Dean
43cd89a121 Cypress tests for the overview tab 2022-05-10 16:58:55 +01:00
Mitch-Budibase
24e901d47e Update command.js
Increasing wait for createApp function - Seems to be timing issues for the smoke build with this
2022-05-04 18:08:09 +01:00
Mitch-Budibase
cafd2504e6 Job Application Template Test
jobApplicationTracker.spec.js
- New file and test
- Creates and publishes Job Application Tracker app. Also verifies View URL button works

commands.js
- Updated deleteApp function
2022-05-04 17:06:27 +01:00
Mitch-Budibase
bd64b45a3c Templates Details Tests
Added tests which check the details button for each template.
- Split per category (Will add more specific template tests under each category)
- Checks template name matches url (There are a few exceptions)
- Checks status of url - expects 200 back each time

Also updated the DeleteApp Function
- Fixed a smoke test issue associated with deleting the tests app
2022-04-28 17:50:06 +01:00
Mitch-Budibase
2b2035b187 Updated commands.js
createScreen command now uses a specific data-cy id

also added 1 second wait within selectExternalDatasource - assists with timing for smoke build
2022-04-26 15:56:11 +01:00
Mitch-Budibase
c00965d46f Update Commands.js
Updating addDatasourceConfig

Small change for getting the HOST_IP value
2022-04-25 16:25:42 +01:00
Dean
85928e72b2 Merge remote-tracking branch 'origin/develop' into feature/new-screen-addition-ui 2022-04-25 09:06:54 +01:00
Dean
7cbf9c2e61 Cypress fixes for screen create flow 2022-04-22 18:23:16 +01:00
Dean
7a043dcdbd Code styling 2022-04-22 16:36:33 +01:00
Dean
b9f57eecb3 Minor modal refactor for testing. Updates to the cypress tests around creating screens 2022-04-22 14:57:13 +01:00
Dean
1885a3e275 Refactored the screen wizard to separate out the role selection. Design and layout updates to address feedback 2022-04-22 12:22:21 +01:00
Mitch-Budibase
377345a828 Smoke Build Changes
Datasource (MySQL, PostgreSQL)
- Test should now pass for smoke build

Table Tests
- Removed pagination tests - no pagination in the smoke build test run
2022-04-14 17:15:34 +01:00
Mitch-Budibase
56b8774b13 lint 2022-04-13 16:02:57 +01:00
Mitch-Budibase
45c39cbcc0 Updated PostgreSQL & Oracle Tests
PostgreSQL
- Test fixes (May still fail due to connection issues on smoke build)

Oracle
- Test fixes
- Skipping most tests (Oracle host needs configured)

commands.spec.js
- minor change to addDatasourceConfig function
2022-04-13 15:54:40 +01:00
Mitch-Budibase
0446c5f2e2 lint 2022-04-12 17:33:17 +01:00
Mitch-Budibase
87ac25bcea Updated deleteApp function
Added a check for app name, function returns if app does not exist, rather than trying to delete
2022-04-12 15:59:12 +01:00
Dean
122c5e6f3a Test updates for screen creation 2022-04-08 09:56:20 +01:00
Dean
0817f3f7b4 Formatting for command 2022-04-07 12:23:19 +01:00
Dean
cffdad78e5 Minor test updates and formatting 2022-04-07 12:22:16 +01:00
Mitch-Budibase
c3447d418f lint 2022-04-01 14:41:45 +01:00
Mitch-Budibase
b64b5edaa7 Changing test structure when searching for applications
Search functionality is not available when only 1 app exists - Updating to reflect this
2022-04-01 14:37:11 +01:00
Mitch-Budibase
4ad60322ab Changes to renameAnApplication & createUserAndRoles
renameAnApplication - changing the navigation to a direct URL rather than clicking the home logo button
createUserAndRoles - Removing the After action (now supports correct flow of tests)
2022-04-01 13:15:06 +01:00
Mitch-Budibase
f3b9a06318 Adding and increasing wait times surrounding renameAnApplication.spec.js
Passes locally but looks like a timing issue when run against the CI.

Adding and increasing wait times to hopefully combat this. I will extend further if unsuccessful
2022-04-01 12:05:31 +01:00
Mitch-Budibase
f595112b38 Updating tests to work with test Env
I've made some changes to the tests and commands file to allow for the tests to run within the Test env after the latest round of UI changes.

Some of these changes also allow for testing instances in which apps already exist - This is specific for the test env, the CI runs always have a clean instance
2022-04-01 11:31:18 +01:00
Dean
f512441f11 Cypress test fixes and refactoring around the create app workflows 2022-03-28 23:21:38 +01:00
Andrew Kingston
8131bae496 Update cypress tests for different button casing 2022-03-08 08:46:07 +00:00
Mitch-Budibase
5e4365eccb Merge pull request #4751 from Budibase/cypress-testing
Changes for Table test - Commands.js
2022-03-01 12:15:44 +00:00
Peter Clement
ffe35bc5ec Merge pull request #4638 from Budibase/feature/table-row-selection
Allow selection of rows from table component
2022-03-01 12:03:24 +00:00
Mitch-Budibase
38cdf850eb Changes for Table test - Commands.js
Seems like a potential timing issue for the Create Table test

Specifically:
-The datasource modal looks to be sometimes delayed when appearing after app creation
--increasing wait time for after app creation
--Reducing wait within the createTable command
--Updating specific ID to use 'data-cy'
--Updating another ID for the data source modal

I am unable to reproduce this potential issue locally, so making changes in hopes the CI picks it up (if the timing issue still exists)
2022-03-01 11:49:40 +00:00
Andrew Kingston
40273b7148 Pls cypress 2022-02-25 16:24:36 +00:00
Andrew Kingston
2434f1169d Try to fix cypress tests again 2022-02-25 13:40:23 +00:00
Mitch-Budibase
3672da15d7 Updates/Fixes based on previous test run
General test fixes/updates

-Removed createUser.spec.js - Covered by another file
-Skiipping two tests within queryLevelTransformer
2022-02-18 17:59:33 +00:00
Mitch-Budibase
ca8eaf0df3 AutoScreens Test update
increasing wait time for createAutogeneratedScreens command
-associated with auto screens tests
2022-01-21 18:40:32 +00:00
Mitch-Budibase
5c972f4510 Lint
ignoring lint for entire query support files, rather than just ignoring a specific line
2022-01-21 17:50:16 +00:00
Mitch-Budibase
6a0a92d7e1 Updates to query files
queryLevelTransformerFunction
-adding eslint-disable-next-line

queryLevelTransformerFunctionWithData
-adding eslint-disable-next-line
-Removing const stateCode - not required
2022-01-21 17:38:22 +00:00
Mitch-Budibase
434460feb9 Oracle & Table pagination Test Env Only
createTable
-Pagination is now Test Env only

oracle
-Test Env only
-Removed smoke test tag

commands
-Fix for createApp command
-Increase wait for createRestQuery command
2022-01-21 17:28:33 +00:00
Mitch-Budibase
5d63dbd9a6 Commands Update & Query Files
-Updating Commands file to include all recent changes
-Added query files (2 of them) - required for query level transformers testing
-Cypress.json updated to remove "/builder/"
-Updating cypress version in package.json
-Missing }) within addmultioptiondatatype.spec.js
2022-01-21 14:41:53 +00:00
mike12345567
60e6cc3e9a Merge branch 'cypress-testing' of github.com:Budibase/budibase into cypress-testing 2022-01-21 13:37:25 +00:00
Mitch-Budibase
e39c5b4c25 lint changes 2022-01-21 13:12:16 +00:00
Mitch-Budibase
daebee184d Merge branch 'cypress-testing' of https://github.com/Budibase/budibase into cypress-testing 2022-01-21 12:56:33 +00:00
Mitch-Budibase
8b8cb21ec3 Adding tags to tests
Currently there is 'smoke' and 'all' tags
2022-01-21 12:43:27 +00:00
Peter Clement
bc521af082 fix cypress createApp command 2022-01-20 11:51:41 +00:00
Peter Clement
09611d3aad Merge remote-tracking branch 'origin/develop' into fix/template-row-limit 2022-01-20 09:53:39 +00:00
Peter Clement
27a8fefaa4 fix cypress 2022-01-20 09:44:40 +00:00
Martin McKeaveney
5bacd7f62a Merge branch 'develop' of github.com:Budibase/budibase into develop 2022-01-19 16:19:42 +01:00
Martin McKeaveney
9c54872fa9 revert new cypress tests 2022-01-19 16:19:02 +01:00
Martin McKeaveney
8267d31626 Revert "Small changes associated with the smoke build" 2022-01-19 16:10:22 +01:00
Martin McKeaveney
c25c88ae58 fix lint 2022-01-19 12:42:11 +01:00
Mitch-Budibase
9034f23fde Small changes associated with the smoke build
Removing a line from addMultiOptionDatatype

Also adding a wait when creating an app - smoke build looks to have a timing issue with some tests
-Just a 2 second wait for now
2022-01-18 17:25:09 +00:00
Mitch-Budibase
2960867cb0 lint changes 2022-01-18 16:20:54 +00:00
Mitch-Budibase
bd82ce9704 Table Test fix - Add row to table
Fixing the command associated with adding a row to a table
2022-01-18 16:12:53 +00:00
Mitch-Budibase
e4da48eb8a Merge branch 'cypress-testing' of https://github.com/Budibase/budibase into cypress-testing 2022-01-18 16:02:49 +00:00
Mitch-Budibase
9a7286568a Structural Changes + New Test
Structural changes surrounding data sources
-Cypress env file removed
-Text change for fetching tables
-Oracle tests organised
-PostgreSQL tests organised

New test is for skipping table fetch via button

There are a few other smaller changes
2022-01-18 16:02:42 +00:00
Mitch-Budibase
4279772444 Merge branch 'develop' into cypress-testing 2021-12-24 10:55:57 +00:00
Mitch-Budibase
df43b270dc New Tests and Changes based on updated test environment
-Changes made to reflect the new layouts of the test env
--e.g. Changes to the app grid, changes to UI screens
-Updated commands
--New commands added & some updated
-New tests
--Revert App
--AutoScreensUI
--Change app icon and colour
--Data source testing

In particular to data source testing
-I have a file for mySQL, PostgreSQL, Oracle, and REST.
--enabled better regression testing for each

Other changes made for:
-QueryLevelTransformers tests
-Table tests
-Renaming applications
-Automations
-Multi-option datastype

New env file added too
2021-12-24 10:38:03 +00:00
Peter Clement
fa8fb5577e fix home screen automation commands 2021-12-09 11:52:47 +00:00
Peter Clement
2945b15ee3 update cypress to account for no default screen 2021-11-25 21:48:07 +00:00
Peter Clement
a68247ffcb fixng some auto screen bugs 2021-11-23 09:39:40 +00:00
Peter Clement
7bbf5500c6 Merge pull request #3334 from Budibase/feature/auto-screen-ui
Feature/auto screen UI
2021-11-22 10:15:44 +00:00
Mitch-Budibase
7ba79a8982 Env variables & data files
Changes as per PR
-Created files for transformer queries - tests updated accordingly
-Updates for Env variables and usage
-Changes surrounding App Rename testing
2021-11-18 13:47:41 +00:00
Mitch-Budibase
348c4ed75b Update commands.js
A few formatting based changes for this file
2021-11-15 15:40:48 +00:00
Mitch-Budibase
8780010926 New Tests (User Roles, Query Level Transformers, Data Sources etc.)
New tests:
-Query Level Transformers
-Table pagination
-User Roles
-Data Sources (correct config, incorrect config, Wizard)

Also:
-New Commands to support
Testing
-Cypress Updated
2021-11-15 15:25:58 +00:00
Peter Clement
a6d8c791e1 fix cypress tests 2021-11-15 11:04:22 +00:00
Martin McKeaveney
91a9e78e92 fix renaming an app 2021-11-10 14:57:46 +01:00
Martin McKeaveney
8f7b57837e adding cypress tag to input 2021-11-10 14:08:34 +01:00
Martin McKeaveney
f5406cecf2 fix cypress tests 2021-11-10 13:04:59 +01:00
Martin McKeaveney
1361b05966 updating delete app cypress command 2021-11-09 18:35:19 +01:00
Mitch-Budibase
2636dd67e5 Merge pull request #3024 from Budibase/cypress-testing
New Tests & Command
2021-10-21 15:30:58 +01:00
mike12345567
5671b7ff2f Fixing test case issue, Cypress not consistently opening app creation modal. 2021-10-19 16:14:34 +01:00
Mitch-Budibase
21fef55e93 Merge branch 'develop' into cypress-testing 2021-10-15 17:36:18 +01:00
Mitch-Budibase
02ccb5278b New Tests & Command
Rename an application
-5 tests

Custom theming properties
-1 new test (Button roundness)

1 new command
-searches for an application
2021-10-15 17:36:10 +01:00
Peter Clement
1030d24e25 remove unused command 2021-10-14 16:59:22 +01:00
Peter Clement
63b0938d36 Don't show the create datasource popup in dev environments 2021-10-14 16:45:27 +01:00
Peter Clement
8744e50ded fix lint 2021-10-11 11:33:54 +01:00
Mitch-Budibase
d6818acfcf Some changes for addMultiOptionDatatype 2021-10-08 11:45:54 +01:00
Mitch-Budibase
417826ffed Update commands.js 2021-10-08 10:56:44 +01:00
Mitch-Budibase
a590cb836f Merge branch 'develop' into cypress-testing 2021-10-07 14:01:22 +01:00
Martin McKeaveney
29f8cfe7ac use start from scratch instead of create app button 2021-10-06 14:35:00 +01:00
Martin McKeaveney
8c65d45c23 Merge branch 'develop' into dnd 2021-09-30 14:56:23 +01:00
Mitch-Budibase
f703243562 Fixing env change that i missed in commands file 2021-09-30 14:09:37 +01:00
Mitch-Budibase
f443127e13 Changing Environment
I had this as the test env, changing it back to what it was previously.
2021-09-30 13:52:20 +01:00
Mitch-Budibase
d7b4519090 Merge branch 'develop' into cypress-testing 2021-09-30 13:38:48 +01:00
Peter Clement
a117f3542c update cypress tests to account for new modal 2021-09-28 12:26:38 +01:00
Mitch-Budibase
b6f8d74e01 Cypress Testing additions and changes
-Changing baseurl to be the test env
-Made a few updates to existing tests/commands
--New commands also added
-Add Radio Button Test
-Add Multi Option Datatype test
-Custom Theming Properties Test
--Just the one so far, more to come
2021-09-27 18:19:25 +01:00