diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-01-22 10:02:17 +0100 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2018-02-07 14:33:55 +0100 |
commit | 5899b032eb08d49aa85cac80ede7eed86c9a4ec0 (patch) | |
tree | f5cd48cd1a8b97dc84afd982949f234a8acab31c /server/sonar-qa-util/src | |
parent | c4a26a8e449f832a26fbe2428702a9060da24501 (diff) | |
download | sonarqube-5899b032eb08d49aa85cac80ede7eed86c9a4ec0.tar.gz sonarqube-5899b032eb08d49aa85cac80ede7eed86c9a4ec0.zip |
SONAR-10293 add IT
Diffstat (limited to 'server/sonar-qa-util/src')
-rw-r--r-- | server/sonar-qa-util/src/main/java/org/sonarqube/qa/util/pageobjects/SourceViewer.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/server/sonar-qa-util/src/main/java/org/sonarqube/qa/util/pageobjects/SourceViewer.java b/server/sonar-qa-util/src/main/java/org/sonarqube/qa/util/pageobjects/SourceViewer.java index 5da34d9c7fd..78ed2c8a146 100644 --- a/server/sonar-qa-util/src/main/java/org/sonarqube/qa/util/pageobjects/SourceViewer.java +++ b/server/sonar-qa-util/src/main/java/org/sonarqube/qa/util/pageobjects/SourceViewer.java @@ -37,4 +37,18 @@ public class SourceViewer { return $(".bubble-popup").shouldBe(visible); } + public SourceViewer shouldHaveNewLines(int ...lines) { + for (int line : lines) { + this.el.$(".source-line-filtered[data-line-number=\"" + line + "\"").shouldBe(visible); + } + return this; + } + + public SourceViewer shouldNotHaveNewLines(int ...lines) { + for (int line : lines) { + this.el.$(".source-line-filtered[data-line-number=\"" + line + "\"").shouldNotBe(visible); + } + return this; + } + } |