Playwright Data testId attribute is not exist for Angular material button when running test in...

Discussão em 'Angular' iniciado por Kenana Reda, Junho 13, 2025.

  1. Kenana Reda

    Kenana Reda Guest

    The tests are working locally correctly, while it's not in CI, I debug the trace and didn't find the data testid in the buttons' DOM Note: Other tests that do not contain a material button work fine.

    <button (click)="submit()"
    color="primary"
    type="submit"
    data-testid='login-submit'>
    sign In
    </button>

    Continue reading...

Compartilhe esta Página