Unless they are allowed to by the government via handouts, even when technology can do what humans do they will still be employed simply by being cheaper than the machine. In manufacturing we see many tasks being done by humans that a machine could do quicker and more consistently, but the human costs $20/hour(?) and the machine may cost a couple million to setup. Only when the overall cost comes into a certain realm is a machine put there and the person removed. So if machines got better, essentially idle people would be willing to work less to change this to the point where the machine again is not worth building/maintaining, so they use the person.
If anybody here has actually been on a manufacturing floor there are humans quite literally doing, for hours on end, tasks a monkey could be trained to do. Not all manufacturing is like this but an awful lot is. And a machine can do most of them but it's not worth building because a human arm and eyes can be had for $20/hour but to put that into a machine requires a substantial amount of engineering effort.
It seems more important than ever to be significantly educated. In the end, as long as you're "better than most" you will have to worry about your job last. And there are still a damn lot of Americans who are stupid, uneducated, and lazy. So when we read articles like this it is a warning to us but more a warning to not be one of those that this article really is aimed at.
Do you know every year thousands of people are laid off in the US in, for example, manufacturing and these are people who saw the writing on the wall for years prior and yet did nothing to obviate their unemployment via better education? Many of them are smart enough to become nurses if they took night classes or a year off and pounded that out, but they don't. They just sit head-down waiting for their turn on the chopping block.