Skip to content

Commit bb778e0

Browse files
fix: resolve TypeScript e2e test name and header expectations
1 parent 836aba6 commit bb778e0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

cypress-e2e/fixtures/commonTestData.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import { getRandomTextString } from '../helpers/base-helper';
22
import { Constants } from './constants';
33
import { baseSelectors, selectors } from '../common/selectors';
44

5+
const typescriptHeader =
6+
Constants.commonConstantsData.typeScript.charAt(0).toUpperCase() +
7+
Constants.commonConstantsData.typeScript.slice(1);
8+
59
export class CommonTestData {
610
public static readonly multipleSizeStringsArray = [
711
getRandomTextString(10),
@@ -44,12 +48,12 @@ export class CommonTestData {
4448
public static readonly commonTypeScriptAppsData = [
4549
{
4650
host: 3001,
47-
header: Constants.commonConstantsData.typeScript.charAt(0).toUpperCase(),
51+
header: typescriptHeader,
4852
appName: Constants.commonConstantsData.commonCountAppNames.app1,
4953
},
5054
{
5155
host: 3002,
52-
header: Constants.commonConstantsData.typeScript.charAt(0).toUpperCase(),
56+
header: typescriptHeader,
5357
appName: Constants.commonConstantsData.commonCountAppNames.app2,
5458
},
5559
];

typescript/e2e/tests/commonChecks.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ test.describe('Typescript', () => {
5454
await expect(page.locator(baseSelectors.tags.headers.h2)).toHaveText(app.appName);
5555
});
5656

57-
test(`checks both apps share ${primaryAppButtons.small}`, async ({ page }) => {
57+
test(`checks both apps share ${primaryAppButtons.small} (port: ${app.host})`, async ({ page }) => {
5858
await navigateToApp(page, app.host);
5959

6060
await expect(page.getByRole('button', { name: primaryAppButtons.small })).toBeVisible();

0 commit comments

Comments
 (0)