Quantcast
Channel: Dave Copeland :ruby:
Browsing all 613 articles
Browse latest View live

Article 2

Preach https://hachyderm.io/@paigerduty/113035165472983839

View Article


Article 1

Same. My only mod is to always check after 15mins as bacon is not consistent from brand to brand https://ruby.social/@jnunemaker/113035448156687295

View Article


Article 0

Trying to sign a HelloSign document. It cannot seem to load two JS libraries from it's CDN and so I get a blank loading screen.This is ostensibly to display a PDF that I then click on and sign into an...

View Article

Article 2

I've been toying with writing web apps in Ruby without Rails, but also without complicated stuff like Hanami and friends.I'm trying to avoid the Rails "everything is a global bag of functions” design,...

View Article

Article 1

For me, what is continually confusing in Rails is "where is this method coming from so I can understand what it is and/or does" coupled with “some symbol is treated as a stand-in for something I have...

View Article


Article 0

In JavaLand, there were two problems that Rails eliminated, but one is less of a problem than the other.Problem 1 is that Java/Spring provided ultimate flexibility and no savings when following...

View Article

Article 0

Here is why I have faith in humanity. I have a free little library in front of my house. I live in NE DC, which is somewhat diverse, at least compared to the burbs. The sheer variety of people that...

View Article

Article 2

I'm at a coffee shop. It's 9:30am and they are playing The Replacements and Dinosaur, Jr. My theory is that, as the day progresses, and the clientele becomes younger, the soundtrack will age with them.

View Article


Article 1

Anyone remember when “redirect after HTTP post” was considered a best practice?Consider standard Rails form handling, which doesn't do this:if @model.invalid? render :editelse redirect_to...

View Article


Article 0

you need to send along both the values from the form as well as enough information about what was invalid to create messaging for the user.You could shove it all in cookies, or encode it into the query...

View Article

Article 2

If you had a firm grasp of web fundamentals and the basics of the browser API, how would you want to test web sites? You'd probably want to just use that API that you have learned and are using to...

View Article

Article 1

It's not just this library. They are ALL like this. Some sort of "human readable" API on top of…I'm not really sure. Usually there is moralizing about how to locate elements and implied shame in trying...

View Article

Article 0

I don't find myself agreeing with Mr HH very often, but "system tests" (i.e. end to end tests in a web browser) have continued to suck and likely may not be worth the cost, given the current set of...

View Article


Article 8

I have finally switched my default browser from "Doesn't Work" (Safari) to "Ugly" (Firefox). Hopefully, it will go well.There's already wonderful friction with "saved web apps" - when I download a link...

View Article

Article 7

I spent a good chunk of today building an e2e test setup with just JavaScript. You define a test, it opens a new tab, and runs that test. It stores state in local storage between page refreshes.What...

View Article


Article 6

locating elements: testing library calls this "queries" and it works like capy and others: you have a bunch of methods that locate elements and wait a while for them to show up.you often want one of...

View Article

Article 5

Testing Library has a really confusing API:• get - blow up if not found immediately• find - return a promise that blows if not found eventually• query - return whatever is found at the timeCapy does...

View Article


Article 4

and you can't easily locate via selectors - it really wants you to locate elements ANY other way, such as "role" (hard to figure out - I have no idea how) and the “accessible name" (again, hard to...

View Article

Article 3

Let's say you have a list of widgets and you want to find a particular one to edit by clicking an edit link.Your test has to be coupled to your HTML in some way, so you doli =...

View Article

Article 2

Given the async nature of all this, often the HTML available before the call to a locator is different from what the locator eventually used to locate an element.links = find_all(“nav...

View Article
Browsing all 613 articles
Browse latest View live