Skip to content

Commit fa4fd49

Browse files
authored
Merge pull request #64 from sureshk2a/chore/seperate-tags-from-title
Separate tags from test title
2 parents 73ad3ef + 5e9eb09 commit fa4fd49

8 files changed

+8
-8
lines changed

tests/api/GET.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { test } from '@playwright/test';
33

44
const apiActions = new APIActions();
55

6-
test(`@API getUsers`, async ({ request }) => {
6+
test(`getUsers`, { tag: '@API'}, async ({ request }) => {
77
const response = await request.get(`/api/users?per_page=1`);
88
await apiActions.verifyStatusCode(response);
99

tests/api/POST.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { test } from '@playwright/test';
33

44
const apiActions = new APIActions();
55

6-
test(`@API postUsers`, async ({ request }) => {
6+
test(`postUsers`, { tag: '@API'}, async ({ request }) => {
77

88
//* Body Response Params and Body Response Headers are stored in single text file separated by #
99
const requestBody = JSON.parse((await apiActions.readValuesFromTextFile('postUsers')).split(`#`)[0]);

tests/functional/AlertsFrameWindows.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import test from '@lib/BaseTest';
22

3-
test(`@Smoke Verify Alerts, Frame & Windows Page`, async ({ loginPage, alertsFrameWindowsPage, webActions }) => {
3+
test(`Verify Alerts, Frame & Windows Page`, { tag: '@Smoke'}, async ({ loginPage, alertsFrameWindowsPage, webActions }) => {
44
await loginPage.navigateToURL();
55
await webActions.clickByText('Alerts, Frame & Windows'); // Click on Alerts, Frame & Windows icon
66
await webActions.clickByText('Browser Windows'); // Click on Browser Windows navigation side bar

tests/functional/Elements.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import test from '@lib/BaseTest';
22

3-
test(`@Smoke Verify Elements Page`, async ({ loginPage, elementsPage, webActions }) => {
3+
test(`Verify Elements Page`, { tag: '@Smoke'}, async ({ loginPage, elementsPage, webActions }) => {
44
await loginPage.navigateToURL();
55
await webActions.clickByText('Elements'); // Click on Elements Icon identified via text selector
66
await webActions.clickByText('Text Box'); //Click on TextBox Navigation Sidebar identified via text selector

tests/functional/Interactions.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import test from '@lib/BaseTest';
22

3-
test(`@Smoke Verify Interactions Page`, async ({ loginPage, interactionsPage, webActions }) => {
3+
test(`Verify Interactions Page`, { tag: '@Smoke'}, async ({ loginPage, interactionsPage, webActions }) => {
44
await loginPage.navigateToURL();
55
await webActions.clickByText('Interactions'); // Click on Interactions Icon identified via text selector
66
await webActions.clickByText('Droppable');

tests/functional/#.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import test from '@lib/BaseTest';
22

33
// We can use Steps like in Cucmber format as shown below
44

5-
test(`@Smoke Verify Book Store Login`, async ({ loginPage, webActions }) => {
5+
test(`Verify Book Store Login`, { tag: '@Smoke'}, async ({ loginPage, webActions }) => {
66
await test.step(`Navigate to Application`, async () => {
77
await loginPage.navigateToURL();
88
});

tests/functional/PdfToText.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import test from '@lib/BaseTest';
22
import { expect } from '@playwright/test';
33

4-
test(`@Smoke Verify the text contents of PDF file.`, async ({ webActions }) => {
4+
test(`Verify the text contents of PDF file.`, { tag: '@Smoke'}, async ({ webActions }) => {
55
const extractedText = await webActions.getPDFText("./utils/functional/sample.pdf");
66
const status = extractedText.includes("A Simple PDF File")
77
expect(status).toBeTruthy();

tests/functional/Widgets.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import test from '@lib/BaseTest';
22

3-
test(`@Smoke Verify Widgets Page`, async ({ loginPage, widgetsPage, webActions }) => {
3+
test(`Verify Widgets Page`, { tag: '@Smoke'}, async ({ loginPage, widgetsPage, webActions }) => {
44
await loginPage.navigateToURL();
55
await webActions.clickByText('Widgets'); // Click on Widgets Icon identified via text selector
66
await webActions.clickByText('Auto Complete');

0 commit comments

Comments
 (0)