Skip to content

Webhooktest #2505

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private int getOffset() {
offset += searchComponent.getHeight();
}

return offset;
return offset + 200;
}

public void scrollToSpecificElement(WebElement element) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class PrivacyPolicyPage extends WikiBasePageObject {

private static final String PRIVACY_POLICY_PAGE = "http://www.wikia.com/Privacy_Policy";
@FindBy(css = "#privacy-settings-button")
@FindBy(css = ".privacy-settings-button")
private WebElement resetTrackingButton;

public void navigateToPrivacyPolicyPage() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ private AssertionMessages() {
+ ".wds-global-navigation__user-logged-in .wds-avatar img";

private static final String WDS_FOOTER_HEADER_CLASS = "wds-global-footer__header";
private static final By MERCURY_SKIN = By.cssSelector(".mobile-wiki");
// private static final By MERCURY_SKIN = By.cssSelector("#ember-container, .mobile-wiki");

Choose a reason for hiding this comment

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

MAJOR This block of commented-out lines of code should be removed. rule

private static final By MERCURY_SKIN = By.cssSelector("#ember-container");
private static final String LOGGED_IN_USER_SELECTOR_MERCURY =
".wds-global-navigation__modal-control-user .wds-avatar__inner-border[title=%userName%]";
private static final By BANNER_NOTIFICATION_CONTAINER = By.cssSelector(".banner-notifications-placeholder,.smart-banner");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void testLayoutForDeLoggedIn() {

@RunOnly(language = "szl")
@Test(groups = {"globalNavigationBarLayoutForDeLoggedIn"})
@Execute(language = "szl", asUser = User.USER_GERMAN)
@Execute(asUser = User.USER_GERMAN)
public void testLayoutForLoggedInSzl() {
GlobalNavigation globalNavigation = new HomePage().getGlobalNavigation();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import com.wikia.webdriver.common.core.configuration.Configuration;
import com.wikia.webdriver.common.core.helpers.User;
import com.wikia.webdriver.common.templates.NewTestTemplate;
import com.wikia.webdriver.elements.communities.desktop.components.navigation.local.CommunityHeaderDesktop;
import com.wikia.webdriver.elements.communities.desktop.components.globalshortcuts.ActionExplorerModal;
import com.wikia.webdriver.elements.communities.desktop.components.navigation.local.CommunityHeaderDesktop;
import com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.AddMediaModalComponentObject;
import com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.CreateArticleModalComponentObject;
import com.wikia.webdriver.pageobjectsfactory.pageobject.oasis.MainPage;
Expand Down Expand Up @@ -169,7 +169,7 @@ public void testExploreMenuLinks() {
communityHeader.openExploreMenu().clickExploreRandomLink();

Assertion.assertTrue(driver.getCurrentUrl()
.matches(".*\\.wikia\\.com/wiki/(?!Special:Images).*"));
.matches(".*\\.(wikia|fandom)\\.com/wiki/(?!Special:Images).*"));
}

@RunOnly(language = "szl")
Expand Down Expand Up @@ -205,7 +205,7 @@ public void testExploreMenuLinksSzl() {
public void testDiscussLinkOnWikiWithDiscussionsWithoutForum() {
new CommunityHeaderDesktop().clickDiscussLink();

Assertion.assertStringContains(driver.getCurrentUrl(),"wikia.com/d/f");
Assertion.assertTrue(driver.getCurrentUrl().matches(".*(wikia|fandom).com/d/f"));
}

@RunOnly(language = "szl")
Expand Down