{"size": 1239, "ext": "js", "max_stars_repo_path": "cypress/integration/specs/recipes_user.spec.js", "max_stars_repo_name": "RomainVacheret/wadge-frontend", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "cypress/integration/specs/recipes_user.spec.js", "max_issues_repo_name": "RomainVacheret/wadge-frontend", "max_issues_repo_issues_event_min_datetime": "2022-02-08T10:18:07.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-09T09:54:35.000Z", "max_forks_repo_path": "cypress/integration/specs/recipes_user.spec.js", "max_forks_repo_name": "RomainVacheret/wadge-frontend", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 44.25, "max_line_length": 108, "alphanum_fraction": 0.6392251816}
/// <reference types="cypress" />


context(' RecipeUser ', () => {

  beforeEach(() => cy.visit('localhost:3000/recipes/user'));

  it('Checks the title of the page', () => cy.title().should('eq', 'Wadge'))
  it('Looks for the nav bar', () => cy.title().get('#navbar'))
  it('Looks for the app bar', () => cy.title().get('#AppBar'))
  it('Checks the title', () => cy.get('.recipe__title').should('have.text', ' Mes recettes '));


  it('Makes sure tabs are clickable and contains expected titles', () => {
    cy.get('.recipes__scored__title').children().click({ multiple:true, force:true });

    cy.get('.recipes__scored__title').children().should('have.text', 'Recettes scorées  ');
    //cy.get('.recipes__predict__title').children().should('have.text', 'Recettes Proposées  ');
  })

// TODO -> recipes_scored for RecipesUser page tests
  // it('Makes sure the recipe cards are clickable and contains expected titles', () => {
    
  //   cy.intercept('GET', `http://localhost:8080/users/1`, { fixture: `recipes_list/recipes_scored.json` })
  //   cy.get('.recipe__container').children().click({ multiple: true });
  //   cy.get('.accordion__details').children().should('contain', 'Etapes').and('contain', 'Ingredients');
  // });
})