Skip to content

Conversation

@sczerwinski-wikia
Copy link

No description provided.



public void dynamicCategoryAnonNotAbleToChangeLayout() {
new ArticlePageObject().open("Category:200elements");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MINOR Define a constant instead of duplicating this literal "Category:200elements" 4 times. rule


DynamicCategoryPage categoryPage = new DynamicCategoryPage();
CategoryLayoutSelector layoutSelector = categoryPage.getLayoutSelector();
Assertion.assertFalse(layoutSelector.isVisible(), "Layout selectors are displayed for anon");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MINOR Define a constant instead of duplicating this literal "Layout selectors are displayed for anon" 3 times. rule

@WikiaTech
Copy link

SonarQube analysis reported 10 issues

  • MAJOR 5 major
  • MINOR 5 minor

Watch the comments in this conversation to review them.

8 extra issues

Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

  1. MAJOR BasePageObject.java#L171: Either log or rethrow this exception. rule
  2. MAJOR BasePageObject.java#L339: Either log or rethrow this exception. rule
  3. MAJOR BasePageObject.java#L642: Remove this unused private "getTabsCount" method. rule
  4. MAJOR BasePageObject.java#L703: Remove this unused "initialTabsNumber" local variable. rule
  5. MAJOR CategoryPageTest.java#L100: This block of commented-out lines of code should be removed. rule
  6. MINOR CategoryPageTest.java#L24: Define a constant instead of duplicating this literal "Category:%s" 5 times. rule
  7. MINOR CategoryPageTest.java#L27: Define a constant instead of duplicating this literal "[[%s]]" 7 times. rule
  8. MINOR CategoryPageTest.java#L43: Define a constant instead of duplicating this literal "some irrelevant content of category article" 3 times. rule

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants