Unable to execute Cypress code for first time

Viewed 31

describe('My TestSuite', function() it('Verify title of page', function() cy.visit("https://demo.nopcommerce.com/") cy.title().should('eq','nopCommerce demo store')

1 Answers

The function goes between the curly brackets.

/// <reference types="cypress" />
    
    describe('My TestSuite', function() {
        it('Verify title of page', function() {
            cy.visit("https://demo.nopcommerce.com/") 
            cy.title().should('eq','nopCommerce demo store')
        })
    })
Related