-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Demian Godon
authored and
Demian Godon
committed
Oct 4, 2023
1 parent
a55212c
commit 76d0838
Showing
4 changed files
with
54 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,73 @@ | ||
describe("About page tests", () => { | ||
describe('About page tests', () => { | ||
beforeEach(() => { | ||
cy.visit("/about", { timeout: 30000 }); | ||
cy.visit('/about', { timeout: 30000 }); | ||
}); | ||
|
||
it("About header renders", () => { | ||
it('About header renders', () => { | ||
cy.get('[data-cy="about-header-header"]') | ||
.should("be.visible") | ||
.and("contain", "Transnational Job Listing Channel"); | ||
cy.get('[data-cy="about-header-body"]') | ||
.should("be.visible") | ||
.and("contain", "So many jobs available, all you have to do is keep up with our posts. Check below for recent job openings."); | ||
.should('be.visible') | ||
.and('contain', 'Transnational Job Listing Channel'); | ||
cy.contains('p', 'So many jobs available, all you have to do is keep up with our posts. Check below for recent job openings.') | ||
.should('be.visible'); | ||
}); | ||
|
||
it("About banner renders", () => { | ||
cy.get('[data-cy="about-banner-header"]') | ||
.should("be.visible") | ||
.should('be.visible') | ||
.and('contain', 'Have a question?'); | ||
cy.contains('p', 'If you have any questions, please contact us') | ||
.should('be.visible'); | ||
cy.get('[data-cy="about-banner-button"]') | ||
.within(() => { | ||
cy.validateLink('Contact Us', '/contact'); | ||
}); | ||
cy.contains('p', 'Follow us on Social Media:') | ||
.should('be.visible'); | ||
cy.get('main > div > section').eq(1) | ||
.within(() => { | ||
cy.validateLink('Twitter for Tech Is Hiring', 'https://www.twitter.com/TechIsHiring/') | ||
cy.validateLink('LinkedIn for Tech Is Hiring', 'https://www.linkedin.com/company/TechIsHiring/') | ||
cy.validateLink('YouTube for Tech Is Hiring', 'https://www.youtube.com/@TechIsHiring') | ||
}) | ||
}); | ||
|
||
it("About banner renders on mobile", () => { | ||
cy.viewport('iphone-5') | ||
cy.get('[data-cy="about-banner-header"]') | ||
.should('be.visible') | ||
.and("contain", "Have a question?"); | ||
cy.get('[data-cy="about-banner-body"]') | ||
.should("be.visible") | ||
.and("contain", "If you have any questions, please contact us"); | ||
cy.contains('p', 'If you have any questions, please contact us') | ||
.should('be.visible'); | ||
cy.get('[data-cy="about-banner-button"]') | ||
.within(() => { | ||
cy.validateLink('Contact Us', '/contact'); | ||
}); | ||
cy.contains('p', 'Follow us on Social Media:') | ||
.should('not.be.visible'); | ||
}); | ||
|
||
it("About details renders", () => { | ||
cy.get(':nth-child(3) > article').should("be.visible") | ||
it('About details renders', () => { | ||
cy.get('article').should('be.visible') | ||
.within(() => { | ||
cy.validateLink('Chad R. Stewart', 'https://www.linkedin.com/in/ChadRStewart/'); | ||
cy.validateLink('#TechIsHiring', 'https://twitter.com/TechIsHiring/'); | ||
cy.validateLink('Hire Chad R. Stewart', '/hire-chad'); | ||
}); | ||
}); | ||
|
||
it('About details renders on mobile', () => { | ||
cy.viewport('iphone-5'); | ||
cy.get('article').should('be.visible') | ||
.within(() => { | ||
cy.validateLink('Chad R. Stewart', 'https://www.linkedin.com/in/ChadRStewart/'); | ||
cy.validateLink('#TechIsHiring', 'https://twitter.com/TechIsHiring/'); | ||
cy.validateLink('Hire Chad R. Stewart', '/hire-chad'); | ||
|
||
cy.contains('p', 'Follow us'); | ||
cy.validateLink('Twitter for Tech Is Hiring', 'https://www.twitter.com/TechIsHiring/'); | ||
cy.validateLink('LinkedIn for Tech Is Hiring', 'https://www.linkedin.com/company/TechIsHiring/'); | ||
cy.validateLink('YouTube for Tech Is Hiring', 'https://www.youtube.com/@TechIsHiring'); | ||
}); | ||
}); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters