mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-19 10:51:34 +08:00
fix jests since each option is in a div instead of a span
This commit is contained in:
@@ -25,7 +25,7 @@ const defaultOptions = [
|
||||
|
||||
function testDefaultOptions(wrapper) {
|
||||
const target = wrapper.findComponent(MountTarget);
|
||||
const options = target.findAll("li > span > span");
|
||||
const options = target.findAll("li > span > div");
|
||||
expect(options.length).toBe(4);
|
||||
for (let i = 0; i < options.length; i++) {
|
||||
expect(options.at(i).text()).toBe(`label_${i + 1}`);
|
||||
@@ -52,7 +52,7 @@ describe("FormSelect", () => {
|
||||
optional: true,
|
||||
});
|
||||
const target = wrapper.findComponent(MountTarget);
|
||||
const options = target.findAll("li > span > span");
|
||||
const options = target.findAll("li > span > div");
|
||||
expect(options.length).toBe(5);
|
||||
expect(options.at(0).text()).toBe("Nothing selected");
|
||||
const selectedDefault = wrapper.find(".multiselect__option--selected");
|
||||
|
||||
Reference in New Issue
Block a user