Fix users test by awaiting credentials API call (#3536)
This commit is contained in:
parent
dc3c08aa59
commit
7f0b9edcf0
1 changed files with 4 additions and 3 deletions
|
@ -24,7 +24,10 @@ export default class CredentialsPage {
|
||||||
private readonly closeDataDialogBtn = '.pf-c-modal-box [aria-label^="Close"]';
|
private readonly closeDataDialogBtn = '.pf-c-modal-box [aria-label^="Close"]';
|
||||||
|
|
||||||
goToCredentialsTab() {
|
goToCredentialsTab() {
|
||||||
|
cy.intercept("/admin/realms/*/users/*/credentials").as("load");
|
||||||
cy.findByTestId(this.credentialsTab).click();
|
cy.findByTestId(this.credentialsTab).click();
|
||||||
|
cy.wait("@load");
|
||||||
|
cy.wait(200);
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -108,9 +111,7 @@ export default class CredentialsPage {
|
||||||
}
|
}
|
||||||
|
|
||||||
clickShowDataDialogBtn() {
|
clickShowDataDialogBtn() {
|
||||||
cy.findByTestId(this.showDataDialogBtn)
|
cy.findByTestId(this.showDataDialogBtn).click();
|
||||||
.should("be.visible")
|
|
||||||
.click({ force: true });
|
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue