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
CONSOLE-2530: Migrate labels CRUD tests #7834
Conversation
frontend/packages/integration-tests-cypress/tests/crud/labels.spec.ts
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,6 @@ | |||
export const labels = { | |||
inputLabel: (label: string) => cy.byTestID('tags-input').type(label), | |||
confirmDetailsPageLabelExists: (label: string) => cy.get('.co-m-label__key').contains(label), |
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 should add a test ID for this
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.
Use the new test ID here?
28d090d
to
af09a32
Compare
af09a32
to
27cd93a
Compare
Addressed feedback and rebased. |
const plural = 'configmaps'; | ||
const kind = 'ConfigMap'; | ||
const labelValue = 'appblah'; | ||
const yaml = { |
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.
const yaml = { | |
const yaml: ConfigMapKind = { |
@@ -0,0 +1,6 @@ | |||
export const labels = { | |||
inputLabel: (label: string) => cy.byTestID('tags-input').type(label), | |||
confirmDetailsPageLabelExists: (label: string) => cy.get('.co-m-label__key').contains(label), |
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.
Use the new test ID here?
27cd93a
to
8c5a8f9
Compare
Changes are all set. /test e2e-gcp-console /test analyze |
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.
/lgtm
/hold |
/hold cancel |
/retest Please review the full test history for this PR and help us cut down flakes. |
10 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/hold |
Migrated labels CRUD tests from Protractor to Cypress. Fixes https://issues.redhat.com/projects/CONSOLE/issues/CONSOLE-2530
8c5a8f9
to
5b4f8fd
Compare
Test failure seemed to be caused by usage of cy.get instead of cy.byTestID. Cypress won't run for me locally right now, so I'll double check when I can get it going again. |
Seems good now! |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rebeccaalpert, spadgett 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 |
/retest |
2 similar comments
/retest |
/retest |
Removing the hold labels since this is now passing tests and doesn't require outside approvals. |
Migrated labels CRUD tests from Protractor to Cypress.
Fixes https://issues.redhat.com/projects/CONSOLE/issues/CONSOLE-2530.