Skip to content

Commit

Permalink
Nieuwe Test
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinICATT committed Oct 23, 2024
1 parent e5fa0ec commit e215e02
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions Kiss.Bff.EndToEndTest/NieuwsEnWerkInstructies.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,35 +262,35 @@ public async Task Als_ik_een_belangrijk_bericht_publiceer_komt_deze_bovenaan()
}


// This test covers Step 12. 13. 14.
[TestMethod]
public async Task Als_ik_een_skill_toevoeg_wordt_deze_vermeld_in_de_filter()
{
// Define the new skill name to be added and tested
var newSkill = "Test Skill";

//[TestMethod]
//public async Task Als_ik_een_skill_toevoeg_wordt_deze_vermeld_in_de_filter()
//{
// // Define the new skill name to be added and tested
// var newSkill = "Test Skill";

// try
// {
// // Step 1: Navigate to the Skills management page
// await NavigateToSkillsBeheer();
try
{
// Step 1: Navigate to the Skills management page
await NavigateToSkillsBeheer();

// // Step 2: Add the new skill
// await CreateSkill(newSkill);
// await Page.GotoAsync("/");
// // Step 3: Open the filter dropdown to verify the skill
// await Page.ClickAsync("summary:has-text('Filter op categorie')");
// Step 2: Add the new skill
await CreateSkill(newSkill);
await Page.GotoAsync("/");
// Step 3: Open the filter dropdown to verify the skill
await Page.ClickAsync("summary:has-text('Filter op categorie')");

// // Step 4: Verify the newly added skill appears in the filter list as a checkbox option
// var addedSkillCheckbox = Page.GetByRole(AriaRole.Checkbox, new() { Name = newSkill }).First;
// await Expect(addedSkillCheckbox).ToBeVisibleAsync();
// Step 4: Verify the newly added skill appears in the filter list as a checkbox option
var addedSkillCheckbox = Page.GetByRole(AriaRole.Checkbox, new() { Name = newSkill }).First;
await Expect(addedSkillCheckbox).ToBeVisibleAsync();

// }
// finally
// {
// // Optional clean-up: Remove the skill after test completion if necessary
// await DeleteSkill(newSkill);
// }
//}
}
finally
{
// clean-up: Remove the skill after test completion
await DeleteSkill(newSkill);
}
}

//// Made private because the test isn't done yet, this is just a stepping stone made with the playwright editor
//[TestMethod]
Expand Down

0 comments on commit e215e02

Please sign in to comment.