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

Update API key tests to use ApiKeyPanel and ApiKeyDialog #2088

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

labkey-tchad
Copy link
Member

@labkey-tchad labkey-tchad commented Oct 10, 2024

Rationale

Tests should use shared components when able. ApiKeyPanel should live in testAutomation since it isn't specific to sample manager.

Related Pull Requests

Changes

  • Update API key tests to use ApiKeyPanel and ApiKeyDialog
  • Relocate ApiKeyPanel and ApiKeyDialog to org.labkey.test.components.core

Relocate ApiKeyPanel and ApiKeyDialog
getWrapper().shortWait().until(ExpectedConditions.invisibilityOf(elementCache().descriptionInput.getComponentElement()));
clearElementCache();
getWrapper().shortWait().until(ExpectedConditions.visibilityOf(elementCache().inputField.getComponentElement()));
return this;
Copy link
Contributor

Choose a reason for hiding this comment

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

I would have thought using this might produce a stale element exception. If not, then so much the better.

Copy link
Member Author

Choose a reason for hiding this comment

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

The body of the dialog does go stale (hence the clearElementCache) but the outer div of the dialog is stable.

@labkey-tchad labkey-tchad merged commit c47da69 into develop Oct 10, 2024
5 checks passed
@labkey-tchad labkey-tchad deleted the fb_apiKeyPanel branch October 10, 2024 20:56
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