Aussie living in the San Francisco Bay Area.
Coding since 1998.
.NET Foundation member. C# fan
https://d.sb/
Mastodon: @dan@d.sb

  • 0 Posts
  • 40 Comments
Joined 1 year ago
cake
Cake day: June 14th, 2023

help-circle
  • dan@upvote.autoProgrammer Humor@lemmy.mlOverflow
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    19 days ago

    In E2E tests you should ideally be finding elements using labels or ARIA roles. The point of an E2E test is to use the app in the same way a user would, and users don’t look for elements by class name or ID, and definitely not by data-testid.

    The more your test deviates from how real users use the system, the more likely it is that the test will break even though the actual user experience is fine, or vice versa.

    This is encouraged by Testing Library and related libraries like React Testing Library. Those are for unit and integration tests though, not E2E tests. I’m not as familiar with the popular E2E testing frameworks these days (we use an internally developed one at work).













  • Until you get locked out of your email account and can no longer access anything. This happens all the time with freemail (Gmail, Hotmail, Yahoo, etc) accounts.

    The contents of mails also shouldn’t be considered secure. I like the idea of doing proper SSO through an email provider though - for example, using OIDC (OpenID Connect).


  • One of the largest banks in Australia (Westpac) used to require passwords to be exactly 6 characters (no more, no less) and they were case insensitive. It also had a fun ‘denial of service’ attack built-in: If you got it wrong three times, it’d lock the account and force you to go to the bank to unlock it, meaning anyone that knew your bank username could lock you out of your account and cause some pretty big headaches. Fun.

    In fact, I’m not sur whether they ever fixed this. Haven’t used their services in a long time.




  • dan@upvote.autoProgrammer Humor@lemmy.mlDamn Linux Users
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    4 months ago

    Run Debian testing or get packages from backports if you need newer packages. It’s still more stable than a rolling distro.

    Debian stable is great if you value stability over everything else, for example on a server, or a desktop PC you want to “just work”. Major updates happen around once every 2 years, not 5 years.


  • dan@upvote.autoProgrammer Humor@lemmy.mlDamn Linux Users
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    4 months ago

    I’ve known some fantastic developers that used Nano as their primary editor. It supports syntax highlighting, linting, and bracket matching (jumping to the matching opening bracket when a closing one is selected, and vice versa), which is enough for some people.

    Sure, it’s no micro, but it’s already installed practically everywhere.