100Days of Code Challenge

Day 17 of 100daysofcode : Cypress Test Code for Wikipedia Search Functionality

describe('Wikipedia Search Functionality Test', () => {
  before(() => {
    // Visit Wikipedia homepage before the tests
    cy.visit('https://www.wikipedia.org');
  });

  it('should display the search input and language selector', () => {
    // Check if the search input is visible
    cy.get('input#searchInput').should('be.visible');

    // Check if the language selector dropdown is visible
    cy.get('select#searchLanguage').should('be.visible');
  });

  it('should successfully perform a search and display