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
This commit is contained in:
Jingwei.Zhang 2021-10-12 11:51:48 +08:00
parent ddefcd7e6c
commit e42756e47e
2 changed files with 2 additions and 2 deletions

View File

@ -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();
});

View File

@ -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);