Skip to content

purchase-journey step 7 (open-minicart) fails when cookie consent banner is visible #172

Description

@JonasJesus42

Problem

Step 7 "Abrir minicart" fails after a successful add-to-cart (step 6). The cookie consent banner remains visible on the page and blocks the click on the cart icon.

Screenshot evidence

After step 6 (add-to-cart), the PDP has:

  • Cookie banner: Monte Carlo e os cookies: [...] CONTINUAR E FECHAR — visible at bottom-left
  • Cart icon: visible in header (top-right) with item count = 1
  • The banner overlaps part of the viewport but does NOT cover the cart icon

Despite the cart icon being visible, step 7 fails: elemento não encontrado ou ação sem efeito

Why it fails

The dismissOverlays call at the start of step 7 should catch the cookie banner, but the banner selector ([data-cookie], #cookie, etc.) may not match the site's actual selector:

  • Banner element: <div class="..."> with text "Monte Carlo e os cookies"
  • Close button: <button>CONTINUAR E FECHAR</button>
  • No standard [data-cookie] or aria-label=close attributes

Site info

  • URL: http://localhost:5173/ (montecarlo-tanstack, deco platform)
  • Cookie banner trigger: appears on first page load, persists until clicked
  • Cart icon selector: [data-qa-cart-icon] (validated, count=1 after add-to-cart)

Expected behavior

dismissOverlays should detect and close the cookie banner before attempting the cart icon click, allowing step 7 to proceed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions