1
0
Fork 0
mirror of synced 2024-08-04 12:51:47 +12:00
Commit graph

420 commits

Author SHA1 Message Date
Mitch-Budibase
a1ec209bfb Update createUserAndRoles.spec.js
Updating the before hook to delete the test app before trying to create a new one
2022-05-17 13:32:29 +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
59f788e860 Update createApp.spec.js
resolve conflict
2022-05-17 11:02:24 +03: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
a41eba60be Update postgresql.spec.js
Skipping test that attempts to add datasource without config
-Eventually times out with empty error message.

I will raise a bug for this. Skipping the test to keep the automation running
2022-05-12 15:25:22 +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
Dean
fbcd64aad2 Cypress test fixes 2022-05-09 18:00:04 +01:00
Mitch-Budibase
fd3931312b Skipping 2 Job Application Tracker tests
The tests are
- Filter application by stage
- Edit application

The template functionality seems to differ between test env, CI, etc. Skipping these tests for now while i debug, and leaving the passing tests in
2022-05-06 13:18:10 +01:00
Mitch-Budibase
88e410a30a More Job Application Tracker Template Tests
Edit an application
- Change application from not hired to hired
- Confirm relative sections update

Delete an application
- Currently skipped as there seems to be an issue with deleting an application within the template
2022-05-05 17:32:16 +01:00
Mitch-Budibase
81bce4fa7b Job Application Tracker Template Tests
2 more tests associated with the Job Application Tracker template
- Add active/inactive vacancies
- Filter applications by stage

Tests utilise pre-populated data already associated with the template
2022-05-05 14:26:21 +01:00
Mitch-Budibase
473bdc87e6 Assign user roles test fix
Changing the conditionals for creating user and assigning roles. Should assist with the test issues
2022-05-05 11:22:04 +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
f2c7097f36 Fix PostgreSQL Smoke Build Test
Specifically with the duplicate query test
- Looks for spectrum-icon instead of icon
2022-05-04 17:30:38 +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
2cf15cfb9f
Merge pull request #5595 from Budibase/cypress-testing
Small changes for Smoke Build
2022-04-26 16:31:19 +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
Dean
04c678192b Cypress test fix 2022-04-26 14:41:27 +01:00
Dean
02b0c62691 Cypress test fix 2022-04-26 13:54:18 +01:00
Dean
5545cd84c5 Merge remote-tracking branch 'origin/develop' into feature/new-app-publish-workflow 2022-04-26 12:12:50 +01:00
Dean
f00344ddc7 Test fixes and code review refactoring 2022-04-26 12:04:07 +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
Dean
2dc86fe2d3 Refactored workflow tests to remove use of variables 2022-04-21 14:01:25 +01:00
Dean
16cccf5bb3 Minor test enhancements and publish workflow test spec added 2022-04-21 11:59:59 +01:00
Dean
d57e8ef9cc Added cypress attributes for the popover menu 2022-04-20 12:51:44 +01:00
Dean
9a49535748 Cypress test fixes and refactoring. Removed debugging elements 2022-04-20 09:17:01 +01:00
Peter Clement
453f49aed8 Merge remote-tracking branch 'origin/develop' into feature/foreach-block 2022-04-18 10:05:43 +01:00
Mitch-Budibase
e4707a2e53 Updated MySQL Duplicate Query test
Fixing the navigation used when selecting queries
2022-04-14 20:20:09 +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
9b12a9deea Updated MySQL Tests
It may still fail as part of the smoke build due to connection issues - for now, direct test issues are resolved
2022-04-13 14:33:37 +01:00
Mitch-Budibase
761ac69783 lint 2022-04-12 17:33:17 +01:00
Mitch-Budibase
eba7df7255 Updated createApp.spec.js
The test 'should provide filterable templates' was failing on the smoke build.

Updated to check existence of apps and act accordingly
2022-04-12 17:24:15 +01:00
Mitch-Budibase
d775fd7d5f Fixed Table Pagination Tests
Previous issues with the second page loading - reloading the page solves it
2022-04-12 16:20:15 +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
Peter Clement
dfa37bc65e fix cypress 2022-04-12 09:44:24 +01:00
Peter Clement
09c803248e fix automation 2022-04-12 09:15:40 +01:00
Dean
e0ebd08cf6 Minor formatting 2022-04-08 10:31:04 +01:00
Dean
3a563fe922 Minor updates for cypress tests. Check that access filtering is reflected 2022-04-08 10:29:19 +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
Mitch-Budibase
01569c940e Moving assign/unassign user role type tests to test env only
The assign roles test seems to be quite flakey.

I am moving it and the unassign roles test to only run in the test environment while i isolate and fix the issue
2022-03-29 18:32:36 +01:00
Dean
2efd7d909c Replaced the expected string in the data rest test spec to the original 2022-03-29 10:38:56 +01:00
Dean
6164b4d574 Cypress test fixes and refactoring around the create app workflows 2022-03-28 23:21:38 +01:00
Andrew Kingston
5d30c291bb Merge branch 'develop' of github.com:Budibase/budibase into copy-paste-improvements 2022-03-15 11:33:27 +00:00
Mitch-Budibase
f5b0ebeec1 Updating REST Test
A bit of a change of structure for how the test runs
-Also adding a wait as the test seems to be timing out on occasion
2022-03-10 13:46:30 +00:00
Andrew Kingston
e4b2884ca7 Update cypress tests for different button casing 2022-03-08 08:46:07 +00:00
Peter Clement
c630a18946
Merge pull request #4390 from Budibase/feature/automation-data-types
Adding ability to toggle between Automation input types.
2022-03-01 14:00:21 +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
Peter Clement
b6ed6fe90f fix automation 2022-03-01 11:58:20 +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
Peter Clement
32ac53a004 fix cypress, maybe? 2022-03-01 11:39:48 +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
Rory Powell
f37a4eef8c Merge branch 'develop' into fix/cypress-port-conflicts 2022-02-25 08:22:21 +00:00
Andrew Kingston
3f84c51c81 Try to fix cypress tests 2022-02-23 13:53:15 +00:00
Andrew Kingston
b6f90f7fe3 Merge branch 'develop' of github.com:Budibase/budibase into table-cell-config 2022-02-23 13:25:48 +00:00
Andrew Kingston
fa6cf0c101 Try to fix cypress tests 2022-02-23 13:14:28 +00:00
Mitch-Budibase
89f29b00c0 Increasing wait times for Assign User Roles test
Assign Roles test within createUserAndRoles is failing on CI.

It is not failing locally for me so i suspect a timing issue
2022-02-23 12:32:16 +00:00
Rory Powell
51d742b302 Merge branch 'develop' into fix/cypress-port-conflicts 2022-02-22 11:27:26 +00:00
Rory Powell
a1e2bd86c6 Prevent local port conflicts between account portal and cypress 2022-02-22 11:20:58 +00:00
Mitch-Budibase
05b7e3c5aa Updating datasourceWizard & revertApp
datasourceWizard
-Making test env only based on datasource usage

revertApp
-Updating a click function
2022-02-18 18:46:58 +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
e3b1e0915c
Merge branch 'develop' into cypress-testing 2022-02-17 14:22:21 +00:00
Mitch-Budibase
d87d5f2fed Re-adding tests
I had removed a lot of these for checking against the CI - adding them back in
2022-02-17 14:06:17 +00:00
Martin McKeaveney
9144fdef6e merge with develop 2022-02-10 11:39:15 +01:00
Mitch-Budibase
268a6c9e09 Merge branch 'cypress-testing' of https://github.com/Budibase/budibase into cypress-testing 2022-02-09 14:17:17 +00:00
Mitch-Budibase
fffe369781 Stripping out another test spec file
Temporary removal of radio buttons tests
2022-02-09 14:17:03 +00:00