ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 1 | export const initCommonFixtures = cy => { |
| 2 | cy.fixture('common/user-data').as('user-data'); |
| 3 | cy.fixture('common/setup-ui').as('setupUi'); |
| 4 | cy.fixture('common/data-types').as('data-types'); |
| 5 | cy.fixture('common/dashboard').as('dashboard'); |
| 6 | cy.fixture('common/plugins').as('plugins'); |
| 7 | cy.fixture('common/left-palette-elements-for-resource').as('left-palette-resource'); |
| 8 | cy.fixture('common/left-palette-elements-for-service').as('left-palette-service'); |
| 9 | cy.fixture('common/group-types').as('group-types'); |
| 10 | cy.fixture('common/policy-types').as('policy-types'); |
| 11 | |
| 12 | cy.route('GET', '**/authorize', '@user-data'); |
| 13 | cy.route('GET', '**/setup/ui', '@setupUi'); |
| 14 | cy.route('GET', '**/plugins', '@plugins'); |
| 15 | cy.route('GET', '**/dataTypes', '@data-types'); |
| 16 | cy.route('GET', '**/followed', '@dashboard'); |
| 17 | cy.route('GET', '**/latestversion/notabstract/metadata?internalComponentType=VF', '@left-palette-resource'); |
| 18 | cy.route('GET', '**/latestversion/notabstract/metadata?internalComponentType=SERVICE', '@left-palette-service'); |
| 19 | cy.route('GET', '**/catalog/groupTypes?internalComponentType=VF', '@group-types'); |
| 20 | cy.route('GET', '**/catalog/groupTypes?internalComponentType=SERVICE', '@group-types'); |
| 21 | cy.route('GET', '**/catalog/policyTypes?internalComponentType=VF', '@policy-types'); |
| 22 | cy.route('GET', '**/catalog/policyTypes?internalComponentType=SERVICE', '@policy-types'); |
| 23 | cy.viewport(1920, 1080); |
| 24 | }; |