Skip to content
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

Adjust code.quarkus site tests to the new layout with presets #409

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class CodeQuarkusSiteTest {

private static final Logger LOGGER = Logger.getLogger(CodeQuarkusSiteTest.class.getName());

public static final String pageLoadedSelector = ".extension-category";
public static final String pageLoadedSelector = ".project-extensions";
public static final String webPageUrl = Commands.getCodeQuarkusURL("https://code.quarkus.redhat.com/");
public static final String elementTitleByText = "Quarkus - Start coding with code.quarkus.redhat.com";
public static final String elementIconByXpath = "//link[@rel=\"shortcut icon\"][@href=\"https://www.redhat.com/favicon.ico\"]";
Expand Down Expand Up @@ -95,10 +95,10 @@ public void validatePresenceOfRedHatLogo(TestInfo testInfo) {

@Test
public void validatePresenceOfSupportedFlags(TestInfo testInfo) {
Page page = loadPage(webPageUrl, 60);
Page page = loadPage(webPageUrl + "/?e=grpc", 60);
LOGGER.info("Trying to find element: " + elementSupportedFlagByXpath);
Locator supportedExtensions = page.locator(elementSupportedFlagByXpath);
assertTrue(supportedExtensions.count() > 1, "Element: " + elementSupportedFlagByXpath + " is missing!");
assertTrue(supportedExtensions.count() >= 1, "Element: " + elementSupportedFlagByXpath + " is missing!");
}

@Test
Expand Down
Loading