IntersectMBO / govtool

🔩 GovTool and utilities monorepo.
https://gov.tools
Apache License 2.0
13 stars 7 forks source link

[BUG] Missing testIds on Proposal Discussion #1233

Closed kneerose closed 2 months ago

kneerose commented 3 months ago

Description:

Several components lack proper test IDs, impeding effective testing and automation

Missing test ids

Screenshot from 2024-06-11 11-52-14

Screenshot from 2024-06-11 12-09-33

bosko-m commented 3 months ago

@vpaunovic @teske00 Is this in progress then?

vpaunovic commented 3 months ago

@bosko-m this is already done. Just, it is not yet in NPM package. Its in our repo on main branch. When we update our NPM package, and @MSzalowski update our PDF NPM package with that new version, it will be available there in current govtool.

kneerose commented 3 months ago

Hello @vpaunovic

1. Search Input

<div class="MuiFormControl-root MuiFormControl-fullWidth MuiTextField-root css-3lfscr-MuiFormControl-root-MuiTextField-root" data-testid="search-input">
    <div class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-adornedStart css-1q02obe-MuiInputBase-root-MuiOutlinedInput-root" data-dashlane-rid="77bdcd041ad7f2b3">
        <div class="MuiInputAdornment-root MuiInputAdornment-positionStart MuiInputAdornment-outlined MuiInputAdornment-sizeMedium css-ittuaa-MuiInputAdornment-root">
            <span class="notranslate">​</span>
            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="#212A3D" viewBox="0 0 24 24" color="#212A3D">
                <path fill-rule="evenodd" d="M10 4a6 6 0 1 0 0 12 6 6 0 0 0 0-12m-8 6a8 8 0 1 1 14.32 4.906l5.387 5.387a1 1 0 0 1-1.414 1.414l-5.387-5.387A8 8 0 0 1 2 10" clip-rule="evenodd"></path>
            </svg>
        </div>
        <input aria-invalid="false" id="outlined-basic" placeholder="Search..." type="text" class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputAdornedStart css-1o9s3wi-MuiInputBase-input-MuiOutlinedInput-input" value="" data-dashlane-rid="4a893a91328c158d" data-form-type="other">
        <fieldset aria-hidden="true" class="MuiOutlinedInput-notchedOutline css-1d3z3hw-MuiOutlinedInput-notchedOutline">
            <legend class="css-ihdtdm"><span class="notranslate">​</span></legend>
        </fieldset>
    </div>
</div>

The data-testid should be inside <input> tag instead of the <div> tag

2. Proposal card

3. Proposal Status

image

Note: Please make sure to add proper test IDs if you introduce any new components in the future. Additionally, please make these adjustments to ensure appropriate test IDs are in place.

kneerose commented 2 months ago

@vpaunovic I have created a separate ticket for all missing test IDs of the PDF here. Therefore, I am closing this issue.

CC : @bosko-m