Commit Graph

345 Commits

Author SHA1 Message Date
Mitch-Budibase 524bfb04db Create App Tests: Timeout Changes
This test spec file fires off against every PR. There is some timing issues currently.

I am making a few changes in relation to timeout values (a small restructure too) in hopes this helps with the PR builds.

Tests pass locally for me, so there may be more changes required against this spec file as I check its performance
2022-07-18 14:28:27 +01:00
Mitch-Budibase c2e4d22cb3 Cypress: Smoke Build Test Changes
More timing related changes to assist with smoke build tests

- Increasing timeouts where applicable
2022-07-08 11:33:11 +01:00
Mitch-Budibase ea3d6b944c Cypress: Increasing timeout values
Getting close.... but there are still some minor timing issues against the smoke build.

I am increasing a few timeout values within postgreSQL & commands files
2022-07-07 15:13:15 +01:00
Mitch-Budibase c8e3750d09 Cypress: User Details Test Fix
It seems that at times, Cypress is running so fast that it does not type entire words (it sometimes misses the first couple of letters.

I've put a small change in the userManagement test file to try and revolve this.
- Adding a wait and clear in association with the type command
2022-07-07 12:50:30 +01:00
Mitch-Budibase d467bec7bd Smoke Build Changes - Timing issues
Timing issues persist for the smoke build.

Increasing timeout values to try and combat this
2022-07-07 11:07:05 +01:00
Mitch-Budibase 985ab8f4a2 Cypress: Smoke Build Timing based Changes
Still some timing issues against the smoke build, but less this time.

- Mainly adding timeouts against cy.visit
- Improving some structure with the close modal command in a few places
2022-07-06 21:10:34 +01:00
Mitch-Budibase d00a09731f Smoke build test changes
This time it is adding appropriate deleteAllApps commands and adding waits

- The waits seem to be essential for the smoke build.
- Tests pass locally, but timing issues causes failure on the smoke build
2022-07-06 17:32:27 +01:00
Mitch-Budibase c8695c3526 CreateApp test file update
A few timing issues that need sorted. There may be more after this as they tend to be linear through the test run
2022-07-06 16:17:58 +01:00
Mitch-Budibase d1f34c4453 Smoke Build Test Changes
Changes have been made to the following test files to remove smoke build failures:

- addRadioButtons.spec.js
- accountPortals.spec.js
- userManagement.spec.js
- userSettings.spec.js
2022-07-06 15:56:02 +01:00
Dean 4805f73cb5 Merge remote-tracking branch 'origin/develop' into sso-rest-requests 2022-07-05 09:28:56 +01:00
Dean 1e6845d5cb Refresh the OAuth tokens automatically when making rest calls. Fix to remove the password from the api token authentication. 2022-07-03 21:13:15 +01:00
Dean 152b5d5922 Removed API call in create app tests 2022-07-03 19:50:12 +01:00
Mitch-Budibase 56fac8dff8 Additional timing based changes for createApp
All tests pass locally, just having issues with timing on the CI run

Also reduced test retries (runs a total of 2 times instead of 3, the 3rd run does not add any value)
2022-06-30 13:53:16 +01:00
Mitch-Budibase 1888be5349 Additional timing changes for CreateApp test file
Timing issues against the CI run - included more timeouts as a result of this
2022-06-30 12:30:53 +01:00
Mitch-Budibase b66aab093f CreateApp Test Update
Timing issues affecting some tests
- Updated some cy.visit commands to include timeouts
2022-06-30 11:41:11 +01:00
Mitch-Budibase 62c36238e3 Cypress Tests Refactoring
Refactoring a large portion of tests - necessary updates to have them working (may still be timing issues on the smoke build)
2022-06-29 18:28:32 +01:00
Mitch-Budibase 16eddac764 appOverview Refactor + Commands update
Refactoring tests within appOverview.spec.js

Commands
- refactoring the deleteApp command (works better with new UI)
2022-06-28 18:01:04 +01:00
Mitch-Budibase e8e857c43d Test Refactoring
AdminAndManagement + Datasources tests are being being refactored here
2022-06-27 18:28:21 +01:00
Mitch-Budibase 4b92b5557b AdminAndManagement test changes + Commands update
Specifically changes for accountPortals & userManagement

Commands
- Delete user function added
- Few timing changes
2022-06-22 18:55:43 +01:00
Mitch-Budibase 3c09e81d76 User Settings Menu tests
New test file with user setting menu tests

- Also updated AccountPortals test (logout was required)

Commands & Interact files updated as required
2022-06-21 18:25:33 +01:00
Mitch-Budibase 43811be6cc Merge branch 'develop' into cypress-testing 2022-06-20 18:42:38 +01:00
Mitch-Budibase 31c5ae08ad Account Portal tests + Command file changes
Account portal tests
- Visibility when accessing the portal with different permissions

Commands
- New command to logout when app grid is not present
- Need matching data-cy commands for this
2022-06-20 18:38:44 +01:00
Mitch-Budibase 318eb22a06 Merge branch 'develop' into cypress-testing 2022-06-17 17:45:43 +01:00
Mitch-Budibase ce1fa11db3 AdminAndManagement Test folder + timeouts refactoring
Created a new folder called adminAndManagement
- contains user and portal based tests

Timeouts refactoring
- Replacing a large number of waits with timeouts - this will prevent less time waiting during all testing
2022-06-17 17:41:07 +01:00
Andrew Kingston aeae3b0465 Update cypress tests 2022-06-15 15:08:03 +01:00
Mihail Hadzhiev e698765c53 Merge pull request #6287 from Budibase/cypressTests
Cypress tests
2022-06-13 13:26:40 +03:00
MihailHadzhiev2022 c25d5cebe1 refactoring reverApp 2022-06-13 13:10:11 +03:00
MihailHadzhiev2022 9731f48f5b refactoring test renemaApplication 2022-06-13 12:18:18 +03:00
MihailHadzhiev2022 05c12eeafa refactoring test queryLevelTransformers 2022-06-13 11:28:36 +03:00
Dean adf1eb5895 Removed commented attachment column test 2022-06-10 09:54:56 +01:00
Dean d8f82e9482 Merge remote-tracking branch 'origin/develop' into feature/required-field-focus 2022-06-10 09:53:39 +01:00
Mitch-Budibase b73652f36a Edit User Details Test + Timeout Changes for Commands
New user test
- Edits user details (for now just adds first name and last name)

Commands updated
- Removing some waits and replacing with timeouts associated with 'get' Cypress functionality
2022-06-08 18:08:45 +01:00
Mitch-Budibase 42680175ff appPublishWorkflow test fix
Third test was failing as part of the smoke build
2022-06-08 17:33:56 +01:00
Mitch-Budibase 03de3af587 Merge branch 'develop' into cypress-testing 2022-06-08 17:15:58 +01:00
Mitch-Budibase a0d4eb3c88 Minor Smoke Build Test changes
Updates for appOverview & autoScreensUI
2022-06-08 17:14:02 +01:00
MihailHadzhiev2022 11beb999dd Refactoring test revertApp 2022-06-08 17:29:12 +03:00
MihailHadzhiev2022 0f38995110 Refactoring test: createView 2022-06-08 17:05:08 +03:00
MihailHadzhiev2022 212bfd0193 Merge branch 'develop' of https://github.com/Budibase/budibase into cypressTests 2022-06-07 11:38:46 +03:00
MihailHadzhiev2022 598c9c62b7 Refactoring test: createUserAndRoles 2022-06-06 18:03:41 +03:00
MihailHadzhiev2022 a36ac49807 refactoring test createTable 2022-06-06 14:01:14 +03:00
Maurits Lourens 56af6c78a0 remove comment 2022-06-03 14:37:29 +02:00
Maurits Lourens 21305a646a move the unpublish link 2022-06-03 00:41:16 +02:00
MihailHadzhiev2022 52d643c035 Refactoring tests
Tests:
1. AppiconAndColour
2. Automation
2022-06-02 15:03:47 +03:00
Mitch-Budibase c5c3365c43 Merge Icon Change Tests
Deleting changeAppIconAndColour test file

Merging that test within the appOverview test file
- Updating commands also
2022-06-01 18:36:29 +01:00
Mitch-Budibase 6c958ca686 Removing templates test folder
We do not need to test templates this way via the UI
- There is currently a test which creates an app via a template
- These specific templates tests are time consuming and repetitive
- These template tests will be replaced by API testing

Commands.js
- Removing a publishApp function -> There was two, one is not needed
2022-06-01 18:16:16 +01:00
Mitch-Budibase e7da79377a changeAppIconAndColor Test Fix
Updating this test as it was failing consistently
2022-06-01 18:05:51 +01:00
Dean 2d6f553121 Backed out merge conflict remoted updates. 2022-06-01 11:11:44 +01:00
Dean 0a79e92c9a Merge remote-tracking branch 'origin/develop' into feature/required-field-focus 2022-06-01 10:52:11 +01:00
Dean dd88acc11f Minor fix for component test 2022-06-01 10:49:01 +01:00
MihailHadzhiev2022 6d0ac317ce adding locators for PublishWorkFlow test 2022-06-01 10:23:15 +03:00
Dean 692039cd34 Component Cypress tests and fixes 2022-05-31 22:57:33 +01:00
MihailHadzhiev2022 d6db7eb34b Merge branch 'develop' into cypressTests 2022-05-31 18:57:07 +03:00
MihailHadzhiev2022 d7012c664d refactoring autoScreensUI test 2022-05-31 18:39:05 +03:00
MihailHadzhiev2022 b44ae7b30b Small fixes 2022-05-31 17:01:11 +03:00
MihailHadzhiev2022 f6527ff489 Adding interact locators for createComponent cypress test 2022-05-30 15:45:04 +03:00
Dean 6114e37f19 Merge remote-tracking branch 'origin/develop' into feature/required-field-focus 2022-05-24 17:09:15 +01:00
Martin McKeaveney 92ed60af54 Merge pull request #5786 from Budibase/feature/app-overview-section
Feature/app overview section
2022-05-24 15:16:17 +01:00
Dean 55817d301f Merge remote-tracking branch 'origin/develop' into feature/required-field-focus 2022-05-24 11:10:42 +01:00
Dean 663a4ee7c7 Expanding the focus behaviour to more component types in the builder. Minor fix for cypress test 2022-05-24 09:58:05 +01:00
MihailHadzhiev2022 87ee9499da adding interact locators for APP_Publish_WORK_FLOW 2022-05-23 11:36:54 +03:00
Dean c3c388b01a Merge remote-tracking branch 'origin/develop' into feature/required-field-focus 2022-05-20 09:09:50 +01:00
Mitch-Budibase 7c6f73388a 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 3947f30158 Merge branch 'develop' into cypress-testing 2022-05-19 15:24:36 +01:00
Mitch-Budibase d44ac03d38 Template Testing Refactor
Directly visiting the templates URL
2022-05-19 15:23:53 +01:00
Dean 939c014c0d Merge remote-tracking branch 'origin/develop' into feature/app-overview-section 2022-05-19 13:32:57 +01:00
Dean 8ca01d6bca Cypress test updates and back button update for the create screen 2022-05-19 13:32:05 +01:00
Mihail Hadzhiev 7ea03b547b Merge pull request #5974 from Budibase/cypressTests
adding locators for AddRadioButtons test
2022-05-19 12:03:21 +03:00
MihailHadzhiev2022 10310e6c1d adding locators for AddRadioButtons test 2022-05-18 16:29:22 +03:00
Dean 276707b59e Merge remote-tracking branch 'origin/develop' into feature/app-overview-section 2022-05-18 14:18:42 +01:00
Mihail Hadzhiev bda47204ce Merge pull request #5954 from Budibase/cypressTests
adding interact locators for AddMultiOptionDataType test
2022-05-18 15:10:18 +03:00
MihailHadzhiev2022 592a386066 adding interact locators for AddMultiOptionDataType test 2022-05-18 14:09:58 +03:00
Dean c77b026b53 Merge remote-tracking branch 'origin/develop' into feature/app-overview-section 2022-05-17 16:54:32 +01:00
Mitch-Budibase 042327d4f8 Update createApp.spec.js
Adding some waits around deleting apps - Specific issue against the Smoke build
2022-05-17 15:13:10 +01:00
Dean 4c25248de8 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 a4f3a90628 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 40b44035ea 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 92e6b40b81 Merge branch 'develop' into cypress-testing 2022-05-17 10:34:54 +01:00
Mitch-Budibase d79ccb62d5 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 a3d5213384 Update createApp.spec.js
resolve conflict
2022-05-17 11:02:24 +03:00
MihailHadzhiev2022 4926e77c72 adding locators
adding interact.js
adding locators
2022-05-16 15:32:04 +03:00
Mitch-Budibase d21ac62d01 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 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 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
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
Dean 7ec75361be Cypress test fixes 2022-05-09 18:00:04 +01:00
Mitch-Budibase 449ee80031 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 214b7f2612 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 d166ac805e 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 c2d6b12749 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 5c04f1b31f 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 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
Dean fb7e724b3a Cypress test fix 2022-04-26 14:41:27 +01:00
Dean bccaac253a Cypress test fix 2022-04-26 13:54:18 +01:00
Dean 8b8baf9bdd Merge remote-tracking branch 'origin/develop' into feature/new-app-publish-workflow 2022-04-26 12:12:50 +01:00
Dean 24a9656cbc Test fixes and code review refactoring 2022-04-26 12:04:07 +01:00
Dean 85928e72b2 Merge remote-tracking branch 'origin/develop' into feature/new-screen-addition-ui 2022-04-25 09:06:54 +01:00