-
Notifications
You must be signed in to change notification settings - Fork 40
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
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3c78d62
Update open() for a few classes
nachandr 71ef540
Update application.open()
nachandr c4ebaee
Update AssessmentQuestionnaire.open()
nachandr 2416513
Update AssessmentQuestionnaire.deleteAllQuestionnaires()
nachandr 3619ba3
Use different selector for user perspective menu toggle
nachandr 4463b9d
Update open methods for a few classes
nachandr 6a39766
Update Stakeholder URL
nachandr cfe9225
Address review comments
nachandr 869eb46
Added comment about bug
nachandr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ export class Stakeholders { | |
email: string; | ||
jobfunction: string; | ||
groups: Array<string>; | ||
static fullUrl = Cypress.env("tackleUrl") + "controls/stakeholders"; | ||
static fullUrl = Cypress.env("tackleUrl") + "/controls/stakeholders"; | ||
|
||
constructor(email: string, name: string, jobfunction?: string, groups?: Array<string>) { | ||
this.email = email; | ||
|
@@ -59,7 +59,15 @@ export class Stakeholders { | |
if (groups) this.groups = groups; | ||
} | ||
|
||
public static openList(itemsPerPage = 100): void { | ||
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"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here , let's reduce the time to 15 sec max |
||
selectItemsPerPage(100); | ||
}); | ||
return; | ||
} | ||
|
||
cy.url().then(($url) => { | ||
if ($url != Stakeholders.fullUrl) { | ||
selectUserPerspective(migration); | ||
|
@@ -69,7 +77,7 @@ export class Stakeholders { | |
} | ||
}); | ||
cy.get("h1", { timeout: 30 * SEC }).should("contain.text", "Controls"); | ||
selectItemsPerPage(itemsPerPage); | ||
selectItemsPerPage(100); | ||
} | ||
|
||
protected fillName(name: string): void { | ||
|
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 .
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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