From e42756e47e42f861117f7a55defd8a37d891dd77 Mon Sep 17 00:00:00 2001 From: "Jingwei.Zhang" Date: Tue, 12 Oct 2021 11:51:48 +0800 Subject: [PATCH] test: Fix instance attach interface && delete instance 1. Fix instance attach select network by name 2. Wait longer time for delete instance before delete volume type Change-Id: I5fd33305204480cbe51a6741f57edf3abe58bb5e --- test/e2e/integration/pages/compute/instance.spec.js | 2 +- test/e2e/integration/pages/storage/volume.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/integration/pages/compute/instance.spec.js b/test/e2e/integration/pages/compute/instance.spec.js index 1d747071..3bec59dd 100644 --- a/test/e2e/integration/pages/compute/instance.spec.js +++ b/test/e2e/integration/pages/compute/instance.spec.js @@ -179,7 +179,7 @@ describe('The Instance Page', () => { cy.tableSearchText(name) .clickActionInMoreSub('Attach Interface', 'Related Resources') .wait(5000) - .formTableSelect('network') + .formTableSelectBySearch('network', networkName, 5000) .clickModalActionSubmitButton(); }); diff --git a/test/e2e/integration/pages/storage/volume.spec.js b/test/e2e/integration/pages/storage/volume.spec.js index d181cdf6..fea97f51 100644 --- a/test/e2e/integration/pages/storage/volume.spec.js +++ b/test/e2e/integration/pages/storage/volume.spec.js @@ -187,7 +187,7 @@ describe('The Volume Page', () => { it('successfully delete related resources', () => { cy.deleteAll('image', imageName); cy.deleteAll('volume', cloneVolumeName); - cy.forceDeleteInstance(instanceName).wait(60000); + cy.forceDeleteInstance(instanceName).wait(300000); cy.deleteAll('network', networkName); cy.loginAdmin().wait(10000); cy.deleteAll('volumeType', volumeTypeName);