mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #9538 from OlegZharkov/fix-tools-view-id-test
Fix citation ids and vue unit test in ToolsView
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
<div v-else-if="citations.length">
|
||||
<b-btn v-b-toggle="id" variant="primary">Citations</b-btn>
|
||||
<b-collapse
|
||||
:id="id"
|
||||
:id="id.replace(/ /g, '_')"
|
||||
class="mt-2"
|
||||
@show="$emit('show')"
|
||||
@shown="$emit('shown')"
|
||||
|
||||
@@ -68,7 +68,7 @@ describe("ToolsView/ToolsView.vue", () => {
|
||||
.findAll('[type="button"]')
|
||||
.filter(button => button.text() === "Citations")
|
||||
.at(0);
|
||||
const citation = wrapper.find("#" + infoButton.attributes("aria-controls"));
|
||||
const citation = wrapper.find("#" + infoButton.attributes("aria-controls").replace(/ /g, "_"));
|
||||
|
||||
assert(citation.isVisible() === false, "citation is visible before being triggered!");
|
||||
assert(infoButton.attributes("aria-expanded") === "false", "citation is expanded before being triggered!");
|
||||
|
||||
Reference in New Issue
Block a user