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

[RFR] Update open() for a few classes #1217

Merged
merged 9 commits into from
Sep 13, 2024

Conversation

nachandr
Copy link
Contributor

@nachandr nachandr commented Sep 5, 2024

Resolves Jira MTA-3720

Jnekins run

@nachandr nachandr changed the title [WIP] Update open() for a few classes [RFR] Update open() for a few classes Sep 6, 2024
@nachandr
Copy link
Contributor Author

nachandr commented Sep 6, 2024

Jenkins run with fix

Jenkins run before fix that shows that after() failed
Before_fix_Afterall_failure

Jenkins run with fix that shows that after() passed
After_fix_AfterHoook_pass

@@ -1373,8 +1373,8 @@ export function goToPage(page: number): void {
}

export function selectUserPerspective(userType: string): void {
cy.get(commonView.optionMenu).click();
cy.get(commonView.actionMenuItem).contains(userType).click();
cy.get("button.pf-v5-c-menu-toggle.pf-m-full-width").click({ force: true });
Copy link
Collaborator

Choose a reason for hiding this comment

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

if the selector has changed ,let's make the change in the commonView.optionmenu.

This change will have to be tested for few more tests .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @sshveta , The selector hasn't changed . I'm using a different locator to get the job done because with the current locator, there are intermittent issues and the user perspective toggle doesn't always get clicked.

Sure, I could run the PR on additional tests .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This PR tests the following -

  1. Creation and deletion of applications - 'Migration/Application inventory'
  2. Creation and deletion of stakeholders - 'Migration/Controls/Stakeholders'
  3. Creation and deletion of questionnaires - 'Migration/Administration/Assessment questionnaires'

@nachandr
Copy link
Contributor Author

This Jenkins job tests migration wave CRUD operations.

Migration/Migration waves

@nachandr
Copy link
Contributor Author

I will update the PR with the results of tier 0, tier 1 runs shortly .

@nachandr nachandr force-pushed the update_app_open_method branch 3 times, most recently from 34843a7 to 5ef98b5 Compare September 11, 2024 03:26
Signed-off-by: Nandini Chandra <[email protected]>
selectItemsPerPage(itemsPerPage)
);
cy.visit(Application.fullUrl, { timeout: 35 * SEC }).then((_) => {
cy.get("h1", { timeout: 100 * SEC }).should("contain", applicationInventory);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think a timeout of 100 secods is too much.

I think if a page takes more than 35 secs (the current timeout we have for other tests) to load the test should fail because something is wrong there

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, 100 seconds is too long for a page to load. I have reported a bug for that .

Copy link
Collaborator

Choose a reason for hiding this comment

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

we need to reduce the time and let this test fail .
It will impact overall time of execution.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Lot of tests are using application page , let's reduce it to 5 Sec

cypress/e2e/models/migration/controls/stakeholders.ts Outdated Show resolved Hide resolved
@nachandr
Copy link
Contributor Author

Jenkins job
Jenkins run shows that after() didn't fail with the fix .

after_failure

Signed-off-by: Nandini Chandra <[email protected]>
public static openList(forceReload = false): void {
if (forceReload) {
cy.visit(Stakeholders.fullUrl, { timeout: 35 * SEC }).then((_) => {
cy.get("h1", { timeout: 60 * SEC }).should("contain", "Controls");
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here , let's reduce the time to 15 sec max

Signed-off-by: Nandini Chandra <[email protected]>
@sshveta sshveta merged commit 4c0d1b3 into konveyor:main Sep 13, 2024
8 of 9 checks passed
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.

3 participants