diff --git a/cypress/component/AllServicesPage/AllServicesPage.cy.tsx b/cypress/component/AllServicesPage/AllServicesPage.cy.tsx index 3f27c4a56..3fc8141e6 100644 --- a/cypress/component/AllServicesPage/AllServicesPage.cy.tsx +++ b/cypress/component/AllServicesPage/AllServicesPage.cy.tsx @@ -8,6 +8,8 @@ import { ScalprumProvider } from '@scalprum/react-core'; import { getVisibilityFunctions, initializeVisibilityFunctions } from '../../../src/utils/VisibilitySingleton'; import userFixture from '../../fixtures/testUser.json'; import { ChromeUser } from '@redhat-cloud-services/types'; +import { FeatureFlagsProvider } from '../../../src/components/FeatureFlags'; +import ChromeAuthContext from '../../../src/auth/ChromeAuthContext'; describe('', () => { beforeEach(() => { @@ -31,6 +33,7 @@ describe('', () => { it('should filter by service category title', () => { initializeVisibilityFunctions({ + isPreview: false, getToken: () => Promise.resolve(''), getUser: () => Promise.resolve(userFixture as unknown as ChromeUser), getUserPermissions: () => Promise.resolve([]), @@ -48,22 +51,28 @@ describe('', () => { }, })); cy.mount( - - - - - - - - - + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + + + + + + + + + + + + + ); cy.get('.pf-v5-c-text-input-group__text-input').type('consoleset');