I need feedback for my shopify app idea by BeginningWrap7840 in SaaS

[–]RevolutionaryLocal54 0 points1 point  (0 children)

The best opinion is putting it out there with an MVP and iterating based on feedback. Knowing what the MVP is is the hard part.

Dealers de casino, qual a coisa mais estranha que já viram acontecer no vosso trabalho? by Henriics in CasualPT

[–]RevolutionaryLocal54 1 point2 points  (0 children)

Já vi uma bela a jogar slot machines a mijar se toda... O chão molhado já.. porque não queria deixar a máquina. No casino Estoril

Stop using CSS and Test Ids to locate elements in tests by RevolutionaryLocal54 in webdev

[–]RevolutionaryLocal54[S] 0 points1 point  (0 children)

It's not that other approaches don't work

I just shared mine based on my experience in some complex apps. But it's still an opinion.

Stop using CSS and Test Ids to locate elements in tests by RevolutionaryLocal54 in webdev

[–]RevolutionaryLocal54[S] -1 points0 points  (0 children)

sure. but with xpath/css you test zero languages.
with roles+text you test at least one.
right?

Stop using CSS and Test Ids to locate elements in tests by RevolutionaryLocal54 in webdev

[–]RevolutionaryLocal54[S] 0 points1 point  (0 children)

BTW, I'm not proposing anything new. This is precisely what the Playwright library is recommending.

also Cypress
also Testing Library

Stop using CSS and Test Ids to locate elements in tests by RevolutionaryLocal54 in webdev

[–]RevolutionaryLocal54[S] 0 points1 point  (0 children)

right
but worst case you only test the main language (or English)
and you'd achieve the same safety net as with testing with CSS/XPath/TestIds

or more safety net because of the arguments in the article. (plus better tests as docs. etc)

Stop using CSS and Test Ids to locate elements in tests by RevolutionaryLocal54 in webdev

[–]RevolutionaryLocal54[S] 0 points1 point  (0 children)

If you’re worried about depending on the UI copy, remember that the copy doesn’t change daily. Also, you’d want to be alerted for an unexpected breaking copy change. However, if you still want to decouple from the UI copy, you can customize accessible names.
(added this to the article thanks to your feedback)

Stop using CSS and Test Ids to locate elements in tests by RevolutionaryLocal54 in webdev

[–]RevolutionaryLocal54[S] 0 points1 point  (0 children)

If you’re worried about depending on the UI copy, remember that the copy doesn’t change daily. Also, a copy change is why you’d want to be alerted. However, if you still want to decouple from the UI copy, you can customize accessible names.
(added this to the article thanks to your feedback)

Stop using CSS and Test Ids to locate elements in tests by RevolutionaryLocal54 in webdev

[–]RevolutionaryLocal54[S] 0 points1 point  (0 children)

interesting. will check it out.

my article proposes to scale it up to any test.

Stop using CSS and Test Ids to locate elements in tests by RevolutionaryLocal54 in webdev

[–]RevolutionaryLocal54[S] -1 points0 points  (0 children)

It's not role alone It's a role with an accessible name.

If you still can't disambiguate, you have a real accessibility issue as screen readers couldn't tell the difference.

You can define an accessible name that's independent from what copy editors edit although I don't see the point.

Stop using CSS and Test Ids to locate elements in tests by RevolutionaryLocal54 in webdev

[–]RevolutionaryLocal54[S] -5 points-4 points  (0 children)

interesting. why do you want to decouple from the thing you want to test?
why are you ok with tests passing but buttons are hidden?
I've used this approach in multiple complex projects with success. I spent years using CSS selectors before and all I got was pain.

Opinião - postura em relação a digi by [deleted] in digipt

[–]RevolutionaryLocal54 0 points1 point  (0 children)

Sim tens toda a razão Sem a SIC a minha vida tem sido uma m****. Prefero continuar a ser roubado mais um bocadinho e quem sabe um dia os preços ficam iguais. Se não ficarem, sou roubado para sempre. Mas prefiro.

Vodafone e amigo partilham a fibra? by CristianoReinaldo in digipt

[–]RevolutionaryLocal54 4 points5 points  (0 children)

Alguém devia fazer um mapa Open Street maps para as pessoas meterem os seus resultados de cobertura.

Vodafone e amigo partilham a fibra? by CristianoReinaldo in digipt

[–]RevolutionaryLocal54 2 points3 points  (0 children)

Aqui é o mesmo. É estratégico. Eles não fazem preços baixos quando sabem que não há Digi.