Skip to content

Commit

Permalink
Update test step text
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomachadors committed Jan 18, 2025
1 parent 61cc210 commit 8f39436
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 20 deletions.
4 changes: 2 additions & 2 deletions tests/resume.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { test } from '@playwright/test';
import { ResumePage } from './pages/ResumePage';

test.describe('Resume', () => {
test('Validate Resume Page content', async ({ page }) => {
test('Content', async ({ page }) => {
const resumePage = new ResumePage(page);

await test.step('Resume Page', async () => {
await test.step('Page', async () => {
await resumePage.navigateToResume();
await resumePage.validatePageLoaded();
});
Expand Down
41 changes: 23 additions & 18 deletions tests/skills.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import test from 'playwright/test';
import { SkillsPage } from './pages/skillsPage';
import { SKILLS } from '@/app/content/skills';

test.describe('Skills Page', () => {
test.describe('Skills', () => {
test('Content', async ({ page }) => {
const skillsPage = new SkillsPage(page);

Expand All @@ -16,23 +16,28 @@ test.describe('Skills Page', () => {
await skillsPage.validateCategoryTab(category);
}
});

for (const { category, subcategories } of SKILLS) {
await test.step(`Category: ${category}`, async () => {
await skillsPage.validateCategoryTab(category);

for (const { name, items } of subcategories) {
await test.step(`Subcategory: ${name}`, async () => {
await skillsPage.validateSubCategory(name);
await test.step(`Category`, async () => {
for (const { category, subcategories } of SKILLS) {
await test.step(`${category}`, async () => {
await test.step(`Visible`, async () => {
await skillsPage.validateCategoryTab(category);
});

for (const { text, description } of items) {
await test.step(`Skill: ${text}`, async () => {
await skillsPage.validateSkill(text, description);
});
}
}
});
}
await test.step(`Subcategories`, async () => {
for (const { name, items } of subcategories) {
await test.step(`${name}`, async () => {
await skillsPage.validateSubCategory(name);
});
await test.step(`Skills`, async () => {
for (const { text, description } of items) {
await test.step(` ${text}`, async () => {
await skillsPage.validateSkill(text, description);
});
}
});
}
});
});
}
});
});
});

0 comments on commit 8f39436

Please sign in to comment.