diff --git a/cypress/test/components/campaignTests/AnnouncementHero.cy.js b/cypress/test/components/campaignTests/AnnouncementHero.cy.js
index 3d5444d9b200..a2dc55b29bcc 100644
--- a/cypress/test/components/campaignTests/AnnouncementHero.cy.js
+++ b/cypress/test/components/campaignTests/AnnouncementHero.cy.js
@@ -7,26 +7,28 @@ beforeEach(() => {
mount();
});
+// .skip should be removed once the AnnouncementHero component is rendered in the website
describe('AnnouncementHero Component', () => {
- it('should render the component when the date is within the valid range', () => {
+ it.skip('should render the component when the date is within the valid range', () => {
const mockDate = new Date(2021, 10, 12).getTime();
cy.clock(mockDate);
cy.get('[data-testid="AnnouncementHero-main-div"]').should('exist');
});
//check if announcement rendered is small or large .
- it('should render a small announcement when "small" prop is true', () => {
+ it.skip('should render a small announcement when "small" prop is true', () => {
mount();
cy.get('[data-testid="AnnouncementHero-main-div"]').should('have.class', 'mb-4');
});
- it('should display the correct event information', () => {
+ it.skip('should display the correct event information', () => {
// Assert the event details
cy.get('[data-testid="Paragraph-test"]').should('exist');
cy.get('h2').should('exist');
});
- it('should have a link and text for the button', () => {
+
+ it.skip('should have a link and text for the button', () => {
mount();
cy.get('[data-testid="Button-link"]')
.should('have.attr', 'target', '_blank')
@@ -38,7 +40,7 @@ describe('AnnouncementHero Component', () => {
});
//check if announcement rendered is small or large .
- it('should render a small announcement when "small" prop is true', () => {
+ it.skip('should render a small announcement when "small" prop is true', () => {
const mockDate = new Date('2023-05-01T00:00:00Z');
cy.clock(mockDate.getTime());
@@ -47,7 +49,7 @@ describe('AnnouncementHero Component', () => {
cy.get('[data-testid="AnnouncementHero-main-div"]').should('have.class', 'mb-4');
});
- it('should render a large announcement when "small" prop is false', () => {
+ it.skip('should render a large announcement when "small" prop is false', () => {
const mockDate = new Date('2023-05-01T00:00:00Z');
cy.clock(mockDate.getTime());
diff --git a/cypress/test/components/campaignTests/Banner.cy.js b/cypress/test/components/campaignTests/Banner.cy.js
index 5ec6e4a1b472..fb196376002d 100644
--- a/cypress/test/components/campaignTests/Banner.cy.js
+++ b/cypress/test/components/campaignTests/Banner.cy.js
@@ -2,8 +2,9 @@ import React from 'react';
import { mount } from '@cypress/react';
import Banner from '../../../../components/campaigns/Banner';
+// .skip should be removed once the Banner component is rendered in the website with default functionalities
describe('Banner Component', () => {
- it('should not render the banner when the date is not within the valid range', () => {
+ it.skip('should not render the banner when the date is not within the valid range', () => {
const today = new Date();
const [day, month, year] = [today.getUTCDate(), today.getUTCMonth(), today.getUTCFullYear()];
if (year > 2022 || month !== 10 || day < 6) {
@@ -17,21 +18,21 @@ describe('Banner Component', () => {
}
});
- it('should render the banner when the date is within the valid range', () => {
+ it.skip('should render the banner when the date is within the valid range', () => {
const mockDate = new Date(2021, 10, 12).getTime();
cy.clock(mockDate);
mount();
cy.get('[data-testid="Banner-main-div"]').should('be.visible');
});
- it('should display the correct message when the date is within the valid range', () => {
+ it.skip('should display the correct message when the date is within the valid range', () => {
const mockDate = new Date(2021, 10, 12).getTime();
cy.clock(mockDate);
mount();
cy.contains('.font-medium', 'AsyncAPI Conference 2022 has ended').should('be.visible');
});
- it('should have a link to the recordings playlist', () => {
+ it.skip('should have a link to the recordings playlist', () => {
const mockDate = new Date(2021, 10, 12).getTime();
cy.clock(mockDate);
mount();
@@ -41,7 +42,7 @@ describe('Banner Component', () => {
.should('have.attr', 'rel', 'noopener noreferrer');
});
- it('should have the max-w-screen-xl class in the div element', () => {
+ it.skip('should have the max-w-screen-xl class in the div element', () => {
const mockDate = new Date(2021, 10, 12).getTime();
cy.clock(mockDate);
mount();