Skip to content

Commit

Permalink
Merge pull request #64 from sureshk2a/chore/seperate-tags-from-title
Browse files Browse the repository at this point in the history
Separate tags from test title
  • Loading branch information
akshayp7 committed May 18, 2024
2 parents 73ad3ef + 5e9eb09 commit fa4fd49
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/api/GET.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion tests/api/POST.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/AlertsFrameWindows.test.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/Elements.test.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/Interactions.test.ts
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/Login.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/PdfToText.test.ts
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/Widgets.test.ts
Original file line number Diff line number Diff line change
@@ -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');
Expand Down

0 comments on commit fa4fd49

Please sign in to comment.