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

Add support for generating API keys in apps and for deleting existing keys #1778

Merged
merged 3 commits into from
Jan 10, 2024

Conversation

labkey-susanh
Copy link
Contributor

Rationale

For LKSM Prof+ clients, we support usage of APIs, so we want to bring the ability to generate and delete API keys into the applications.

Related Pull Requests

Changes

  • Update locators for APIKeyTest to adapt to React component
  • TODO Add tests for deleting API keys

waitForFormElementToNotEqual(Locator.inputById("apikey-token"), "");
String apiKey = Locator.inputById("apikey-token").findElement(getDriver()).getAttribute("value");
clickButton("Generate API Key", 0);
waitForFormElementToNotEqual(Locator.inputByNameContaining("apikey_token"), "");
Copy link
Contributor

Choose a reason for hiding this comment

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

Another way to check is to wait for the control to go stale. Example:
shortWait().until(ExpectedConditions.stalenessOf(elementCache().finishButton));

@labkey-susanh labkey-susanh merged commit e89d7db into develop Jan 10, 2024
1 check passed
@labkey-susanh labkey-susanh deleted the fb_apiKeyGeneration branch January 10, 2024 00:48
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