diff --git a/e2e/util/selenium/layout.js b/e2e/util/selenium/layout.js index e437604ceab44cd68904925cb9461db890560c8d..99b7e97c667b9847a96b8475609778199e31f6d5 100644 --- a/e2e/util/selenium/layout.js +++ b/e2e/util/selenium/layout.js @@ -337,6 +337,10 @@ class WdLayoutPage extends WdBase{ throw new Error(`changeParc NYI`) } + async changeParcVersion(parcVerion) { + throw new Error(`changeParcVersion NYI`) + } + async selectAtlasTemplateParcellation(atlasName, templateName, parcellationName, parcVersion) { if (!atlasName) throw new Error(`atlasName needs to be provided`) try { @@ -365,6 +369,12 @@ class WdLayoutPage extends WdBase{ await this.changeParc(parcellationName) } + if (parcVersion) { + await this.wait(1000) + await this.waitUntilAllChunksLoaded() + await this.changeParcVersion(parcVersion) + } + try { await this._setAtlasSelectorExpanded(false) } catch (e) {