Allure.step("Сравниваем ожидаемую и актуальную Map");
softAsserts = new SoftAssertions();
softAsserts.assertThat(menuCollection).isEqualTo(expected);
Tabs_menu_page.clickMenu()
.clicklExit();
Allure.step("Следующий permissionId" + permissionId);
}
}
softAsserts.assertAll();
}
for (String key : expected.keySet()) {
if (menuCollection.get(key) != expected.get(key)) {
Allure.step("Ошибка", Status.FAILED);
Allure.getLifecycle().updateStep(testResult -> testResult.setStatus(Status.FAILED));
Allure.getLifecycle().stopStep();
if (!expected.get(key)) {
assert account != null;
Allure.step(" Вкладки " + key + " лишняя у permission " + permissionId + " AccountId: " + account.getAccounId());
// softAsserts.fail(" Вкладки " + key + " лишняя у permission " + Arrays.toString(permission_id) + " AccountId: " + accountId);
} else {
assert account != null;
Allure.step(" Вкладки " + key + " не хватет у permission " + permissionId + " AccountId: " + account.getAccounId());
// softAsserts.fail(" Вкладки " + key + " не хватет у permission " + Arrays.toString(permission_id) + " AccountId: " + accountId);
}
}
}