diff --git a/build.gradle b/build.gradle index 24002a0..e85ddb5 100644 --- a/build.gradle +++ b/build.gradle @@ -12,7 +12,7 @@ plugins { } group 'io.github' -version '1.5.2' +version '1.5.3' sourceCompatibility = JavaVersion.VERSION_11 repositories { diff --git a/src/main/java/io/github/legionivo/plugin/TestRailApiWrapper.java b/src/main/java/io/github/legionivo/plugin/TestRailApiWrapper.java index 84c3e7a..c34d6bd 100644 --- a/src/main/java/io/github/legionivo/plugin/TestRailApiWrapper.java +++ b/src/main/java/io/github/legionivo/plugin/TestRailApiWrapper.java @@ -243,7 +243,7 @@ private static String getValueFromExpression(PsiExpression expression) { String text = null; if (expression instanceof PsiMethodCallExpression) { PsiMethod method = ((PsiMethodCallExpressionImpl) expression).resolveMethod(); - if (Objects.requireNonNull(method).hasAnnotation(Annotations.OWNER_KEY_ANNOTATION) || method.getAnnotations().length > 0) { + if (Objects.requireNonNull(method).hasAnnotation(Annotations.OWNER_KEY_ANNOTATION) || method.getAnnotations().length > 0 && !method.hasAnnotation(Annotations.ALLURE2_STEP_ANNOTATION)) { text = getValueFromAnnotatedMethod(expression, method); } else if (method.getBody() != null) { PsiStatement[] statements = method.getBody().getStatements(); diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 7b38de6..9a78c6f 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -5,8 +5,8 @@ ]]>