SPEC HAS NO EXPECTATIONS warnings in jasmine tests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Undecided
|
Tatiana Ovchinnikova |
Bug Description
There are 23 tests which Jasmine marks with the warning "SPEC HAS NO EXPECTATIONS":
permissions service
checkAll
with extended permissions
SPEC HAS NO EXPECTATIONS with promise array, adds checks for permissions
SPEC HAS NO EXPECTATIONS with promise, adds checks for permissions
SPEC HAS NO EXPECTATIONS with no promise, adds checks for permissions
SPEC HAS NO EXPECTATIONS without extended permissions it returns no promises
...
textDownloadService
SPEC HAS NO EXPECTATIONS should return promise and it resolve filename after starting download file
...
horizon.
simpleDate
SPEC HAS NO EXPECTATIONS returns blank if nothing
SPEC HAS NO EXPECTATIONS returns the expected time
mediumDate
SPEC HAS NO EXPECTATIONS returns blank if nothing
SPEC HAS NO EXPECTATIONS returns the expected time
...
horizon.
setBreadcrumb
SPEC HAS NO EXPECTATIONS sets breadcrumb items from specified array
...
Launch Instance Model
launchInsta
Post Initialize Model
SPEC HAS NO EXPECTATIONS getPorts at launch should not return child port
...
horizon.
perform method and pass only
SPEC HAS NO EXPECTATIONS should open the delete modal
SPEC HAS NO EXPECTATIONS should pass and fail in a function that delete domain by item action
SPEC HAS NO EXPECTATIONS should pass and fail in a function that delete domain by batch action
...
horizon.
perform method and pass only
SPEC HAS NO EXPECTATIONS should open the delete modal
SPEC HAS NO EXPECTATIONS should pass and fail in a function that delete group by item action
SPEC HAS NO EXPECTATIONS should pass and fail in a function that delete group by batch action
...
horizon.
SPEC HAS NO EXPECTATIONS should load groups
...
horizon.
perform method and pass only
SPEC HAS NO EXPECTATIONS should open the delete modal
SPEC HAS NO EXPECTATIONS should pass and fail in a function that delete user by item action
SPEC HAS NO EXPECTATIONS should pass and fail in a function that delete user by batch action
...
horizon.
get timezone offset
SPEC HAS NO EXPECTATIONS returns +0000(UTC offset) if nothing
SPEC HAS NO EXPECTATIONS returns the timezone offset
That means in general that these tests are doing nothing since they are for the async callback functions and it's crucial to expect outputs after resolving promises.
Changed in horizon: | |
assignee: | nobody → Tatiana Ovchinnikova (tmazur) |
Fix proposed to branch: master /review. opendev. org/749802
Review: https:/