1
0
Fork 0
mirror of synced 2024-08-22 05:21:20 +12:00
Commit graph

259 commits

Author SHA1 Message Date
Martin McKeaveney
bdce546902
Merge pull request #5786 from Budibase/feature/app-overview-section
Feature/app overview section
2022-05-24 15:16:17 +01:00
Dean
a16e88acf0 Merge remote-tracking branch 'origin/develop' into feature/required-field-focus 2022-05-24 11:10:42 +01:00
MihailHadzhiev2022
4b69f5ec9c adding interact locators for APP_Publish_WORK_FLOW 2022-05-23 11:36:54 +03:00
Dean
9d79e6a554 Merge remote-tracking branch 'origin/develop' into feature/required-field-focus 2022-05-20 09:09:50 +01:00
Mitch-Budibase
1440ab18f3 Increasing wait for closeModal command
changing to 1 second to assist with CI runs
2022-05-19 17:53:31 +01:00
Mitch-Budibase
333279f66c Lead Generation Form Template Test + Refactor
New Lead Generation Form template test
- Verifies app creation
- Successful Publish
- Published app opens when button clicked

Refactor of template functionality specific tests
- Created a command to publish app and either click view or done button afterwards
- Refactored into some template tests
2022-05-19 15:51:42 +01:00
Mitch-Budibase
b530e86d29 Merge branch 'develop' into cypress-testing 2022-05-19 15:24:36 +01:00
Mitch-Budibase
a6c7b6ab26 Template Testing Refactor
Directly visiting the templates URL
2022-05-19 15:23:53 +01:00
Dean
da18b6433c Merge remote-tracking branch 'origin/develop' into feature/app-overview-section 2022-05-19 13:32:57 +01:00
Dean
3c86bd24f2 Cypress test updates and back button update for the create screen 2022-05-19 13:32:05 +01:00
Mihail Hadzhiev
055bc8261e
Merge pull request #5974 from Budibase/cypressTests
adding locators for AddRadioButtons test
2022-05-19 12:03:21 +03:00
Dean
45485f3653 Merge remote-tracking branch 'origin/develop' into feature/app-overview-section 2022-05-19 09:05:29 +01:00
Mitch-Budibase
b6d9c0d147 Updated Commands - Datasource Command
Adding a timeout associated with the fetch tables request

Another attempt at sorting this for the smoke build - it only fails there and is timing related.
2022-05-18 17:30:13 +01:00
Dean
346c5426eb Merge remote-tracking branch 'origin/develop' into feature/app-overview-section 2022-05-18 17:12:02 +01:00
Mitch-Budibase
86060705c6 Merge branch 'develop' into cypress-testing 2022-05-18 14:54:57 +01:00
Mitch-Budibase
0237854826 Update command.js
Changing structure for `addDatasourceConfig`
- Intercepting the request that is made when fetching tables from a datasource
- There is a specific issue with this in regards to the smoke build. This will allow me to see deeper into the potential timing issues that are occurring
2022-05-18 14:53:54 +01:00
MihailHadzhiev2022
85d7a23867 adding locators for AddRadioButtons test 2022-05-18 16:29:22 +03:00
Dean
180e3dad92 Merge remote-tracking branch 'origin/develop' into feature/app-overview-section 2022-05-18 14:18:42 +01:00
Mihail Hadzhiev
fbceb5449a
Merge pull request #5954 from Budibase/cypressTests
adding interact locators for AddMultiOptionDataType test
2022-05-18 15:10:18 +03:00
MihailHadzhiev2022
5dd70a106b adding interact locators for AddMultiOptionDataType test 2022-05-18 14:09:58 +03:00
Dean
2d074f5ec8 Merge remote-tracking branch 'origin/develop' into feature/app-overview-section 2022-05-17 16:54:32 +01:00
Dean
93f90405cf Builder focus behaviour added to guide users when adding form elements. Refactored the component tests 2022-05-17 15:09:13 +01:00
Mitch-Budibase
7c958926c2 Smoke build test changes
createUserAndRoles.spec.js
- Timing issues with the test regarding the smoke build.
- Adding timeout values and reloading the page after role assignment

commands
- Adding a `clear()` to `createAppFromScratch` function.
- Previous test runs show that the placeholder value is being taken at times
2022-05-17 12:40:06 +01:00
Mitch-Budibase
c555d2130f Merge branch 'develop' into cypress-testing 2022-05-17 10:34:54 +01:00
Mitch-Budibase
91f934b406 IT Ticketing System Template Tests
Two tests for IT Ticketing System template
- Create and publish app
- Filter tickets by status (Skipped for now as functionality seems broken specifically for the CI run, looking into it...)

Commands
- Added new template navigation function
- Added this to appropriate template test files
2022-05-17 10:34:10 +01:00
MihailHadzhiev2022
69ab518ac9 Merge branch 'develop' into cypressTests 2022-05-17 11:01:13 +03:00
Martin McKeaveney
dc34e86431
Merge pull request #5855 from Budibase/feature/fill-app-name-on-create
Feature/fill app name on create
2022-05-16 17:38:33 +01:00
Mitch-Budibase
c2beb5926b 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
344bd1b3b3 adding locators
adding interact.js
adding locators
2022-05-16 15:32:04 +03:00
Dean
883765f894 Code review updates 2022-05-16 11:13:17 +01:00
Dean
b4d893fba2 Merge remote-tracking branch 'origin/develop' into feature/fill-app-name-on-create 2022-05-12 17:07:12 +01:00
Dean
e0a9f4d6c8 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
bdfbcc6f76 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
cb6b312145 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
702deee511 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
a08c3249c6 Cypress test fixes and a correction for the version update behaviour 2022-05-11 19:37:12 +01:00
Mitch-Budibase
be6dea74aa Update commands.js
Commenting out createScreen function call within createTestApp
2022-05-11 18:22:52 +01:00
Mitch-Budibase
72c029a1b5 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
b74e42ec98 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
47a6b2d5ed Merge branch 'develop' into cypress-testing 2022-05-11 16:50:23 +01:00
Mitch-Budibase
2e53a80219 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
7212124f8f Merge remote-tracking branch 'origin/develop' into feature/app-overview-section 2022-05-11 09:07:30 +01:00
Dean
7a2037410f Cypress test fixes 2022-05-10 22:40:27 +01:00
Dean
044d52edb4 Cypress tests for the overview tab 2022-05-10 16:58:55 +01:00
Mitch-Budibase
e96a5101e3 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
4afd6ab2b4 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
edc8d7f1f7 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
61dbcb780a 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
ecacc72cdc Update Commands.js
Updating addDatasourceConfig

Small change for getting the HOST_IP value
2022-04-25 16:25:42 +01:00
Dean
79616e705a Merge remote-tracking branch 'origin/develop' into feature/new-screen-addition-ui 2022-04-25 09:06:54 +01:00
Dean
6408b6204c Cypress fixes for screen create flow 2022-04-22 18:23:16 +01:00
Dean
86eb359cac Code styling 2022-04-22 16:36:33 +01:00
Dean
cf15ed2511 Minor modal refactor for testing. Updates to the cypress tests around creating screens 2022-04-22 14:57:13 +01:00
Dean
d601ec47f4 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
5168676165 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
9ba48660d2 lint 2022-04-13 16:02:57 +01:00
Mitch-Budibase
eb31242b20 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
761ac69783 lint 2022-04-12 17:33:17 +01:00
Mitch-Budibase
85b1a594ea 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
f8f311f924 Test updates for screen creation 2022-04-08 09:56:20 +01:00
Dean
09defee462 Formatting for command 2022-04-07 12:23:19 +01:00
Dean
73a7fdabaa Minor test updates and formatting 2022-04-07 12:22:16 +01:00
Mitch-Budibase
80e94d13d9 lint 2022-04-01 14:41:45 +01:00
Mitch-Budibase
db0b6f8441 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
9ffd278d80 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
5525859ba7 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
69d6dbc23a 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
6164b4d574 Cypress test fixes and refactoring around the create app workflows 2022-03-28 23:21:38 +01:00
Andrew Kingston
e4b2884ca7 Update cypress tests for different button casing 2022-03-08 08:46:07 +00:00
Mitch-Budibase
92eb199c86
Merge pull request #4751 from Budibase/cypress-testing
Changes for Table test - Commands.js
2022-03-01 12:15:44 +00:00
Peter Clement
9931deceba
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
4906dc6337 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
02c688539a Pls cypress 2022-02-25 16:24:36 +00:00
Andrew Kingston
63e64f0da1 Try to fix cypress tests again 2022-02-25 13:40:23 +00:00
Mitch-Budibase
688a770b59 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
b5a9329695 AutoScreens Test update
increasing wait time for createAutogeneratedScreens command
-associated with auto screens tests
2022-01-21 18:40:32 +00:00
Mitch-Budibase
85003f5b9c 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
220ee31b02 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
a49c2d2200 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
863abdb4b3 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
0990a1df2f Merge branch 'cypress-testing' of github.com:Budibase/budibase into cypress-testing 2022-01-21 13:37:25 +00:00
Mitch-Budibase
9fe8a8c687 lint changes 2022-01-21 13:12:16 +00:00
Mitch-Budibase
7e834f3aa5 Merge branch 'cypress-testing' of https://github.com/Budibase/budibase into cypress-testing 2022-01-21 12:56:33 +00:00
Mitch-Budibase
0abcff774b Adding tags to tests
Currently there is 'smoke' and 'all' tags
2022-01-21 12:43:27 +00:00
Peter Clement
c5ea321f25 fix cypress createApp command 2022-01-20 11:51:41 +00:00
Peter Clement
220adba4c1 Merge remote-tracking branch 'origin/develop' into fix/template-row-limit 2022-01-20 09:53:39 +00:00
Peter Clement
a3519ac1aa fix cypress 2022-01-20 09:44:40 +00:00
Martin McKeaveney
39a5f297d2 Merge branch 'develop' of github.com:Budibase/budibase into develop 2022-01-19 16:19:42 +01:00
Martin McKeaveney
701298d0de revert new cypress tests 2022-01-19 16:19:02 +01:00
Martin McKeaveney
d953e12ec7
Revert "Small changes associated with the smoke build" 2022-01-19 16:10:22 +01:00
Martin McKeaveney
da148952e7 fix lint 2022-01-19 12:42:11 +01:00
Mitch-Budibase
eaf9ecf2ee 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
18cb272f0e lint changes 2022-01-18 16:20:54 +00:00
Mitch-Budibase
dbdb2750b4 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
4c216b12fa Merge branch 'cypress-testing' of https://github.com/Budibase/budibase into cypress-testing 2022-01-18 16:02:49 +00:00
Mitch-Budibase
8f0123b286 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
a439ac24e2
Merge branch 'develop' into cypress-testing 2021-12-24 10:55:57 +00:00
Mitch-Budibase
daca40850c 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
a24c1e626d fix home screen automation commands 2021-12-09 11:52:47 +00:00
Peter Clement
7831ce223a update cypress to account for no default screen 2021-11-25 21:48:07 +00:00