There are potentially 2 different types of warranty available.
There may be a warranty on workmanship and also warranties on any parts used to carry out the work. A workmanship guarantee will be provided by the electrician direct. The manufacturers or suppliers of parts may also offer their own warranties which allow you or your electrician to request free replacements if any of the parts are faulty.