IntersectMBO / govtool

🔩 GovTool and utilities monorepo.
https://sanchogov.tools/
Apache License 2.0
8 stars 2 forks source link

[BUG] Missing Test IDs #937

Open NabinKawan opened 2 months ago

NabinKawan commented 2 months ago

Description: Several components across various pages lack proper test IDs, impeding effective testing and automation.

DRep Registration Page:

DRep Form Fields

Register Button

Delegation Page:

Governance Action Details Page:

image image

Retirement Page:

image

Dashboard:

Image

Mobile

Image

Important: Please ensure to add proper test IDs for all interactive elements to facilitate testing and automation.

pmbinapps commented 2 months ago

For page:

Image

data-testid="Back-to-dashboard-link" data-testid="ArrowBackIosIcon" data-testid="name-input" data-testid="this-is-name-that-will-be-shown-on-your-drep-profile-error" data-testid="email-input" data-testid="bio-input" data-testid="some-sentence-about-yourself-error" data-testid="link-input" data-testid="add-link-button" data-testid="back-button" data-testid="continue-button" data-testid="privacy-policy-footer-link" data-testid="term-of-service-footer-link" data-testid="help-footer-button" data-testid="feedback-footer-button"

Drep explorer page with delegation part:

data-testid="logo-button" data-testid="dashboard-link" data-testid="drep-directory-link" data-testid="governance-actions-link" data-testid="guides-link" data-testid="faqs-link" data-testid="disconnect-button" data-testid="InfoOutlinedIcon" data-testid="drep1063u9e7ukcdw3lp4ssgxrufg9ds8wvyq3xmlhruwlw305grfrf0-copy-id-button" data-testid="automated-voting-options-accordion"

Dashboard:

data-testid="logo-button" data-testid="dashboard-link" data-testid="drep-directory-link" data-testid="governance-actions-link" data-testid="guides-link" data-testid="faqs-link" data-testid="disconnect-button" data-testid="InfoOutlinedIcon" data-testid="voting-power-delegation-status" data-testid="ArrowForwardIosIcon" data-testid="delegate-learn-more-button" data-testid="delegate-to-another-drep-button" data-testid="voting-power-delegation-status" data-testid="register-button" data-testid="register-learn-more-button" data-testid="voting-power-delegation-status" data-testid="retire-as-sole-voter-button" data-testid="learn-more-button" data-testid="voting-power-delegation-status" data-testid="view-governance-actions-button" data-testid="learn-more-governance-actions-button" data-testid="voting-power-delegation-status" data-testid="propose-governance-actions-button" data-testid="learn-more-button" data-testid="privacy-policy-footer-link" data-testid="term-of-service-footer-link" data-testid="help-footer-button" data-testid="feedback-footer-button" data-testid="delegation-options-dropdown" data-testid="abstain-from-every-vote-info-button" data-testid="abstain-from-every-vote-delegate-button" data-testid="signal-no-confidence-on-every-vote-info-button" data-testid="signal-no-confidence-on-every-vote-delegate-button" data-testid="SearchIcon" data-testid="search-input" data-testid="filters-button" data-testid="sort-button" data-testid="drep1qzw234c0ly8csamxf8hrhfahvzwpllh2ckuzzvl38d22wwxxquu-copy-id-button" data-testid="drep1qzw234c0ly8csamxf8hrhfahvzwpllh2ckuzzvl38d22wwxxquu-view-details-button" data-testid="drep1qzw234c0ly8csamxf8hrhfahvzwpllh2ckuzzvl38d22wwxxquu-delegate-button" data-testid="drep1qy6m9ntcsmq9qex6raha0x904fknajstsy7d3wpquwe67lmmnvh-copy-id-button" data-testid="drep1qy6m9ntcsmq9qex6raha0x904fknajstsy7d3wpquwe67lmmnvh-view-details-button" data-testid="drep1qy6m9ntcsmq9qex6raha0x904fknajstsy7d3wpquwe67lmmnvh-delegate-button" data-testid="drep1q9rg69aquphsns4tl2n75m8n2vemxgjrnrw435cgsh8lu6fyps8-copy-id-button" data-testid="drep1q9rg69aquphsns4tl2n75m8n2vemxgjrnrw435cgsh8lu6fyps8-view-details-button" data-testid="drep1q9rg69aquphsns4tl2n75m8n2vemxgjrnrw435cgsh8lu6fyps8-delegate-button" data-testid="drep1qdmu50p35u8aupu89c00v7fzkplj54yk2m7uzhes2sgmvxdqzsy-copy-id-button" data-testid="drep1qdmu50p35u8aupu89c00v7fzkplj54yk2m7uzhes2sgmvxdqzsy-view-details-button" data-testid="drep1qdmu50p35u8aupu89c00v7fzkplj54yk2m7uzhes2sgmvxdqzsy-delegate-button" data-testid="drep1qjxfjlftmt7gyr50mtmk4mw6d4rl3zrdrfdt964cgvz3gphes2n-copy-id-button" data-testid="drep1qjxfjlftmt7gyr50mtmk4mw6d4rl3zrdrfdt964cgvz3gphes2n-view-details-button" data-testid="drep1qjxfjlftmt7gyr50mtmk4mw6d4rl3zrdrfdt964cgvz3gphes2n-delegate-button" data-testid="drep1qnfx6nqvadycrvcl43xdrlre85npfts7llj0z8nn2ytx2h8nwv2-copy-id-button" data-testid="drep1qnfx6nqvadycrvcl43xdrlre85npfts7llj0z8nn2ytx2h8nwv2-view-details-button" data-testid="drep1q4kevzwntlr7724zz5m9t8tnfn35msqauwn8sfrc89rduqmkplx-copy-id-button" data-testid="drep1q4kevzwntlr7724zz5m9t8tnfn35msqauwn8sfrc89rduqmkplx-view-details-button" data-testid="drep1q4kevzwntlr7724zz5m9t8tnfn35msqauwn8sfrc89rduqmkplx-delegate-button" data-testid="drep1qkszl23wfw6kxxuzvsucs07c5ycx40q24r2nl2qmf84k7re5muj-copy-id-button" data-testid="drep1qkszl23wfw6kxxuzvsucs07c5ycx40q24r2nl2qmf84k7re5muj-view-details-button" data-testid="drep1qc76sc0stectv3krel2xphk3pw3hdzuc59p639mz4mme6wwudjp-copy-id-button" data-testid="drep1qc76sc0stectv3krel2xphk3pw3hdzuc59p639mz4mme6wwudjp-view-details-button" data-testid="drep1qmehvg7vxh9tgwy6rgxenauc3j6hql6nkjrthvcjm457kktpj9k-copy-id-button" data-testid="drep1qmehvg7vxh9tgwy6rgxenauc3j6hql6nkjrthvcjm457kktpj9k-view-details-button" data-testid="drep1qmehvg7vxh9tgwy6rgxenauc3j6hql6nkjrthvcjm457kktpj9k-delegate-button" data-testid="show-more-button" data-testid="privacy-policy-footer-link" data-testid="term-of-service-footer-link" data-testid="help-footer-button" data-testid="feedback-footer-button"

Gov Actions - details page: data-testid="logo-button" data-testid="dashboard-link" data-testid="drep-directory-link" data-testid="governance-actions-link" data-testid="guides-link" data-testid="faqs-link" data-testid="disconnect-button" data-testid="InfoOutlinedIcon" data-testid="back-to-list-link" data-testid="governance-action-details-card" data-testid="governance-action-details-card-header" data-testid="share-button" data-testid="NoConfidence-type" data-testid="submission-date" data-testid="InfoOutlinedIcon" data-testid="expiry-date" data-testid="InfoOutlinedIcon" data-testid="external-modal-button" data-testid="d2f4bea73f954f5f9104d0aedeafc180336f63fcb19671646b9bbc0639fb906d#0-id" data-testid="copy-button" data-testid="yes-radio" data-testid="no-radio" data-testid="abstain-radio" data-testid="show-votes-button" data-testid="provide-context-button" data-testid="vote-button" data-testid="privacy-policy-footer-link" data-testid="term-of-service-footer-link" data-testid="help-footer-button" data-testid="feedback-footer-button"

Retirement:

data-testid="Back-to-dashboard-link" data-testid="ArrowBackIosIcon" data-testid="back-button" data-testid="continue-retirement-button" data-testid="privacy-policy-footer-link" data-testid="term-of-service-footer-link" data-testid="help-footer-button" data-testid="feedback-footer-button"

SandraRodziewicz commented 1 month ago

Most of the test Ids are there, the few missing are delegated to separate task to be fixed later https://github.com/IntersectMBO/govtool/issues/1038

Ready for staging

NabinKawan commented 1 month ago

Reopening this ticket again

Test-ids are not consistent. They are changing link

Please adjust test-ids acc. to the test.

pmbinapps commented 1 month ago

OK Registration page ids are:

Image

Image

OK on Storage page Submit is as register-button

Image

OK Delegation page

Image

pmbinapps commented 1 month ago

Regarding comment, these current ids that set on DRep registration, update should enable automation:

Image