diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-22 21:10:26 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-22 21:10:26 +0300 |
commit | a3ffaa242bb3b9b4c95a8223ca800126887e3a82 (patch) | |
tree | baf3d90b38dd8c93873498c838e8b0894c74d3ea /spec/frontend/google_cloud | |
parent | adaa4599f18149e0fb8f8e120a7ed8e7d05e36be (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/google_cloud')
-rw-r--r-- | spec/frontend/google_cloud/databases/panel_spec.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/frontend/google_cloud/databases/panel_spec.js b/spec/frontend/google_cloud/databases/panel_spec.js index 490c0136651..e6a0d74f348 100644 --- a/spec/frontend/google_cloud/databases/panel_spec.js +++ b/spec/frontend/google_cloud/databases/panel_spec.js @@ -2,6 +2,8 @@ import { shallowMountExtended } from 'helpers/vue_test_utils_helper'; import Panel from '~/google_cloud/databases/panel.vue'; import IncubationBanner from '~/google_cloud/components/incubation_banner.vue'; import GoogleCloudMenu from '~/google_cloud/components/google_cloud_menu.vue'; +import ServiceTable from '~/google_cloud/databases/service_table.vue'; +import InstanceTable from '~/google_cloud/databases/cloudsql/instance_table.vue'; describe('google_cloud/databases/panel', () => { let wrapper; @@ -10,6 +12,11 @@ describe('google_cloud/databases/panel', () => { configurationUrl: 'configuration-url', deploymentsUrl: 'deployments-url', databasesUrl: 'databases-url', + cloudsqlPostgresUrl: 'cloudsql-postgres-url', + cloudsqlMysqlUrl: 'cloudsql-mysql-url', + cloudsqlSqlserverUrl: 'cloudsql-sqlserver-url', + cloudsqlInstances: [], + emptyIllustrationUrl: 'empty-illustration-url', }; beforeEach(() => { @@ -33,4 +40,14 @@ describe('google_cloud/databases/panel', () => { expect(target.props('deploymentsUrl')).toBe(props.deploymentsUrl); expect(target.props('databasesUrl')).toBe(props.databasesUrl); }); + + it('contains Databases service table', () => { + const target = wrapper.findComponent(ServiceTable); + expect(target.exists()).toBe(true); + }); + + it('contains CloudSQL instance table', () => { + const target = wrapper.findComponent(InstanceTable); + expect(target.exists()).toBe(true); + }); }); |