aboutsummaryrefslogtreecommitdiffstats
path: root/it
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2017-03-30 14:09:03 +0200
committerStas Vilchik <stas-vilchik@users.noreply.github.com>2017-04-03 10:38:52 +0200
commit2c890d852dd6c355a64679e1d603c17bfac29bc5 (patch)
tree541bf0a796a10944ecf5ce72f719edc2d0321cff /it
parent0f56fb56a40c1ee72f68dd170b12202e690086d9 (diff)
downloadsonarqube-2c890d852dd6c355a64679e1d603c17bfac29bc5.tar.gz
sonarqube-2c890d852dd6c355a64679e1d603c17bfac29bc5.zip
SONAR-8927 Change format of quality profile permalinks
Diffstat (limited to 'it')
-rw-r--r--it/it-tests/src/test/java/it/organization/OrganizationQualityProfilesPageTest.java5
-rw-r--r--it/it-tests/src/test/java/it/qualityProfile/QualityProfilesPageTest.java4
2 files changed, 8 insertions, 1 deletions
diff --git a/it/it-tests/src/test/java/it/organization/OrganizationQualityProfilesPageTest.java b/it/it-tests/src/test/java/it/organization/OrganizationQualityProfilesPageTest.java
index 3cabbe545d0..f214c76456f 100644
--- a/it/it-tests/src/test/java/it/organization/OrganizationQualityProfilesPageTest.java
+++ b/it/it-tests/src/test/java/it/organization/OrganizationQualityProfilesPageTest.java
@@ -100,7 +100,10 @@ public class OrganizationQualityProfilesPageTest {
@Test
public void testNotFound() {
Navigation nav = Navigation.get(orchestrator);
- nav.open("/organizations/test-org/quality_profiles/show?key=unknown");
+ nav.open("/organizations/" + ORGANIZATION + "/quality_profiles/show?key=unknown");
+ $(".quality-profile-not-found").should(Condition.visible);
+
+ nav.open("/organizations/" + ORGANIZATION + "/quality_profiles/show?language=xoo&name=unknown");
$(".quality-profile-not-found").should(Condition.visible);
}
diff --git a/it/it-tests/src/test/java/it/qualityProfile/QualityProfilesPageTest.java b/it/it-tests/src/test/java/it/qualityProfile/QualityProfilesPageTest.java
index cd41ebf2e29..73e9902e4b5 100644
--- a/it/it-tests/src/test/java/it/qualityProfile/QualityProfilesPageTest.java
+++ b/it/it-tests/src/test/java/it/qualityProfile/QualityProfilesPageTest.java
@@ -85,8 +85,12 @@ public class QualityProfilesPageTest {
@Test
public void testNotFound() {
Navigation nav = Navigation.get(orchestrator);
+
nav.open("/profiles/show?key=unknown");
$(".quality-profile-not-found").should(Condition.visible);
+
+ nav.open("/profiles/show?language=xoo&name=unknown");
+ $(".quality-profile-not-found").should(Condition.visible);
}
@Test