From 5e9eb091bcca5fad783201425c34266d13da8932 Mon Sep 17 00:00:00 2001 From: Suresh Date: Fri, 17 May 2024 12:19:05 +0530 Subject: [PATCH] chore: separated tags from test title --- tests/api/GET.test.ts | 2 +- tests/api/POST.test.ts | 2 +- tests/functional/AlertsFrameWindows.test.ts | 2 +- tests/functional/Elements.test.ts | 2 +- tests/functional/Interactions.test.ts | 2 +- tests/functional/Login.test.ts | 2 +- tests/functional/PdfToText.test.ts | 2 +- tests/functional/Widgets.test.ts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/api/GET.test.ts b/tests/api/GET.test.ts index 681127a..bf56b6b 100644 --- a/tests/api/GET.test.ts +++ b/tests/api/GET.test.ts @@ -3,7 +3,7 @@ import { test } from '@playwright/test'; const apiActions = new APIActions(); -test(`@API getUsers`, async ({ request }) => { +test(`getUsers`, { tag: '@API'}, async ({ request }) => { const response = await request.get(`/api/users?per_page=1`); await apiActions.verifyStatusCode(response); diff --git a/tests/api/POST.test.ts b/tests/api/POST.test.ts index de9cf39..78d25cf 100644 --- a/tests/api/POST.test.ts +++ b/tests/api/POST.test.ts @@ -3,7 +3,7 @@ import { test } from '@playwright/test'; const apiActions = new APIActions(); -test(`@API postUsers`, async ({ request }) => { +test(`postUsers`, { tag: '@API'}, async ({ request }) => { //* Body Response Params and Body Response Headers are stored in single text file separated by # const requestBody = JSON.parse((await apiActions.readValuesFromTextFile('postUsers')).split(`#`)[0]); diff --git a/tests/functional/AlertsFrameWindows.test.ts b/tests/functional/AlertsFrameWindows.test.ts index d010285..33e4193 100644 --- a/tests/functional/AlertsFrameWindows.test.ts +++ b/tests/functional/AlertsFrameWindows.test.ts @@ -1,6 +1,6 @@ import test from '@lib/BaseTest'; -test(`@Smoke Verify Alerts, Frame & Windows Page`, async ({ loginPage, alertsFrameWindowsPage, webActions }) => { +test(`Verify Alerts, Frame & Windows Page`, { tag: '@Smoke'}, async ({ loginPage, alertsFrameWindowsPage, webActions }) => { await loginPage.navigateToURL(); await webActions.clickByText('Alerts, Frame & Windows'); // Click on Alerts, Frame & Windows icon await webActions.clickByText('Browser Windows'); // Click on Browser Windows navigation side bar diff --git a/tests/functional/Elements.test.ts b/tests/functional/Elements.test.ts index 48d23cb..a41d0ae 100644 --- a/tests/functional/Elements.test.ts +++ b/tests/functional/Elements.test.ts @@ -1,6 +1,6 @@ import test from '@lib/BaseTest'; -test(`@Smoke Verify Elements Page`, async ({ loginPage, elementsPage, webActions }) => { +test(`Verify Elements Page`, { tag: '@Smoke'}, async ({ loginPage, elementsPage, webActions }) => { await loginPage.navigateToURL(); await webActions.clickByText('Elements'); // Click on Elements Icon identified via text selector await webActions.clickByText('Text Box'); //Click on TextBox Navigation Sidebar identified via text selector diff --git a/tests/functional/Interactions.test.ts b/tests/functional/Interactions.test.ts index fb9e938..2da9f28 100644 --- a/tests/functional/Interactions.test.ts +++ b/tests/functional/Interactions.test.ts @@ -1,6 +1,6 @@ import test from '@lib/BaseTest'; -test(`@Smoke Verify Interactions Page`, async ({ loginPage, interactionsPage, webActions }) => { +test(`Verify Interactions Page`, { tag: '@Smoke'}, async ({ loginPage, interactionsPage, webActions }) => { await loginPage.navigateToURL(); await webActions.clickByText('Interactions'); // Click on Interactions Icon identified via text selector await webActions.clickByText('Droppable'); diff --git a/tests/functional/Login.test.ts b/tests/functional/Login.test.ts index 06acae6..61273fc 100644 --- a/tests/functional/Login.test.ts +++ b/tests/functional/Login.test.ts @@ -2,7 +2,7 @@ import test from '@lib/BaseTest'; // We can use Steps like in Cucmber format as shown below -test(`@Smoke Verify Book Store Login`, async ({ loginPage, webActions }) => { +test(`Verify Book Store Login`, { tag: '@Smoke'}, async ({ loginPage, webActions }) => { await test.step(`Navigate to Application`, async () => { await loginPage.navigateToURL(); }); diff --git a/tests/functional/PdfToText.test.ts b/tests/functional/PdfToText.test.ts index 80e10f8..05080c7 100644 --- a/tests/functional/PdfToText.test.ts +++ b/tests/functional/PdfToText.test.ts @@ -1,7 +1,7 @@ import test from '@lib/BaseTest'; import { expect } from '@playwright/test'; -test(`@Smoke Verify the text contents of PDF file.`, async ({ webActions }) => { +test(`Verify the text contents of PDF file.`, { tag: '@Smoke'}, async ({ webActions }) => { const extractedText = await webActions.getPDFText("./utils/functional/sample.pdf"); const status = extractedText.includes("A Simple PDF File") expect(status).toBeTruthy(); diff --git a/tests/functional/Widgets.test.ts b/tests/functional/Widgets.test.ts index 1bce13e..8ce7919 100644 --- a/tests/functional/Widgets.test.ts +++ b/tests/functional/Widgets.test.ts @@ -1,6 +1,6 @@ import test from '@lib/BaseTest'; -test(`@Smoke Verify Widgets Page`, async ({ loginPage, widgetsPage, webActions }) => { +test(`Verify Widgets Page`, { tag: '@Smoke'}, async ({ loginPage, widgetsPage, webActions }) => { await loginPage.navigateToURL(); await webActions.clickByText('Widgets'); // Click on Widgets Icon identified via text selector await webActions.clickByText('Auto Complete');