Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
modified: pkg/qe-tests/cypress/integration/models/providerRhv.ts (#939)
Browse files Browse the repository at this point in the history
Co-authored-by: Igor Braginsky <ibragins@redhat.com>
  • Loading branch information
kpunwatk and ibragins committed Mar 9, 2022
1 parent cebb68d commit 8087c64
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions pkg/qe-tests/cypress/integration/models/providerRhv.ts
Expand Up @@ -14,10 +14,6 @@ import { providerMenu } from '../views/provider.view';
import { removeButton, rhv, SEC, button, trTag } from '../types/constants';

export class providerRhv extends Provider {
protected runWizard(providerData: RhvProviderData): void {
super.runWizard(providerData);
}

protected fillName(name: string): void {
inputText(instanceName, name);
}
Expand Down Expand Up @@ -65,6 +61,17 @@ export class providerRhv extends Provider {
cy.get(dataLabel.storageDomains).should('not.be.empty').should('not.contain.text', '0');
});
}
protected runWizard(providerData: RhvProviderData): void {
const { name, hostname, username, password, cert } = providerData;
super.runWizard(providerData);
this.fillName(name);
this.fillHostname(hostname);
this.fillUsername(username);
this.fillPassword(password);
this.fillCaCert(cert);
click(addButtonModal);
cy.wait(2 * SEC);
}

create(providerData: RhvProviderData): void {
const { name, hostname, username, password, cert } = providerData;
Expand Down

0 comments on commit 8087c64

Please sign in to comment.