<commit_before>import { artworkGridRenders } from "../helpers/artworkGridRenders"
import { visitWithStatusRetries } from "../helpers/visitWithStatusRetries"

describe("/collection/:id", () => {
  before(() => {
    visitWithStatusRetries("/collection/emerging-photographers")
  })

  it("renders metadata", () => {
    cy.title().should("eq", "Emerging Photographers - For Sale on Artsy")
    cy.get("meta[name='description']")
      .should("have.attr", "content")
      .and(
        "eq",
        "Buy, bid, and inquire on Emerging Photographers on Artsy. Today’s leading photographers are pushing the medium into new territories&mdash;experimenting with digital manipulation, unleashing the power of new macro …"
      )
  })

  it("renders page content", () => {
    cy.get("h1").should("contain", "Emerging Photographers")
    artworkGridRenders()
  })
})

describe("/collection/:id (a collection hub)", () => {
  before(() => {
    visitWithStatusRetries("/collection/contemporary")
  })
  it("renders metadata", () => {
    cy.title().should("eq", "Contemporary Art - For Sale on Artsy")
    cy.get("meta[name='description']")
      .should("have.attr", "content")
      .and(
        "eq",
        "Buy, bid, and inquire on Contemporary Art on Artsy. Spanning from 1970 to the present day, the contemporary period of art history represents the most diverse and widely-collected era of artistic production. …"
      )
  })

  it("renders page content", () => {
    cy.get("h1").should("contain", "Contemporary")
    artworkGridRenders()
  })
})
<commit_msg>fix: Collection Test Retry (#6853)<commit_after>import { artworkGridRenders } from "../helpers/artworkGridRenders"
import { visitWithStatusRetries } from "../helpers/visitWithStatusRetries"

describe("/collection/:id", () => {
  beforeEach(() => {
    visitWithStatusRetries("/collection/emerging-photographers")
  })

  it("renders metadata and page content", () => {
    cy.title().should("eq", "Emerging Photographers - For Sale on Artsy")
    cy.get("meta[name='description']")
      .should("have.attr", "content")
      .and(
        "eq",
        "Buy, bid, and inquire on Emerging Photographers on Artsy. Today’s leading photographers are pushing the medium into new territories&mdash;experimenting with digital manipulation, unleashing the power of new macro …"
      )

    cy.get("h1").should("contain", "Emerging Photographers")
    artworkGridRenders()
  })
})

describe("/collection/:id (a collection hub)", () => {
  beforeEach(() => {
    visitWithStatusRetries("/collection/contemporary")
  })

  it("renders metadata and page content", () => {
    cy.title().should("eq", "Contemporary Art - For Sale on Artsy")
    cy.get("meta[name='description']")
      .should("have.attr", "content")
      .and(
        "eq",
        "Buy, bid, and inquire on Contemporary Art on Artsy. Spanning from 1970 to the present day, the contemporary period of art history represents the most diverse and widely-collected era of artistic production. …"
      )

    cy.get("h1").should("contain", "Contemporary")
    artworkGridRenders()
  })
})

{'fraction_non_alphanumeric': 0.1517684887459807, 'fraction_numerical': 0.005144694533762058, 'mean_word_length': 3.7279635258358663, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7644464', 'n_tokens_mistral': 940, 'n_tokens_neox': 894, 'n_words': 244}