Skip to content

Commit

Permalink
Refactored the beforeEach section in e2e file
Browse files Browse the repository at this point in the history
  • Loading branch information
radomyr-horban committed Oct 4, 2023
1 parent a24c3eb commit 51286d6
Show file tree
Hide file tree
Showing 35 changed files with 46 additions and 12 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uuid":"0c7242b5-4f02-42a3-8be0-73395d62b2fe","children":["cf396bc7-daf7-4c64-a20f-94cc129bde03","4d50ae4b-f721-4b87-8b81-e84a7a2660be","c529847a-0bc9-4a81-a2a4-25af370f90a7","3f1b0b2e-720b-4369-ae04-e2af51e6ce10"],"befores":[],"afters":[],"name":"specs\\e2e.spec.js"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uuid":"0d069b5a-c4fc-4893-a82c-e23870fe9d44","children":["eedc121d-f9bf-4090-b878-f696ab2c8344"],"befores":[],"afters":[],"name":"Registration page"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uuid":"0ed8d054-71f6-43e3-9b4d-091233234dec","children":["f42bc06b-483f-46ca-a503-8586bfcb2944","2820ec37-eea1-4604-b4d2-a96b69e53ef1","55079322-2434-414b-9ed4-4d4201e41d8b"],"befores":[],"afters":[],"name":"Unnamed"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uuid":"16cdc7d9-252d-4f3b-8780-ddd6b81ac5b8","historyId":"2dc8985b4865e080e70186e339370d8c:84e28e814b821ed013329cc8dbc467e0","status":"passed","statusDetails":{},"stage":"pending","steps":[{"status":"passed","statusDetails":{},"stage":"pending","steps":[{"status":"passed","statusDetails":{},"stage":"pending","steps":[{"status":"passed","statusDetails":{},"stage":"pending","steps":[{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427046890,"name":"browserType.launch","stop":1696427048160}],"attachments":[],"parameters":[],"start":1696427046878,"name":"fixture: browser","stop":1696427048160},{"status":"passed","statusDetails":{},"stage":"pending","steps":[{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427048169,"name":"browser.newContext","stop":1696427048192}],"attachments":[],"parameters":[],"start":1696427048166,"name":"fixture: context","stop":1696427048199},{"status":"passed","statusDetails":{},"stage":"pending","steps":[{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427048207,"name":"browserContext.newPage","stop":1696427048453}],"attachments":[],"parameters":[],"start":1696427048201,"name":"fixture: page","stop":1696427048453},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051179,"name":"page.route","stop":1696427051200},{"status":"passed","statusDetails":{},"stage":"pending","steps":[{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051221,"name":"route.continue()","stop":1696427051231},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051471,"name":"frame.$$eval(iframe[src],iframe[href])","stop":1696427051723},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051493,"name":"frame.addStyleTag","stop":1696427051722},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051497,"name":"frame.$$eval(:root)","stop":1696427051725},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051579,"name":"route.continue()","stop":1696427051698},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051579,"name":"route.continue()","stop":1696427051699},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051589,"name":"route.continue()","stop":1696427051699},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051605,"name":"route.continue()","stop":1696427051699},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051616,"name":"route.continue()","stop":1696427051699},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051624,"name":"route.continue()","stop":1696427051700},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051629,"name":"route.continue()","stop":1696427051703},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051635,"name":"route.continue()","stop":1696427051703},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051640,"name":"route.continue()","stop":1696427051703},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051645,"name":"route.continue()","stop":1696427051704},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051650,"name":"route.continue()","stop":1696427051704},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051657,"name":"route.abort","stop":1696427051710},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051671,"name":"route.continue()","stop":1696427051710},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051676,"name":"route.continue()","stop":1696427051710},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427051680,"name":"route.continue()","stop":1696427051710},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427052134,"name":"route.continue()","stop":1696427052328},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427052754,"name":"route.continue()","stop":1696427053067},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427052759,"name":"route.continue()","stop":1696427053069},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427052797,"name":"route.continue()","stop":1696427053069},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427052827,"name":"frame.$$eval(iframe[src],iframe[href])","stop":1696427053087},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427052831,"name":"frame.addStyleTag","stop":1696427053128},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427052834,"name":"frame.$$eval(:root)","stop":1696427053095},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053104,"name":"frame.addStyleTag","stop":1696427053129}],"attachments":[],"parameters":[],"start":1696427051187,"name":"page.goto(https://www.redmine.org/)","stop":1696427053132}],"attachments":[],"parameters":[],"start":1696427046804,"name":"beforeEach hook","stop":1696427053132}],"attachments":[],"parameters":[],"start":1696427046802,"name":"Before Hooks","stop":1696427053133},{"status":"passed","statusDetails":{},"stage":"pending","steps":[{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053206,"name":"route.continue()","stop":1696427053264}],"attachments":[],"parameters":[],"start":1696427053139,"name":"locator.click(form > input[id=\"q\"])","stop":1696427053547},{"status":"passed","statusDetails":{},"stage":"pending","steps":[{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053611,"name":"frame.$$eval(:root)","stop":1696427053723}],"attachments":[],"parameters":[],"start":1696427053550,"name":"locator.fill(form > input[id=\"q\"])","stop":1696427053616},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053619,"name":"keyboard.press(Enter)","stop":1696427053699},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053707,"name":"expect.toHaveURL","stop":1696427054384},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053726,"name":"route.continue()","stop":1696427053729},{"status":"passed","statusDetails":{},"stage":"pending","steps":[{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053882,"name":"frame.addStyleTag","stop":1696427053993},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053885,"name":"frame.$$eval(:root)","stop":1696427054098},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053904,"name":"route.continue()","stop":1696427054428},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053910,"name":"route.continue()","stop":1696427054428},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053919,"name":"route.continue()","stop":1696427054428},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053925,"name":"route.continue()","stop":1696427054428},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053929,"name":"route.continue()","stop":1696427054428},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053944,"name":"route.continue()","stop":1696427054428},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053953,"name":"route.continue()","stop":1696427054428},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053956,"name":"route.continue()","stop":1696427054428},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053961,"name":"route.continue()","stop":1696427054428},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053968,"name":"route.continue()","stop":1696427054428},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053976,"name":"route.continue()","stop":1696427054428},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427053987,"name":"route.abort","stop":1696427054088},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427054016,"name":"route.continue()","stop":1696427054104},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427054021,"name":"route.continue()","stop":1696427054104}],"attachments":[],"parameters":[],"start":1696427053878,"name":"frame.$$eval(iframe[src],iframe[href])","stop":1696427054088},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427054102,"name":"frame.addStyleTag","stop":1696427054253},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427054386,"name":"expect.toHaveURL","stop":1696427054393},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427054396,"name":"expect.toContainText","stop":1696427054407},{"status":"passed","statusDetails":{},"stage":"pending","steps":[{"status":"passed","statusDetails":{},"stage":"pending","steps":[{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427054412,"name":"page.close","stop":1696427054429}],"attachments":[],"parameters":[],"start":1696427054409,"name":"afterEach hook","stop":1696427054429},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427054431,"name":"fixture: page","stop":1696427054431},{"status":"passed","statusDetails":{},"stage":"pending","steps":[],"attachments":[],"parameters":[],"start":1696427054431,"name":"fixture: context","stop":1696427054431}],"attachments":[],"parameters":[],"start":1696427054407,"name":"After Hooks","stop":1696427054444}],"attachments":[],"parameters":[{"name":"Project","value":"webkit"}],"labels":[{"name":"language","value":"JavaScript"},{"name":"framework","value":"Playwright"},{"name":"titlePath","value":" > webkit > specs\\e2e.spec.js > Main page"},{"name":"host","value":"DESKTOP-PCCEDKD"},{"name":"thread","value":"DESKTOP-PCCEDKD-1648-playwright-worker-3"},{"name":"parentSuite","value":"webkit"},{"name":"suite","value":"specs\\e2e.spec.js"},{"name":"subSuite","value":"Main page"}],"links":[],"start":1696427046790,"name":"should open the results page with items containing the searched word","fullName":"specs/e2e.spec.js#Main page should open the results page with items containing the searched word","testCaseId":"2dc8985b4865e080e70186e339370d8c","stop":1696427054444}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uuid":"2820ec37-eea1-4604-b4d2-a96b69e53ef1","children":["0c7242b5-4f02-42a3-8be0-73395d62b2fe"],"befores":[],"afters":[],"name":"firefox"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uuid":"3f1b0b2e-720b-4369-ae04-e2af51e6ce10","children":["6e757637-330f-4eb3-9b4d-6b02795fc38c"],"befores":[],"afters":[],"name":"Top menu links"}
Loading

0 comments on commit 51286d6

Please sign in to comment.