Skip to content

Commit

Permalink
Merge branch 'master' into 512
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmit-coder authored Jan 23, 2025
2 parents 2047d18 + 01c0799 commit d6f220b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions cypress/e2e/Landing.cy.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
import path from "path";
import cities from "../../config/city-lists.json"
import cities from "../../config/city-lists.json";

describe("Landing Page Tests", () => {
beforeEach(() => {
cy.visit("/");
});

it("Contains correct heading", () => {
const Year = new Date().getFullYear();
cy.getTestData("landing-heading").contains(`AsyncAPI Conf On Tour ${Year}`);
cy.getTestData("landing-heading").contains(new RegExp(`AsyncAPI Conf On Tour (${Year}|${Year-1})`));
});

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

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

const Year = new Date().getFullYear();
const downloadsFolder = Cypress.config("downloadsFolder");
cy.readFile(path.join(downloadsFolder, `conf ${Year}.pdf`));
cy.readFile(path.join(downloadsFolder, `conf ${Year}.pdf`)).should("exist");
});

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

it("Should contain logos in Sponsor component", () => {
const eventSponsors = cities[0].sponsors.eventSponsors;

const financialSponsor = cities[0].sponsors.financialSponsors;
const financialSponsors = cities[0].sponsors.financialSponsors;

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

financialSponsor.forEach((sponsor) => {
cy.getTestData('sponsor-section')
financialSponsors.forEach((sponsor) => {
cy.getTestData("sponsor-section")
.find(`img[src="${sponsor.image}"]`)
.should('be.visible');
cy.get(`a[href="${sponsor.websiteUrl}"]`).should('exist');
.should("be.visible");
cy.get(`a[href="${sponsor.websiteUrl}"]`).should("exist");
});
});

Expand Down
2 changes: 1 addition & 1 deletion pages/venue/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function Venue({ city }) {
<div data-test={`venue-${city.name}`}>
<div className= {`w-full h-[500px] sm:h-[auto] ${city.name=='Online'?'bg-online':'bg-madrid'} bg-cover bg-center`}>
<div className='w-full h-full kinda-dark items-center flex flex-col justify-between'>
<div className='mt-[60px] container text-center flex flex-col items-center w-[1100px] lg:w-full sm:text-center'>
<div className='mt-[68px] container text-center flex flex-col items-center w-[1100px] lg:w-full sm:text-center'>
{city.name == 'Online' ? <Heading className={textColor}>
{city.name} {city.country}
</Heading> :
Expand Down

0 comments on commit d6f220b

Please sign in to comment.