Skip to content

Jest failure in ee/spec/frontend/security_dashboard/components/filter_spec.js

Job #262648337 failed for 22301a81:

FAIL ee/spec/frontend/security_dashboard/components/filter_spec.js
  ● Filter component › severity › when the dropdown is open › should keep the menu open after clicking on an item

    expect(received).toBe(expected) // Object.is equality

    Expected: true
    Received: false

      71 | 
      72 |       it('should keep the menu open after clicking on an item', done => {
    > 73 |         expect(isDropdownOpen()).toBe(true);
         |                                  ^
      74 |         vm.$el.querySelector('.dropdown-item').click();
      75 |         vm.$nextTick(() => {
      76 |           expect(isDropdownOpen()).toBe(true);

      at Object.toBe (ee/spec/frontend/security_dashboard/components/filter_spec.js:73:34)

  ● Filter component › severity › when the dropdown is open › should close the menu when the close button is clicked

    expect(received).toBe(expected) // Object.is equality

    Expected: true
    Received: false

      80 | 
      81 |       it('should close the menu when the close button is clicked', done => {
    > 82 |         expect(isDropdownOpen()).toBe(true);
         |                                  ^
      83 |         vm.$refs.close.click();
      84 |         vm.$nextTick(() => {
      85 |           expect(isDropdownOpen()).toBe(false);

      at Object.toBe (ee/spec/frontend/security_dashboard/components/filter_spec.js:82:34)