Bug 1873147 - In ci/prow/e2e-gcp-console tests, refactor cypress crud tests to enable 'retries'
Summary: In ci/prow/e2e-gcp-console tests, refactor cypress crud tests to enable 'retr...
Keywords:
Status: VERIFIED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.6
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 4.6.0
Assignee: David Taylor
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-27 13:43 UTC by David Taylor
Modified: 2020-08-31 10:33 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Github openshift console pull 6455 None open Bug 1873147: cypress crud tests - moved create & delete out of before/after[all] hooks and into specific tests 2020-08-27 13:44:26 UTC

Description David Taylor 2020-08-27 13:43:11 UTC
This will allow us to take advantage of Cypress's new native retry ability which does not work in before/after hooks as shown in this previous message: "Although you have test retries enabled, we do not retry tests when before all or after all hooks fail"

It also helps readability of logs and console output:

  Pod
      ✓ creates the resource instance (9304ms)
      ✓ displays detail view for newly created resource instance (806ms)
      ✓ displays a list view for the resource (3103ms)
      ✓ search view displays created resource instance (3589ms)
      ✓ edits the resource instance (8998ms)
      ✓ deletes the resource instance (13528ms)

Comment 3 Yadan Pei 2020-08-31 10:33:26 UTC
Now creates && delete resources in cypress crud tests are moved out of before/all hook,  also the readability of logs and console output are updated:

    Pod
      ✓ creates the resource instance (18756ms)
      ✓ displays detail view for newly created resource instance (845ms)
      ✓ displays a list view for the resource (1849ms)
      ✓ search view displays created resource instance (2389ms)
      ✓ edits the resource instance (4576ms)
      ✓ deletes the resource instance (2827ms)

for example: 

https://storage.googleapis.com/origin-ci-test/pr-logs/pull/openshift_console/6477/pull-ci-openshift-console-master-e2e-gcp-console/1300026972964917248/artifacts/e2e-gcp-console/container-logs/test.log 

Moving to VERIFIED


Note You need to log in before you can comment on or make changes to this bug.