Skip to content

Commit

Permalink
Fix expect shows twice
Browse files Browse the repository at this point in the history
  • Loading branch information
n313893254 committed Jun 14, 2022
1 parent 8585d05 commit 4a1552d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cypress/cypress.env.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"image":
{
"name": "openSUSE-Leap-15.3-3-DVD-x86_64-Build38.1-Media.iso",
"url": "https://mirrors.bfsu.edu.cn/opensuse/distribution/leap/15.3/iso/openSUSE-Leap-15.3-3-DVD-x86_64-Build38.1-Media.iso"
"url": "https://download.opensuse.org/distribution/leap/15.3/iso/openSUSE-Leap-15.3-3-DVD-x86_64-Build38.1-Media.iso"
}
}
2 changes: 1 addition & 1 deletion cypress/cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"image": {
"name": "openSUSE-Leap-15.3-3-DVD-x86_64-Build38.1-Media.iso",
"url": "https://mirrors.bfsu.edu.cn/opensuse/distribution/leap/15.3/iso/openSUSE-Leap-15.3-3-DVD-x86_64-Build38.1-Media.iso"
"url": "https://download.opensuse.org/distribution/leap/15.3/iso/openSUSE-Leap-15.3-3-DVD-x86_64-Build38.1-Media.iso"
},
"nfsEndPoint": "nfs://ip",
"vlans": ["namespace/vlanID1", "namespace/vlanID2"]
Expand Down
4 changes: 1 addition & 3 deletions cypress/testcases/image/images.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ describe('Auto setup image from cypress environment', () => {
headers: {
accept: 'application/json'
}
}).as('imageList')

cy.get('@imageList').should((res: any) => {
}).then(res => {
expect(res?.status, 'Check Image list').to.equal(200);
const images = res?.body?.data || []

Expand Down

0 comments on commit 4a1552d

Please sign in to comment.