Bug 1939515

Summary: Cypress: project-creation.feature test flakes, Create Namespace post check finding wrong header
Product: OpenShift Container Platform Reporter: David Taylor <dtaylor>
Component: Dev ConsoleAssignee: BalajiMakam <bmakam>
Status: CLOSED DUPLICATE QA Contact: Gajanan More <gamore>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.7CC: aos-bugs, bmakam, dsantra, nmukherj
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-29 05:36:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Taylor 2021-03-16 14:47:58 UTC
Daily flake:  https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/origin-ci-test/pr-logs/pull/openshift_console/8370/pull-ci-openshift-console-master-e2e-gcp-console/1371377608347881472/artifacts/e2e-gcp-console/test/artifacts/gui_test_screenshots/cypress/screenshots/project-creation.feature/OpenShift%20Namespaces%20--%20Create%20the%20namespace%20(failed).png

It appears that after the Namespace is created, test is looking for the h2 of the EmptyState to be 'No resources found', however cy.get is checking from the root of the DOM and I believe it is finding the h2 of the Perspectice Switcher, which shows 'Developer'.

The get selector should probably be targeted to the contents of the list page or empty state component.

Comment 1 Debsmita Santra 2021-03-22 14:14:35 UTC
@bmakam could you please look into this ?

Comment 2 BalajiMakam 2021-03-29 07:34:09 UTC
Looks like 4.7 release scripts doesn't have updates w.r.to 4.8 release. Cherry pick is required to update this script

topology page displays with message "No resources found" is not present in https://github.com/openshift/console/blob/master/frontend/packages/dev-console/integration-tests/features/project-creation.feature

Comment 3 BalajiMakam 2021-04-29 05:36:41 UTC
Already worked on https://bugzilla.redhat.com/show_bug.cgi?id=1945594 [Same issue]. Waiting for merge

*** This bug has been marked as a duplicate of bug 1945594 ***