Skip to content

Commit d9ab916

Browse files
committed
close popup during cypress tests
1 parent be4a611 commit d9ab916

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

cypress/e2e/Footer.cy.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ describe('Footer links', () => {
44
});
55

66
it('Footer Should be visible', () => {
7+
cy.getTestData('close-button').click();
8+
cy.wait(350);
79
cy.getTestData('footer').should('be.visible');
810
});
911

@@ -58,6 +60,8 @@ describe('Footer links', () => {
5860
});
5961

6062
it('Should Contain AsycAPI Conference Logo', () => {
63+
cy.getTestData('close-button').click();
64+
cy.wait(350);
6165
cy.getTestData('footer-asyncAPI-logo').should('be.visible');
6266
});
6367
});

cypress/e2e/Landing.cy.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ describe('Landing Page Tests', () => {
1515
});
1616

1717
it('Should contain About Section', () => {
18+
cy.getTestData('close-button').click();
19+
cy.wait(350);
1820
cy.getTestData('about-section').should('be.visible');
1921
});
2022

@@ -30,6 +32,8 @@ describe('Landing Page Tests', () => {
3032
});
3133

3234
it('Should contain Speakers section', () => {
35+
cy.getTestData('close-button').click();
36+
cy.wait(350);
3337
if (Array.isArray(speakers) && speakers.length > 0) {
3438
cy.getTestData('sponsor-section').should('be.visible');
3539
} else {
@@ -40,14 +44,20 @@ describe('Landing Page Tests', () => {
4044
});
4145

4246
it('Should contain Ticket section', () => {
47+
cy.getTestData('close-button').click();
48+
cy.wait(350);
4349
cy.getTestData('ticket-section').should('be.visible');
4450
});
4551

4652
it('Should contain Sponsor component', () => {
53+
cy.getTestData('close-button').click();
54+
cy.wait(350);
4755
cy.getTestData('sponsor-section').should('be.visible');
4856
});
4957

5058
it('Should contain logos in Sponsor component', () => {
59+
cy.getTestData('close-button').click();
60+
cy.wait(350);
5161
const eventSponsors = cities[0].sponsors.eventSponsors;
5262

5363
eventSponsors.forEach((sponsor) => {

0 commit comments

Comments
 (0)