From 1fffaeb38c40a0abe8d328ed20b48262b6a02bff Mon Sep 17 00:00:00 2001 From: Kevin Cormier Date: Thu, 5 Dec 2024 14:56:30 -0500 Subject: [PATCH] Revert "Temporarily skip YAML editor tests" This reverts commit b82b1dbb262b71ab785b3cd6c7c13ce3ca9d3e46. Signed-off-by: Kevin Cormier --- frontend/src/components/SyncEditor/SyncEditor.test.tsx | 2 +- frontend/src/components/TemplateEditor/TemplateEditor.test.js | 2 +- .../ApplicationTopology/components/YAMLContainer.test.tsx | 2 +- frontend/src/routes/Credentials/CredentialsForm.test.tsx | 2 +- .../policy-details/PolicyTemplateDetailsPage.test.tsx | 4 ++-- .../Automations/AnsibleAutomationsForm.test.tsx | 2 +- frontend/src/wizards/Governance/Policy/policyWizard.test.tsx | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/SyncEditor/SyncEditor.test.tsx b/frontend/src/components/SyncEditor/SyncEditor.test.tsx index 62ebf00ca..3ed7259c9 100644 --- a/frontend/src/components/SyncEditor/SyncEditor.test.tsx +++ b/frontend/src/components/SyncEditor/SyncEditor.test.tsx @@ -24,7 +24,7 @@ type Decorators = } }[] -describe.skip('SyncEditor component', () => { +describe('SyncEditor component', () => { afterAll(() => { jest.resetAllMocks() }) diff --git a/frontend/src/components/TemplateEditor/TemplateEditor.test.js b/frontend/src/components/TemplateEditor/TemplateEditor.test.js index e25057e3e..472186e50 100644 --- a/frontend/src/components/TemplateEditor/TemplateEditor.test.js +++ b/frontend/src/components/TemplateEditor/TemplateEditor.test.js @@ -130,7 +130,7 @@ describe('TemplateEditor component', () => { props.editorReadOnly = false }) - it.skip('yaml editing/toolbar', async () => { + it('yaml editing/toolbar', async () => { window.ResizeObserver = ResizeObserver document.execCommand = () => {} diff --git a/frontend/src/routes/Applications/ApplicationDetails/ApplicationTopology/components/YAMLContainer.test.tsx b/frontend/src/routes/Applications/ApplicationDetails/ApplicationTopology/components/YAMLContainer.test.tsx index 36acc9912..f63c61b69 100644 --- a/frontend/src/routes/Applications/ApplicationDetails/ApplicationTopology/components/YAMLContainer.test.tsx +++ b/frontend/src/routes/Applications/ApplicationDetails/ApplicationTopology/components/YAMLContainer.test.tsx @@ -8,7 +8,7 @@ const t = (string: any) => { return string } -describe.skip('YAML Container test', () => { +describe('YAML Container test', () => { const renderYAMLContainer = async (node: any, t: TFunction) => { const containerRef = {} as unknown as HTMLDivElement const retResource = render( diff --git a/frontend/src/routes/Credentials/CredentialsForm.test.tsx b/frontend/src/routes/Credentials/CredentialsForm.test.tsx index 74ceae99a..b3ed97723 100644 --- a/frontend/src/routes/Credentials/CredentialsForm.test.tsx +++ b/frontend/src/routes/Credentials/CredentialsForm.test.tsx @@ -75,7 +75,7 @@ describe('add credentials page', () => { await waitForNock(createNock) }) - it.skip('should create aws (Amazon Web Services) s3 credentials', async () => { + it('should create aws (Amazon Web Services) s3 credentials', async () => { render() const providerConnection = createProviderConnection( 'awss3', diff --git a/frontend/src/routes/Governance/policies/policy-details/PolicyTemplateDetailsPage.test.tsx b/frontend/src/routes/Governance/policies/policy-details/PolicyTemplateDetailsPage.test.tsx index 23c218b6b..42016a78e 100644 --- a/frontend/src/routes/Governance/policies/policy-details/PolicyTemplateDetailsPage.test.tsx +++ b/frontend/src/routes/Governance/policies/policy-details/PolicyTemplateDetailsPage.test.tsx @@ -492,7 +492,7 @@ describe('Policy Template Details Page', () => { }, ])() }) - test.skip('Should render Policy Template Details Page', async () => { + test('Should render Policy Template Details Page', async () => { const path = '/multicloud/governance/policies/details/test/parent-policy/template/test-cluster/' + 'policy.open-cluster-management.io/v1/ConfigurationPolicy/config-policy' @@ -1140,7 +1140,7 @@ describe('Policy Template Details Page', () => { await waitForText('IamPolicy is no longer supported') }) - test.skip('Should render discovered policy detail page successfully', async () => { + test('Should render discovered policy detail page successfully', async () => { const getResourceNock = nockGet(getResourceRequest, getResourceResponse) const { container } = render( diff --git a/frontend/src/routes/Infrastructure/Automations/AnsibleAutomationsForm.test.tsx b/frontend/src/routes/Infrastructure/Automations/AnsibleAutomationsForm.test.tsx index 50b6791bd..e6d9a770c 100644 --- a/frontend/src/routes/Infrastructure/Automations/AnsibleAutomationsForm.test.tsx +++ b/frontend/src/routes/Infrastructure/Automations/AnsibleAutomationsForm.test.tsx @@ -202,7 +202,7 @@ describe('add automation template page', () => { nockIgnoreOperatorCheck(true) }) - it.skip('should create a curator template', async () => { + it('should create a curator template', async () => { render() // template information diff --git a/frontend/src/wizards/Governance/Policy/policyWizard.test.tsx b/frontend/src/wizards/Governance/Policy/policyWizard.test.tsx index 2fb59ad6d..54beb3525 100644 --- a/frontend/src/wizards/Governance/Policy/policyWizard.test.tsx +++ b/frontend/src/wizards/Governance/Policy/policyWizard.test.tsx @@ -150,7 +150,7 @@ describe('Policy wizard', () => { expect(container.querySelector('#objectdefinition-spec-remediationaction-form-group')).toBeNull() }) - test.skip('single namespace mode of OperatorPolicy', async () => { + test('single namespace mode of OperatorPolicy', async () => { const { container } = render() screen.getByRole('button', { name: /policy templates/i }).click() @@ -191,7 +191,7 @@ describe('Policy wizard', () => { }) }) - test.skip('all namespace mode of OperatorPolicy', async () => { + test('all namespace mode of OperatorPolicy', async () => { const { container } = render() screen.getByRole('button', { name: /policy templates/i }).click() -- 2.39.1