In the ICC Full Council meeting at the Oval today, the decision was taken after a unanimous vote.
They now became the 11th and 12th members of Test cricket.
Afghanistan and Ireland become test playing nations
Rise of Afghanistan
One of the few cricketing nations which was not ruled by the British, Afghanistanis were introduced to cricket in the late 1980s when they fled to Pakistan as refugees.
They formally formed a team in 1995, against a lot of resistance from the Taliban in the country.
Since then, they have managed to produce some impressive performances in the ICC tournaments and Asian Tournaments.
IPL boost for Afghan players
Afghan spinner Rashid Khan was a star performer in recently concluded 2017 IPL, ending the tournament as the fifth highest wicket-taker. His counterpart Mohammad Nabi also made a mark in the tournament, as the duo made their way in ICC's ODI Top 10 bowlers' list.
Love Sports news?
Stay updated with the latest happenings.
A late bloomer in cricket
While cricket was introduced in Ireland in the 18th century, it was only in 1993 that they received associate membership of the ICC.
They have participated in three ICC World Cups and five World T20 tournaments and are currently placed 12th in the ICC rankings.
Ireland have won 51 of the 117 ODIs since their first ODI in 2006.
BCCI to Kohli: Deliver, else face the consequence
Beyonce and Jay Z welcome twins to their family