diff --git a/components/campaigns/AnnoucementHero.js b/components/campaigns/AnnoucementHero.js
index 453ee7f7bc2e..b9c0f30857a1 100644
--- a/components/campaigns/AnnoucementHero.js
+++ b/components/campaigns/AnnoucementHero.js
@@ -19,7 +19,7 @@ function shouldShowBanner(cfpDeadline) {
export default function AnnouncementHero({ className = '', small = false, hideVideo = false }) {
//return null;
- const cfpDeadline = '2023-07-28T06:00:00Z'
+ const cfpDeadline = '2023-09-20T06:00:00Z'
const showBanner = shouldShowBanner(cfpDeadline);
if (!showBanner) return null;
@@ -48,12 +48,12 @@ export default function AnnouncementHero({ className = '', small = false, hideVi
20th of September, 2023 | London, UK
-
+
diff --git a/cypress/test/campaignTests/AnnouncementHero.cy.js b/cypress/test/campaignTests/AnnouncementHero.cy.js
index fe1c25b86272..092f10f5e90c 100644
--- a/cypress/test/campaignTests/AnnouncementHero.cy.js
+++ b/cypress/test/campaignTests/AnnouncementHero.cy.js
@@ -27,13 +27,16 @@ describe('AnnouncementHero Component', () => {
cy.get('h3').should('exist');
});
-
- it('should have a link to submit a session', () => {
- // Assert the link
- cy.get('[data-testid="Button-link"]').should('have.attr', 'href', 'https://conference.asyncapi.com/')
+ it('should have a link and text for the button', () => {
+ mount();
+ cy.get('[data-testid="Button-link"]')
.should('have.attr', 'target', '_blank')
- .contains('Submit a session');
- });
+ //making sure link starts with https://
+ .should('have.attr', 'href').and('match', /^https:\/\//)
+ cy.get('[data-testid="Button-link"]')
+ .find('span') // Find the element inside the
+ .and('not.be.empty');
+ });
//check if announcement rendered is small or large .
it('should render a small announcement when "small" prop is true', () => {