From 8c3f1a651121b4b164a36b3871aceac9fd761d59 Mon Sep 17 00:00:00 2001 From: Niraj Date: Tue, 6 May 2025 09:52:20 +0545 Subject: [PATCH 1/2] fix: update image paths in Developer's Guide for correct relative references --- .../playwright/DEVELOPERS_GUIDE.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/govtool-frontend/playwright/DEVELOPERS_GUIDE.md b/tests/govtool-frontend/playwright/DEVELOPERS_GUIDE.md index 9d4f0039e..5869e5171 100644 --- a/tests/govtool-frontend/playwright/DEVELOPERS_GUIDE.md +++ b/tests/govtool-frontend/playwright/DEVELOPERS_GUIDE.md @@ -117,7 +117,7 @@ This directory contains all automated test cases, organized by feature area: - Use the terminal to run specific test suites using the commands provided in the **README.md**. - Ensure all test files are recognized in the **Test Explorer**. -![Test Runner Screenshot](/docs/image.png) +![Test Runner Screenshot](./docs/image.png) - Use the **Play** โ–ถ๏ธ icon to run individual tests directly from the UI. @@ -127,12 +127,12 @@ This directory contains all automated test cases, organized by feature area: - Add **Playwright Test for VSCode** extension - ![Playwright Test Screenshot](/docs/image-1.png) + ![Playwright Test Screenshot](./docs/image-1.png) 1. **Remove** the `CI` environment variable. 2. **Navigate** to the specific directory where your test is located to run it directly. - ![Directory Navigation Screenshot](/docs/image-2.png) + ![Directory Navigation Screenshot](./docs/image-2.png) > **Note:** > @@ -149,7 +149,7 @@ This section outlines the core behavioral areas of the Govtool application as ca This set of tests covers all key UI and interaction flows related to delegation functionality. -![Delegation Pillars](/docs/delegation-pillars.png) +![Delegation Pillars](./docs/delegation-pillars.png) --- @@ -157,7 +157,7 @@ This set of tests covers all key UI and interaction flows related to delegation Covers user voting mechanisms, including interface states and validation of voting logic. -![Voting Pillars](/docs/voting-pillars.png) +![Voting Pillars](./docs/voting-pillars.png) --- @@ -169,13 +169,13 @@ Proposal functionality is split into two sub-categories, each with distinct test Tracks creation, display, and participation in proposal discussions. -![Proposal Discussion](/docs/proposal-discussion.png) +![Proposal Discussion](./docs/proposal-discussion.png) #### ii. Budget Proposal Tracks creation, display, and participation in budget-related proposals. -![Budget Proposal](/docs/budget-proposal.png) +![Budget Proposal](./docs/budget-proposal.png) --- @@ -183,7 +183,7 @@ Tracks creation, display, and participation in budget-related proposals. Tests centered around outcomes from various actions. -![Outcomes Pillars](/docs/outcomes-pillars.png) +![Outcomes Pillars](./docs/outcomes-pillars.png) --- @@ -191,7 +191,7 @@ Tests centered around outcomes from various actions. Covers all test cases that require the user to be authenticated, and are not included in the delegation, voting, proposal, or outcomes pillars -![Logged-In State](/docs/loggedin.png) +![Logged-In State](./docs/loggedin.png) --- @@ -199,4 +199,4 @@ Covers all test cases that require the user to be authenticated, and are not inc For a comprehensive view of the project's Playwright architecture, refer to the Excalidraw diagram: -[Govtool Project Architecture](/docs/govtool-playwright-project.excalidraw) +[Govtool Project Architecture](./docs/govtool-playwright-project.excalidraw) From fe2d1110660c7af63edd66ac045acad081728c6f Mon Sep 17 00:00:00 2001 From: Niraj Date: Tue, 6 May 2025 09:53:20 +0545 Subject: [PATCH 2/2] chore: make pillar singular on readme --- tests/govtool-frontend/playwright/README.md | 14 +++++++------- tests/govtool-frontend/playwright/package.json | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/govtool-frontend/playwright/README.md b/tests/govtool-frontend/playwright/README.md index 0ad7c6351..d7a7cc123 100644 --- a/tests/govtool-frontend/playwright/README.md +++ b/tests/govtool-frontend/playwright/README.md @@ -122,13 +122,13 @@ Each test suite can be run in **UI** or **Headless** mode. #### ๐Ÿ–ฅ๏ธ UI Mode ```bash -npm run test:delegation-pillars +npm run test:delegation-pillar ``` #### ๐Ÿงช Headless Mode (No UI) ```bash -npm run test:headless:delegation-pillars +npm run test:headless:delegation-pillar ``` --- @@ -140,13 +140,13 @@ npm run test:headless:delegation-pillars #### ๐Ÿ–ฅ๏ธ UI Mode ```bash -npm run test:voting-pillars +npm run test:voting-pillar ``` #### ๐Ÿงช Headless Mode (No UI) ```bash -npm run test:headless:voting-pillars +npm run test:headless:voting-pillar ``` --- @@ -176,13 +176,13 @@ _Includes both Proposal Discussion and Budget Discussion_ #### ๐Ÿ–ฅ๏ธ UI Mode ```bash -npm run test:proposal-pillars +npm run test:proposal-pillar ``` #### ๐Ÿงช Headless Mode (No UI) ```bash -npm run test:headless:proposal-pillars +npm run test:headless:proposal-pillar ``` --- @@ -285,4 +285,4 @@ npm run allure:serve For contribution guidelines and development tips, refer to: -๐Ÿ“„ **[DEVELOPERS_GUIDE.md](/DEVELOPERS_GUIDE.md)** +๐Ÿ“„ **[DEVELOPERS_GUIDE.md](./DEVELOPERS_GUIDE.md)** diff --git a/tests/govtool-frontend/playwright/package.json b/tests/govtool-frontend/playwright/package.json index 80d9a6f40..ae13b722d 100644 --- a/tests/govtool-frontend/playwright/package.json +++ b/tests/govtool-frontend/playwright/package.json @@ -24,20 +24,20 @@ "allure:open": "npx allure open ./allure-report", "allure:serve": "npx allure serve", "test": "npx playwright test --ui", - "test:delegation-pillars": "npx playwright test delegation dRepRegistration editDRep --ui", - "test:voting-pillars": "npx playwright test proposalVisibility proposalFunctionality --ui", + "test:delegation-pillar": "npx playwright test delegation dRepRegistration editDRep --ui", + "test:voting-pillar": "npx playwright test proposalVisibility proposalFunctionality --ui", "test:outcomes": "npx playwright test outcomes --ui", - "test:proposal-pillars": "npx playwright test proposalDiscussion proposalSubmission proposalBudget --ui", + "test:proposal-pillar": "npx playwright test proposalDiscussion proposalSubmission proposalBudget --ui", "test:proposal-discussion": "npx playwright test proposalDiscussion proposalSubmission --ui", "test:proposal-budget": "npx playwright test proposalBudget --ui", "test:wallet-connect": "npx playwright test walletConnect --ui", "test:usersnap": "npx playwright test userSnap.spec.ts --ui", "test:misc": "npx playwright test miscellaneous --ui", "test:headless": "npx playwright test", - "test:headless:delegation-pillars": "npx playwright test delegation dRepRegistration editDRep", - "test:headless:voting-pillars": "npx playwright test proposalVisibility proposalFunctionality", + "test:headless:delegation-pillar": "npx playwright test delegation dRepRegistration editDRep", + "test:headless:voting-pillar": "npx playwright test proposalVisibility proposalFunctionality", "test:headless:outcomes": "npx playwright test outcomes", - "test:headless:proposal-pillars": "npx playwright test proposalDiscussion proposalSubmission proposalBudget", + "test:headless:proposal-pillar": "npx playwright test proposalDiscussion proposalSubmission proposalBudget", "test:headless:proposal-discussion": "npx playwright test proposalDiscussion proposalSubmission", "test:headless:proposal-budget": "npx playwright test proposalBudget", "test:headless:wallet-connect": "npx playwright test walletConnect",