private Section getSection()

in src/main/java/platform/qa/steps/cabinet/DashboardStepDefinitions.java [66:75]


    private Section getSection(String entry) {
        try {
            return Arrays.stream(Section.values())
                    .filter(value -> value.getSection().equalsIgnoreCase(entry))
                    .findFirst()
                    .orElseThrow();
        } catch (NoSuchElementException ex) {
            return Section.valueOf(entry);
        }
    }