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

US Tests - Creation of VM from Template tests #2377

Closed
wants to merge 1 commit into from

Conversation

lkladnit
Copy link
Collaborator

@lkladnit lkladnit commented Jan 21, 2025

📝 Description

This PR adds 4 ui tests to upstream, as of CNV-55244

  1. Quick create VM from Template
  2. Customize create VM from Template
  3. Verify customized VM
  4. Select all VMs and stop them together

It also disables switching to Virtualization Perspective and clones navigation functions used in Admin perspective to the same for Virtualization Perspective.

@openshift-ci openshift-ci bot requested review from metalice and upalatucci January 21, 2025 13:16
@lkladnit lkladnit self-assigned this Jan 21, 2025
@openshift-ci openshift-ci bot added the lgtm Passed code review, ready for merge label Jan 21, 2025
Copy link
Contributor

openshift-ci bot commented Jan 21, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lkladnit, upalatucci

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved This issue is something we want to fix label Jan 21, 2025
@metalice
Copy link
Member

/retest

@openshift-ci openshift-ci bot removed the lgtm Passed code review, ready for merge label Jan 22, 2025
Copy link
Contributor

openshift-ci bot commented Jan 22, 2025

New changes are detected. LGTM label has been removed.

@lkladnit lkladnit force-pushed the create-vm-template branch 4 times, most recently from a08a395 to 330ffb4 Compare January 23, 2025 06:04
@lkladnit
Copy link
Collaborator Author

/retest

@lkladnit
Copy link
Collaborator Author

/retest

@@ -24,7 +25,7 @@ Cypress.Commands.add('login', (provider: string, username: string, password: str
// Make sure we clear the cookie in case a previous test failed to logout.
cy.clearCookie('openshift-session-token');

cy.get('[data-test-id=login]', { timeout: 30000 }).should('be.visible');
cy.get('[data-test-id=login]', { timeout: 5 * MINUTE }).should('be.visible');
Copy link
Member

Choose a reason for hiding this comment

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

how about creating a const called TIMEOUT which will be a value of 5 * MINUTE, and if needed change in the future we can fix it in one place instead of multiple places

'be.visible',
);
Cypress.Commands.add('visitTemplatesVirt', () => {
// cy.clickVirtLink(nav.templateNav);
Copy link
Member

Choose a reason for hiding this comment

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

there are a lot of lines commented out in this file, is it intentional?

@@ -56,8 +59,8 @@ Cypress.Commands.add('byTestOperatorRow', (selector: string, options?: object) =
cy.get(`[data-test-operator-row="${selector}"]`, options),
);
Cypress.Commands.add('clickNavLink', (path: [string, string?]) => {
cy.byTestID('nav', { timeout: 10000 })
.contains(path[0], { timeout: 10000 })
cy.byTestID('nav', { timeout: 10 * SECOND })
Copy link
Member

Choose a reason for hiding this comment

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

here too, 10 * SECOND repeats itself, how about creating another const, SHORT_TIMEOUT?

@@ -88,3 +91,13 @@ Cypress.Commands.add('clickApplyBtn', () => cy.contains('button[type="button"]',
Cypress.Commands.add('switchToVirt', () => {
switchPerspective(Perspective.Virtualization);
});

Cypress.Commands.add('checkTitle', (title: string, timeout?: number) => {
const t_o = timeout ? timeout : 3 * MINUTE;
Copy link
Member

Choose a reason for hiding this comment

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

why here it's 3 minutes timeout and some files it's 5 minutes?

cypress/tests/e2e/check-tab-yaml.cy.ts Outdated Show resolved Hide resolved
@@ -2,11 +2,11 @@

set -eExuo pipefail

source cleanup.sh
#source cleanup.sh
Copy link
Member

Choose a reason for hiding this comment

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

intentional?

@lkladnit
Copy link
Collaborator Author

/retest

@lkladnit
Copy link
Collaborator Author

/retest

@lkladnit
Copy link
Collaborator Author

/retest-required

2 similar comments
@lkladnit
Copy link
Collaborator Author

/retest-required

@lkladnit
Copy link
Collaborator Author

/retest-required

@lkladnit
Copy link
Collaborator Author

/retest

@metalice
Copy link
Member

/retest

@lkladnit
Copy link
Collaborator Author

/retest-required

Copy link
Contributor

openshift-ci bot commented Jan 29, 2025

@lkladnit: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/kubevirt-e2e-aws d031009 link true /test kubevirt-e2e-aws

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@lkladnit lkladnit marked this pull request as draft January 30, 2025 11:09
@lkladnit lkladnit closed this Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This issue is something we want to fix do-not-merge/work-in-progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants