403-html / cypress-pop-example

Example of implementation page object pattern and our other custom methods in Cypress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add command to overwrite one property in fixture

403-html opened this issue · comments

-> readFile testData
example testData

{name: "John", surname: "Doe"}

-> you do an update of this name in the object you pulled from testData
changing name in testData obj we got

{name: "Max", surname: "Doe"}

-> you writeFile the updated object that overwrites the old one in testData
we got in testData

{name: "Max", surname: "Doe"}