It was Cote d'Ivoire's first ever win over South Africa in seven meetings
Senegal will next face Algeria on Thursday
Africa's last representative, Cameroon will be hoping to reverse the trend when they play Canada on Monday 10 June.
Cameroon plays Ghana, Benin and Guinea-Bissau in Group F of the AFCON 2019 tournament.
The Congress will take place at African Union’s headquarters in May 2020.
Reports in Tunisia said officials were aware that the VAR system was not working, but the players probably did not know.