-
Notifications
You must be signed in to change notification settings - Fork 19
Logging-ui-plugin test using real data #305
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
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: anpingli The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
5e598ce to
74d54a2
Compare
86bc31f to
856f0b1
Compare
|
/retest |
|
@anpingli There are some errors coming from the package-lock.json file, this is from prow logs:
|
3294a38 to
cf23167
Compare
9a13df3 to
27d9043
Compare
|
@zhuje All test pass now. |
|
@jgbernalp could you talk a look my PR? |
|
LGTM |
web/cypress/e2e/logging/logs-adminConsole-ObserveLogs-admin.cy.ts
Outdated
Show resolved
Hide resolved
web/cypress/e2e/logging/logs-adminConsole-ObserveLogs-admin.cy.ts
Outdated
Show resolved
Hide resolved
web/cypress/e2e/logging/logs-adminConsole-AggregatedLogs-admin.cy.ts
Outdated
Show resolved
Hide resolved
web/cypress/e2e/logging/logs-adminConsole-AggregatedLogs-admin.cy.ts
Outdated
Show resolved
Hide resolved
web/cypress/e2e/logging/logs-adminConsole-AggregatedLogs-admin.cy.ts
Outdated
Show resolved
Hide resolved
27d9043 to
352c1a6
Compare
352c1a6 to
ee72376
Compare
ee72376 to
3d1f633
Compare
|
@etmurasaki @jgbernalp Refactored the program to improve readability and maintainability, please take a look again. |
| @@ -0,0 +1,230 @@ | |||
| export const DataTestIDs = { | |||
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.
The ids seem to be specific to monitoring only, are they required here?
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 don't use data-test.ts directly. data-test.ts is used by some common function in these files I borrowed from monitoring-plugin. How about merge data-test.ts with test-ids.ts or change the directory of it?
For example:
changeNamespace, changePerspectiveTo
web/cypress/support/commands/utility-commands.ts
web/cypress/views/nav.ts
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 believe you can include IDs into your test-ids.ts only those you use for changeNamespace, changePerspectiveTo etc...
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'd like to keep the utility files same with the origin, so I just need to copy new files from monitoring-ui plugins directly.
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.
The origin should not be the monitoring plugin, but the console itself. Maybe we can extract the console specific ids into a file and copy or reuse only that one. I believe it will make the code easier to understand, contribute and reason about if we only copy what we need and reduce the noise other ids, specific to monitoring only, might cause.
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.
Moved from src/components/data-test.ts. to web/cypress/fixtures/data-test.ts.
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.
Any suggestion how can we extract all from console? and the IDs are various in different OpenShift Versions.
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 we can create a specific file in the monitoring plugin with ids related to the console, with their corresponding versions. Then copy it here. @etmurasaki WDYT?
6f2396c to
eb8389d
Compare
eb8389d to
be6f2a5
Compare
|
@anpingli: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
Uh oh!
There was an error while loading. Please reload this page.