-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2276 from gouyang/check_more_pages
Verify various tabs and examples under Virtualiztion
- Loading branch information
Showing
16 changed files
with
406 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,65 @@ | ||
import './selectors'; | ||
|
||
import { catalogNav, overviewNav, resourceTitle, templateNav, vmNav } from '../views/selector'; | ||
import * as nav from '../views/selector'; | ||
|
||
declare global { | ||
// eslint-disable-next-line @typescript-eslint/no-namespace | ||
namespace Cypress { | ||
interface Chainable { | ||
visitCatalog(): void; | ||
visitCheckups(): void; | ||
visitITs(): void; | ||
visitMPs(): void; | ||
visitOverview(): void; | ||
visitPreferences(): void; | ||
visitTemplates(): void; | ||
visitVMs(): void; | ||
visitVolumes(): void; | ||
} | ||
} | ||
} | ||
|
||
Cypress.Commands.add('visitOverview', () => { | ||
cy.clickVirtLink(overviewNav); | ||
cy.contains(resourceTitle, 'Virtualization').should('be.visible'); | ||
// eslint-disable-next-line cypress/no-unnecessary-waiting | ||
cy.wait(1000); | ||
cy.clickVirtLink(nav.overviewNav); | ||
cy.contains(nav.resourceTitle, 'Virtualization').should('be.visible'); | ||
}); | ||
|
||
Cypress.Commands.add('visitCatalog', () => { | ||
cy.clickVirtLink(catalogNav); | ||
cy.clickVirtLink(nav.catalogNav); | ||
cy.contains('Create new VirtualMachine').should('be.visible'); | ||
// eslint-disable-next-line cypress/no-unnecessary-waiting | ||
cy.wait(1000); | ||
}); | ||
|
||
Cypress.Commands.add('visitVMs', () => { | ||
cy.clickVirtLink(vmNav); | ||
cy.contains(resourceTitle, 'VirtualMachines').should('be.visible'); | ||
// eslint-disable-next-line cypress/no-unnecessary-waiting | ||
cy.wait(1000); | ||
cy.clickVirtLink(nav.vmNav); | ||
cy.contains(nav.resourceTitle, 'VirtualMachines').should('be.visible'); | ||
}); | ||
|
||
Cypress.Commands.add('visitTemplates', () => { | ||
cy.clickVirtLink(templateNav); | ||
cy.contains(resourceTitle, 'VirtualMachine Templates').should('be.visible'); | ||
// eslint-disable-next-line cypress/no-unnecessary-waiting | ||
cy.wait(1000); | ||
cy.clickVirtLink(nav.templateNav); | ||
cy.contains(nav.resourceTitle, 'VirtualMachine Templates').should('be.visible'); | ||
}); | ||
|
||
Cypress.Commands.add('visitITs', () => { | ||
cy.clickVirtLink(nav.itNav); | ||
cy.byLegacyTestID('cx1.2xlarge').should('exist'); | ||
}); | ||
|
||
Cypress.Commands.add('visitPreferences', () => { | ||
cy.clickVirtLink(nav.preferenceNav); | ||
cy.byLegacyTestID('fedora').should('exist'); | ||
}); | ||
|
||
Cypress.Commands.add('visitVolumes', () => { | ||
cy.clickVirtLink(nav.volumeNav); | ||
cy.contains(nav.resourceTitle, 'Bootable volumes').should('be.visible'); | ||
}); | ||
|
||
Cypress.Commands.add('visitMPs', () => { | ||
cy.clickVirtLink(nav.mpNav); | ||
cy.contains(nav.resourceTitle, 'MigrationPolicies').should('be.visible'); | ||
}); | ||
|
||
Cypress.Commands.add('visitCheckups', () => { | ||
cy.clickVirtLink(nav.checkupNav); | ||
cy.contains(nav.resourceTitle, 'Checkups').should('be.visible'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import './e2e/login.cy.ts'; | ||
import './e2e/check-tab-yaml.cy.ts'; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.