Commit Graph

74 Commits

Author SHA1 Message Date
Phillip Rak 2307ce3aea Unit test `ButtonMultiAction.vue`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-26 16:28:40 -07:00
Giuseppe Leo 519e2e3ebd
Feature/11881 unit input type fix (#11939)
* Add container resource limit tests

Add real case scenario for unit input component

Add input test for container resource limit

Add base unit to unit input test

Add blur test for container resource limit and unit input

Extend input tests to all cases

Add test case with parent passing value and update on emission

Update tests

Update tests to match emitters

* Add emitters for unit input

* Accept ID pairing with data suggestion fix

Co-authored-by: Phillip Rak <rak.phillip@gmail.com>

* Enable tests after fix

---------

Co-authored-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-18 17:02:28 +02:00
Nancy 85c5c28c22
Vue3 fix unit tests (#11776)
* remove $set from AKS validators

* fix cruGKE not rendering

* fix most aks unit tests

* fix crueks and eks config unit tests

* fix eks networking and nodegroup unit tests

* fix gke unit tests

* fix consumption gauge test

* fix namespacefilter tests

* fix command and taints unit tests

* fix questions unit tests

* fix hpa and service unit tests

* fix registryconfigs unit tests

* fix job unit tests

* fix longhorn unit tests

* fix addextensionsrepos unit tests

* fix rke2 basics unit tests

* fix container shell unit tests

* fix last aks pool test

* fix mount tests

* fix namespace and pv unit tests

* fix codemirror unit tests

* clean up aks, boolean, namespacefilter unit tests

* fix namespacefilter test

* remove redundant test case
2024-09-10 08:07:21 -07:00
Cody Jackson 8d59cd5914 Skipping all failing unit tests for the Vue3 merge. 2024-08-22 21:12:40 -07:00
Phillip Rak a71857ce7d Unit test updates - partially fixed
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:56 -07:00
Phillip Rak 0fb02f5b2d Unit test updates
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:56 -07:00
Cody Jackson fe4fc0cd63 Rebase fixes 2024-08-22 16:09:56 -07:00
Phillip Rak bd8d57bcac Unit test updates
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:54 -07:00
Phillip Rak 97b58ca4f0 Update unit tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:54 -07:00
Phillip Rak e39ce7899f Resolve a batch of unit test failures
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:54 -07:00
cnotv 78d70353c5 Unit test: Migrate unit tests with the script 2024-08-22 16:07:03 -07:00
Cody Jackson d744a0d8b3 Switch out/remove the deprecated createLocalValue for the plugins: [Vuex]
This only addresses the complaints made by the cli when running. There are still more instances of createLocalVue

https://stackoverflow.com/questions/66932839/typeerror-0-testutils-createlocalvue-is-not-a-function
2024-08-22 16:05:36 -07:00
Neil MacDougall 09814e99b0
Improve keyboard mapping display (#11131)
* Improve keyboard mapping indicator

* Improve display and animation of close

* Add e2e tests

* Fix lint issues

* Update unit tests

* Fix unit test and reduce animation time
2024-06-03 09:52:44 +01:00
Giuseppe Leo 43ef5fc390
Clean up entry logic for vue.config (#11048)
* Cleanup entry for vue configuration

Rename reserved function terms

Correct extendApp initialization by passing Vue attribute

Avoid reserved name Vue

Set more unique and meaningful file names

Remove deprecated code added with rebase

Add vue instance to mountApp

Add comments and references to TODO issue

Restore function declaration over binding issue

Rename apps and correct issue with the render

Rebase residual cleanup

Remove unnecessary env var related to Nuxt

Remove deprecated confit assignment

Revert render function refactoring

* Fix Dashboard version issue
2024-05-29 11:09:43 +02:00
Richard Cox 50af7e5c0e
Merge pull request #10962 from richard-cox/cert-e2e-tests
Add automated tests for Cluster Dashboard Certificates view
2024-05-09 15:05:29 +01:00
Evgeniya Vashkevich 6bd67ba3ff
[INT] Refactored some of the plugins - 3 (#10946)
[INT] Refactored some of the plugins - 3
2024-05-08 15:10:27 -07:00
Evgeniya Vashkevich ff7b13696d
[INT] Refactored some of the plugins - 2 (#10944)
[INT] Refactored some of the plugins - 2
2024-05-07 14:37:36 -07:00
Richard Cox 4c542cc1b7 Add unit test for expiring
- had hoped to check text and row state but child components are stubbed
2024-05-07 17:25:36 +01:00
Giuseppe Leo 793f7c6023
Initial migration of Vue3 for compatible fixes (#10858)
* Correct file naming and small TS issues

Correct TS related issues

* Manual replacement of :is on standard HTML tags

* Add missing required in the code dependencies

* Correct SCSS import

* Correct test file naming

* Correct typo in markup

* Use alias for types import
2024-04-23 20:16:46 +02:00
Alexandre Alves 764fa6087d
add e2e tests for #10389 and #9926 (#10745)
* add e2e tests for #10389 and #9926

* disable eslint for massive blueprint schema file

* fix e2e test issue + sneaky improvement for carousel unit test

* uncomment missing e2e test

* simplify schemas data and logic to generate a V2 monitoring on a local cluster for e2e tests

* minor code cleanup
2024-04-10 08:41:18 +01:00
Alexandre Alves 00e4f83c34
code cleanup + fix breaking logic on unit test with non-existance of nodes to clone + add unit test (#10737) 2024-04-02 17:19:29 +01:00
Phillip Rak 6206f9763c
Merge pull request #10716 from rak-phillip/chore/remove-nuxt-link
Replace `nuxt-link` with `router-link`
2024-04-01 08:00:12 -07:00
Neil MacDougall 0770ab76e5
Add unit tests for etcd banner fix (#10692)
* Add unit tests for etcd banner fix

* Fix lint issues
2024-03-28 16:58:39 +00:00
Phillip Rak fdc415d437 Use correct stubs in unit tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-27 14:29:55 -07:00
Phillip Rak 6e9f80c8c2
Merge pull request #10689 from rak-phillip/chore/simple-store
Replace `createNamespace` pattern with a simple store for sharing data
2024-03-27 07:59:46 -07:00
Richard Cox 89d4eab4ca
Merge pull request #10455 from richard-cox/fix-dup-mgmt-setting-requests
Remove duplicate calls to mgmt settings on fresh load
2024-03-27 11:03:21 +00:00
Phillip Rak e5bbf42c52 Mock `dispatch` for unit tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-26 10:38:29 -07:00
Richard Cox 340b7170c5 Fix FixedBanner unit tests 2024-03-25 17:01:01 +00:00
Phillip Rak 5d849775e6 Fix error in AppModal width validator
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-21 15:42:26 -07:00
Phillip Rak 1f02f9e4d2 Fix width for `AppModal.vue`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-07 14:28:47 -07:00
Phillip Rak fa399ee34c Create a new `AppModal` component
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-07 10:46:35 -07:00
codyrancher 1dfd3c0c2c
Merge pull request #10333 from codyrancher/title
More informative page titles
2024-02-15 09:43:57 -07:00
Francesco Torchia 4315f41979
Add Yaml keymap box to the storybook; code refactoring; add close button unit test
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-02-13 17:47:26 +01:00
Francesco Torchia 1e585b9469
Add CodeMirror unit tests
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-02-13 11:56:04 +01:00
Cody Jackson 36a31a397e More informative page titles 2024-02-12 20:11:45 -07:00
Evgeniya Vashkevich 25618ad4a0
[INT] Replaced vue-clipboard2 library with clipboard-polyfill (#10072)
* [INT] Replaced vue-clipboard2 library with clipboard-polyfill
2023-11-30 16:31:35 -08:00
Evgeniya Vashkevich 92d810399a
[FEAT] Removed all mentions of Pod Security Policies (#9962) 2023-11-01 11:02:43 -07:00
Alexandre Alves a68a49730e
fix issue with project resource quotas fields being cleared + add unit tests (#9808)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-09-29 12:54:08 +01:00
Bastian Hofmann b6429cfd5c Fix lint
Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
2023-08-24 13:58:29 +01:00
Bastian Hofmann dcb8b2542b Fix tests
Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
2023-08-24 13:58:29 +01:00
momesgin 17f5bb58aa
filter RKE1 s3 snapshots (#9460)
Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2023-08-02 09:03:24 -07:00
momesgin 7896059c49
filter failed snapshots (#9390)
* filter failed snapshots

* fixed import

* added one more test case

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2023-07-26 10:28:53 -07:00
Francesco Torchia b2bf86bb08
Merge remote-tracking branch 'upstream/master' into merge-master-to-epinio-dev 2023-06-22 12:58:57 +02:00
richa e7fbf0dfcd
Onenter newline textarea (#9116)
* Added test for preventDefault

* Added test for prevent default event on keypress Enter in CruResource component

* Removed test console log

* Fixed lint

* Added data-testid to form

* Fixed lint

* Add new line on pressing enter

* Test enter new line

* Test textarea Enter button in CruResource form

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>

---------

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
Co-authored-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-20 15:43:34 +02:00
Richard Cox 48f1114006 Merge remote-tracking branch 'upstream/master' into epinio-dev 2023-06-19 15:40:07 +01:00
richa 65fc1d2dad
Automation preventdefault on press enter (#9088)
* Added test for preventDefault

* Added test for prevent default event on keypress Enter in CruResource component

* Removed test console log

* Fixed lint

* Added data-testid to form

* Fixed lint
2023-06-16 14:16:00 +02:00
Richard Cox d90ba881a6 Merge remote-tracking branch 'upstream/master' into merge-master-2 2023-05-25 16:51:00 +01:00
Richard Cox 936d35bdb1 Fix failing tests 2023-05-18 14:28:28 +01:00
Giuseppe Leo 467a456b1b
Remove previous implementation of hiding PSP check for clusters with K8S 1.25 even if PSP is enabled in charts installation/update (#8553)
* Remove PSP checkbox logic for default charts

* Remove PSP value check for custom charts using shared component
2023-03-31 08:54:56 +02:00
Giuseppe Leo d0eb4f32c2
Custom chart UIs show PSP switch on Kubernetes v1.25 (#8505)
* Formatting test code

* Remove wrapping styles from ChartPsp checkbox

* Add PSP display condition; allow to pass title

* Prevent checkbox to disappear on value change on certain conditions

* Ignore path for given map of charts/keys if k8s >= 1.25 and PSP is disabled

* Changed way to retrieve cluster version to standard method
2023-03-27 18:02:03 +02:00