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

[java] Fix FedCM command definition #14070

Merged
merged 19 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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 @@ -197,14 +197,15 @@ public AbstractHttpCommandCodec() {
defineCommand(SET_USER_VERIFIED, post(webauthnId + "/uv"));

// Federated Credential Management API
defineCommand(CANCEL_DIALOG, post("/fedcm/canceldialog"));
defineCommand(SELECT_ACCOUNT, post("/fedcm/selectaccount"));
defineCommand(CLICK_DIALOG, post("/fedcm/clickdialogbutton"));
defineCommand(GET_ACCOUNTS, get("/fedcm/accountlist"));
defineCommand(GET_FEDCM_TITLE, get("/fedcm/gettitle"));
defineCommand(GET_FEDCM_DIALOG_TYPE, get("/fedcm/getdialogtype"));
defineCommand(SET_DELAY_ENABLED, post("/fedcm/setdelayenabled"));
defineCommand(RESET_COOLDOWN, post("/fedcm/resetcooldown"));
String fedcm = sessionId + "/fedcm";
defineCommand(CANCEL_DIALOG, post(fedcm + "/canceldialog"));
defineCommand(SELECT_ACCOUNT, post(fedcm + "/selectaccount"));
defineCommand(CLICK_DIALOG, post(fedcm + "/clickdialogbutton"));
defineCommand(GET_ACCOUNTS, get(fedcm + "/accountlist"));
defineCommand(GET_FEDCM_TITLE, get(fedcm + "/gettitle"));
defineCommand(GET_FEDCM_DIALOG_TYPE, get(fedcm + "/getdialogtype"));
defineCommand(SET_DELAY_ENABLED, post(fedcm + "/setdelayenabled"));
defineCommand(RESET_COOLDOWN, post(fedcm + "/resetcooldown"));

defineCommand(GET_DOWNLOADABLE_FILES, get(sessionId + "/se/files"));
defineCommand(DOWNLOAD_FILE, post(sessionId + "/se/files"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.openqa.selenium.testing.JupiterTestBase;
import org.openqa.selenium.testing.NotYetImplemented;

class FederatedCredentialManagementTest extends JupiterTestBase {

Expand Down Expand Up @@ -81,9 +80,6 @@ private int getSecurePort() {
}

@Test
@NotYetImplemented(
value = CHROME,
reason = "https://github.com/SeleniumHQ/selenium/pull/12096#issuecomment-2017760822")
void testDismissDialog() {
fedcmDriver.setDelayEnabled(false);
assertNull(fedcmDriver.getFederatedCredentialManagementDialog());
Expand Down Expand Up @@ -116,9 +112,6 @@ void testDismissDialog() {
}

@Test
@NotYetImplemented(
value = CHROME,
reason = "https://github.com/SeleniumHQ/selenium/pull/12096#issuecomment-2017760822")
void testSelectAccount() {
fedcmDriver.setDelayEnabled(false);
assertNull(fedcmDriver.getFederatedCredentialManagementDialog());
Expand Down
Loading