aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/cypress/common
diff options
context:
space:
mode:
authorys9693 <ys9693@att.com>2020-01-19 13:50:02 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-01-22 12:33:31 +0000
commit16a9fce0e104a38371a9e5a567ec611ae3fc7f33 (patch)
tree03a2aff3060ddb5bc26a90115805a04becbaffc9 /catalog-ui/cypress/common
parentaa83a2da4f911c3ac89318b8e9e8403b072942e1 (diff)
Catalog alignment
Issue-ID: SDC-2724 Signed-off-by: ys9693 <ys9693@att.com> Change-Id: I52b4aacb58cbd432ca0e1ff7ff1f7dd52099c6fe
Diffstat (limited to 'catalog-ui/cypress/common')
-rw-r--r--catalog-ui/cypress/common/init.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/catalog-ui/cypress/common/init.js b/catalog-ui/cypress/common/init.js
new file mode 100644
index 0000000000..41280e6c06
--- /dev/null
+++ b/catalog-ui/cypress/common/init.js
@@ -0,0 +1,24 @@
+export const initCommonFixtures = cy => {
+ cy.fixture('common/user-data').as('user-data');
+ cy.fixture('common/setup-ui').as('setupUi');
+ cy.fixture('common/data-types').as('data-types');
+ cy.fixture('common/dashboard').as('dashboard');
+ cy.fixture('common/plugins').as('plugins');
+ cy.fixture('common/left-palette-elements-for-resource').as('left-palette-resource');
+ cy.fixture('common/left-palette-elements-for-service').as('left-palette-service');
+ cy.fixture('common/group-types').as('group-types');
+ cy.fixture('common/policy-types').as('policy-types');
+
+ cy.route('GET', '**/authorize', '@user-data');
+ cy.route('GET', '**/setup/ui', '@setupUi');
+ cy.route('GET', '**/plugins', '@plugins');
+ cy.route('GET', '**/dataTypes', '@data-types');
+ cy.route('GET', '**/followed', '@dashboard');
+ cy.route('GET', '**/latestversion/notabstract/metadata?internalComponentType=VF', '@left-palette-resource');
+ cy.route('GET', '**/latestversion/notabstract/metadata?internalComponentType=SERVICE', '@left-palette-service');
+ cy.route('GET', '**/catalog/groupTypes?internalComponentType=VF', '@group-types');
+ cy.route('GET', '**/catalog/groupTypes?internalComponentType=SERVICE', '@group-types');
+ cy.route('GET', '**/catalog/policyTypes?internalComponentType=VF', '@policy-types');
+ cy.route('GET', '**/catalog/policyTypes?internalComponentType=SERVICE', '@policy-types');
+ cy.viewport(1920, 1080);
+};