Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config.sites.forEach((site) => {
- describe('Testing SEO:' + site.url, function() {
- before(function() {
- cy.visit(site.url);
- });
- it('Check there is only one h1 on the page on', function() {
- cy.get('h1').should('have.length', 1)
- });
- it('Checks the contents of an h1', function() {
- cy.get('h1').should('have.text', site.seo.h1)
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement