Skip to content

Commit d6f220b

Browse files
authored
Merge branch 'master' into 512
2 parents 2047d18 + 01c0799 commit d6f220b

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

cypress/e2e/Landing.cy.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
import path from "path";
2-
import cities from "../../config/city-lists.json"
2+
import cities from "../../config/city-lists.json";
33

44
describe("Landing Page Tests", () => {
55
beforeEach(() => {
66
cy.visit("/");
77
});
8+
89
it("Contains correct heading", () => {
910
const Year = new Date().getFullYear();
10-
cy.getTestData("landing-heading").contains(`AsyncAPI Conf On Tour ${Year}`);
11+
cy.getTestData("landing-heading").contains(new RegExp(`AsyncAPI Conf On Tour (${Year}|${Year-1})`));
1112
});
1213

1314
it("Should contain About Section", () => {
1415
cy.getTestData("about-section").should("be.visible");
1516
});
1617

1718
it("Verify the downloaded file", () => {
19+
const Year = new Date().getFullYear();
1820
cy.getTestData("prospectus-download").should("be.visible");
1921
cy.getTestData("prospectus-download").click();
2022

21-
const Year = new Date().getFullYear();
2223
const downloadsFolder = Cypress.config("downloadsFolder");
23-
cy.readFile(path.join(downloadsFolder, `conf ${Year}.pdf`));
24+
cy.readFile(path.join(downloadsFolder, `conf ${Year}.pdf`)).should("exist");
2425
});
2526

2627
it("Should contain Speakers section", () => {
@@ -37,21 +38,20 @@ describe("Landing Page Tests", () => {
3738

3839
it("Should contain logos in Sponsor component", () => {
3940
const eventSponsors = cities[0].sponsors.eventSponsors;
40-
41-
const financialSponsor = cities[0].sponsors.financialSponsors;
41+
const financialSponsors = cities[0].sponsors.financialSponsors;
4242

4343
eventSponsors.forEach((sponsor) => {
44-
cy.getTestData('sponsor-section')
44+
cy.getTestData("sponsor-section")
4545
.find(`img[src="${sponsor.image}"]`)
46-
.should('be.visible');
47-
cy.get(`a[href="${sponsor.websiteUrl}"]`).should('exist');
46+
.should("be.visible");
47+
cy.get(`a[href="${sponsor.websiteUrl}"]`).should("exist");
4848
});
4949

50-
financialSponsor.forEach((sponsor) => {
51-
cy.getTestData('sponsor-section')
50+
financialSponsors.forEach((sponsor) => {
51+
cy.getTestData("sponsor-section")
5252
.find(`img[src="${sponsor.image}"]`)
53-
.should('be.visible');
54-
cy.get(`a[href="${sponsor.websiteUrl}"]`).should('exist');
53+
.should("be.visible");
54+
cy.get(`a[href="${sponsor.websiteUrl}"]`).should("exist");
5555
});
5656
});
5757

pages/venue/[id].js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function Venue({ city }) {
4343
<div data-test={`venue-${city.name}`}>
4444
<div className= {`w-full h-[500px] sm:h-[auto] ${city.name=='Online'?'bg-online':'bg-madrid'} bg-cover bg-center`}>
4545
<div className='w-full h-full kinda-dark items-center flex flex-col justify-between'>
46-
<div className='mt-[60px] container text-center flex flex-col items-center w-[1100px] lg:w-full sm:text-center'>
46+
<div className='mt-[68px] container text-center flex flex-col items-center w-[1100px] lg:w-full sm:text-center'>
4747
{city.name == 'Online' ? <Heading className={textColor}>
4848
{city.name} {city.country}
4949
</Heading> :

0 commit comments

Comments
 (0)