In this task you will work with Builder desgin pattern for generation of the test data for Conduit API testing.
The full list of APIs is described in the documentation.
- 
Open the forked repo in VSCode.
 - 
Create a new branch by running
git checkout -b task_solution. - 
Run the installation commands:
npm cinpx playwright install
 
Part1:
- Create two new methods in the 
UserDirector.jsclassbuildWithEmptyPassword()&buildWithEmptyUsername(); - Update the user registration tests to use just created methods:
 
tests/users/register/registerUserWithEmptyPassword.spec.js;tests/users/register/registerUserWithEmptyUsername.spec.js;
- Pay attention to call the methods with the help of 
testDataDirectorfixture. - Use test 
tests/users/register/registerUserWithEmptyEmail.spec.jsas an example. - Run all the tests and make sure they pass. Use npm scripts for executing tests against 
stageConduit env. 
Part2:
- Create 
ArticleBuilderandArticleDirectorclasses in the new folder./src/common/testData/builders/artcile. - Initialize  
ArticleDirectorinstance within theTestDataDirectorclass. - Update the articles tests to use builder & director for creating article objects.
 
tests/articles/create/createArticleWIthEmptyBody.spec.js;tests/articles/create/createArticleWIthEmptyTags.spec.js;tests/articles/create/createArticleWIthEmptyTitle.spec.js;tests/articles/create/createArticleWIthOneTag.spec.js;tests/articles/create/createArticleWIthUnauthorizedUser.spec.js;tests/articles/read/getArticleByAutorizedUser2.spec.js;tests/articles/read/getArticleByUnautorizedUser.spec.js;
- Remove method 
src/common/testData/generateNewArticleData.jsfrom project. - Run all the tests and make sure they pass. Use npm scripts for executing tests against 
stageConduit env. 
- Add and commit all your updates.
 - Push the code to the origin.
 - Create a PR for your changes.
 - Keep implementing suggestions from code review until your PR is approved.