diff --git a/cypress/e2e/knowledge-models/deprecated.spec.js b/cypress/e2e/knowledge-models/deprecated.spec.js index dc2b8fa..627c68b 100644 --- a/cypress/e2e/knowledge-models/deprecated.spec.js +++ b/cypress/e2e/knowledge-models/deprecated.spec.js @@ -10,6 +10,8 @@ describe('Deprecated KM', () => { } before(() => { + cy.putDefaultAppConfig() + cy.task('package:delete', { km_id: kmId }) cy.clearServerCache() @@ -21,6 +23,7 @@ describe('Deprecated KM', () => { // set KM deprecated cy.visitApp(`/knowledge-models/${orgId}:${kmId}:${version}`) + cy.get('.ListingDropdown').should('be.visible') cy.clickDropdownAction('set-deprecated') // check it was set @@ -28,11 +31,13 @@ describe('Deprecated KM', () => { // check it is not suggested cy.visitApp('/projects/create') + cy.getCy('project_create_nav_custom').click() searchKM(kmId) cy.get('.TypeHintInput__TypeHints .empty').should('exist') // restore KM cy.visitApp(`/knowledge-models/${orgId}:${kmId}:${version}`) + cy.get('.ListingDropdown').should('be.visible') cy.clickDropdownAction('restore') // check it is suggested again