NETOBSERV-2388 QE Frontend tests migration#1317
NETOBSERV-2388 QE Frontend tests migration#1317memodi wants to merge 3 commits intonetobserv:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
ab2a6c5 to
9404ea3
Compare
| ## Tests naming | ||
| - All tests must have all lower case in their naming to maintain alphabetical order of tests execution. | ||
|
|
||
| ## Flaky tests |
There was a problem hiding this comment.
I dont think this section is valid anymore? More of these tests should be less flaky now
web/cypress/views/netflow-page.ts
Outdated
| export const conversationID = '[data-test=th-_HashId] > .pf-v5-c-table__button' | ||
| export const flowRTT = '[data-test=th-TimeFlowRttMs] > .pf-v5-c-table__button' | ||
| export const dscp = '[data-test=th-Dscp] > .pf-v5-c-table__button' | ||
| export const DNSLatency = '[data-test=th-DNSLatency] > .pf-v5-c-table__column-help > .pf-v5-c-table__button' |
There was a problem hiding this comment.
These vars need to start with lower-case. Its not part of this PR scope, but will be good to have it fixed
There was a problem hiding this comment.
I have updated for DNS* var names, however I'd like to contain only changes that are related to this migration work in this PR.
| export const doubleLeftShift = backwardShift + "> div:nth-child(1) > button" | ||
| } | ||
|
|
||
| Cypress.Commands.add('showAdvancedOptions', () => { |
There was a problem hiding this comment.
I think some of the commands added here were taken from the console repo. So there might be repetition and can be removed
There was a problem hiding this comment.
any idea which commands are repeated? for e.g.: I only see showAdvancedOptions defined here in this file, no where else.
There was a problem hiding this comment.
pushed commit to remove duplicate cypress commands, I have kept checkPopupItems and changeQueryOption since those have different implementations.
|
@memodi thanks! Couple of questions:
|
We'll need to branches based on OCP versions here in web-console repo.
No, once this is merged, I'll create branches and make adjustments to tests/libs for older version in their PRs.
I expect some flakes with UI tests, but that shouldn't block the migration. I'll continue to fix the tests during this PR and even after.
I've tried to minimize the code which we're not using from openshift-tests-private, but it's possible some extra stuff may have trickled in since functions could call other functions in the same file. |
There was a problem hiding this comment.
this file needs to be removed from PR.
|
One other question I forgot to ask, will this script replace the qe-e2e-console-tests check on PRs once its merged? |
Not immediately, but eventually all the CI will need updating and new pipelines will need to be created. |
| /web/src/**/*.js | ||
| /web/src/**/*.spec.js |
There was a problem hiding this comment.
why excluding js sources ? Although we probably don't have any, no js file should be generated in the web/src , or is it not correct?
There was a problem hiding this comment.
I have lot of js files locally from past build commands I had ran, don't you get those js artifacts when building locally?
There was a problem hiding this comment.
weird, no, I never have that ... Maybe old stuff ?
web/tsconfig.json
Outdated
| "esModuleInterop": true, | ||
| "resolveJsonModule": true, | ||
| "baseUrl": ".", | ||
| "types": [ |
There was a problem hiding this comment.
This would restrict a lot the dependency types available, is that something really needed?
Also the exclusion list below reduces the type checking coverage.
If a different tsconfig is needed for e2e tests we can perhaps create another one, rather than changing the main .one
There was a problem hiding this comment.
done, there's tsconfig.json for e2e tests I removed these from here.
9404ea3 to
de1ef81
Compare
|
@memodi: 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. |
Description
NETOBSERV-2388 Migrating QE's frontend e2e tests to here
https://gist.github.com/memodi/afc650d3d36e76e0de51c578cf835d02
Dependencies
n/a
Checklist