Petrik entered politics in 2015 as a member of #NETWORK, where she provided support to the party around women's issues. Petrik was elected as a member of #Network in the 2016 Slovak parliamentary election, but after the Centre-right #Network entered a coalition with Smer-SD Petrik left the party and sat as an independent. In the National Council, she served in the Public Administration and Regional Development committee. In April 2016, Petrik was prohibited to enter parliamentary chambers by Deputy SpeakerBélu Bugár, due to the fact that she had her six-month old daughter with her. During her time in the National Council, Petrik worked heavily on women's issues. Petrik filed a complaint with the Constitutional Court of Slovakia about discrimination around a law regulating private crèches. Additionally, Petrik pointed out the unconstitutionality of extra fees charged by the hospital for childbirth, including choosing your own obstetrician, Epidurals, and the presence of the father in the delivery room. When news of the story came to light, the Ministry of Health pledged to remove those fees. She tabled a bill in parliament calling for ten days of paternity leave for expectant fathers. Petrik also fought for equal pay, support for survivors of domestic violence, construction of new kindergartens, and additional prenatal and postnatal support for mothers. Together with her independent parliamentary colleagues Miroslavom Beblavým, Jozefom Mihálom, Katarínou Macháčkovou, Vierou Dubačovou and Otom Žarnayom, Petrik founded the party SPOLU - Civic Democracy in April 2017. Iniciátori a zakladatelia strany zároveň zverejnili svoju výzvu Vráťme Slovensko ľuďom. In July 2017, TASR reported that Petrik was one of the "most curious" members of parliament, having asked 57 questions of the government. At the party's founding convention in Poprade on April 14, 2018, Petrík was elected one of the party's presidents. In February 2019, in the lead-up to the 2019 European Parliament election in Slovakia, Miroslav Beblavý of SPOLU and Ivan Štefunko of Progressive Slovakia announced that the parties would run together in the European elections. Petrík placed third on the SPOLU list with 22,499 votes, and was not elected. In the 2020 Slovak parliamentary election, SPOLU ran in a coalition with Progressive Slovakia. Petrik had the 9th position on the candidate list. She received 14,713 votes, placing 8th among coalition candidates. However, the coalition failed to reach the 7% threshold to receive seats in parliament.