Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate tags from test title #64

Merged
merged 1 commit into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading