|
59 | 59 | expect(page).to have_selector(".wb-popup", count: 1) |
60 | 60 | end |
61 | 61 |
|
62 | | - it "allows switching between dim and hide filter modes" do |
63 | | - expect(page).to have_selector("#filter-mode-toggle[disabled]") |
| 62 | + it "allows switching between hide and dim filter modes" do |
| 63 | + expect(page).to have_no_selector("#filter-mode-toggle[disabled]") |
64 | 64 |
|
65 | 65 | fill_in "tree-filter", with: match_asset.isilon_name |
66 | 66 |
|
67 | | - expect(page).to have_selector("#tree.wb-ext-filter-dim") |
68 | | - expect(page).to have_no_selector("#filter-mode-toggle[disabled]", wait: 10) |
69 | | - |
70 | | - find("#filter-mode-toggle").click |
71 | 67 | expect(page).to have_selector("#tree.wb-ext-filter-hide") |
72 | | - expect(page).to have_selector("#filter-mode-toggle.active") |
73 | 68 |
|
74 | 69 | find("#filter-mode-toggle").click |
75 | | - expect(page).to have_no_selector("#tree.wb-ext-filter-hide") |
76 | 70 | expect(page).to have_selector("#tree.wb-ext-filter-dim") |
| 71 | + expect(page).to have_no_selector("#filter-mode-toggle.active") |
| 72 | + |
| 73 | + find("#filter-mode-toggle").click |
| 74 | + expect(page).to have_selector("#tree.wb-ext-filter-hide") |
| 75 | + expect(page).to have_no_selector("#tree.wb-ext-filter-dim") |
77 | 76 | end |
78 | 77 |
|
79 | 78 | it "clears column filter indicators when clearing all filters at once" do |
|
94 | 93 | click_button "Clear All Filters" |
95 | 94 |
|
96 | 95 | expect(page).to have_no_selector(".wb-header [data-command='filter'].wb-helper-invalid", wait: 10) |
97 | | - expect(page).to have_selector("#filter-mode-toggle[disabled]", wait: 10) |
| 96 | + expect(page).to have_no_selector("#filter-mode-toggle[disabled]", wait: 10) |
98 | 97 | expect(page).to have_no_selector("#tree.wb-ext-filter-dim", wait: 10) |
99 | 98 | end |
100 | 99 | end |
0 commit comments