diff --git a/.idea/fileTemplates/WebDriverTestAppPage.java b/.idea/fileTemplates/WebDriverTestAppPage.java new file mode 100644 index 0000000000..e9b7f2d14d --- /dev/null +++ b/.idea/fileTemplates/WebDriverTestAppPage.java @@ -0,0 +1,37 @@ +#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end + +import org.labkey.test.WebDriverWrapper; +import org.labkey.test.WebTestHelper; +import org.labkey.test.pages.AppBasePage; +import org.labkey.test.tests.BaseAppTest; +import org.openqa.selenium.WebDriver; + +// TODO: Page classes should contain all functionality for a single app page +public class ${NAME} extends AppBasePage<${NAME}.ElementCache> +{ + public ${NAME}(WebDriver driver) + { + super(driver); + } + + public static ${NAME} beginAt(BaseAppTest test, String containerPath) + { + return beginAt(test, containerPath, test.getAppControllerName()); + } + + public static ${NAME} beginAt(WebDriverWrapper driver, String containerPath, String controllerName) + { + driver.beginAt(WebTestHelper.buildAppURL(containerPath, controllerName, "path", "parts")); + return new ${NAME}(driver.getDriver()); + } + + @Override + protected ElementCache newElementCache() + { + return new ElementCache(); + } + + protected class ElementCache extends AppBasePage.ElementCache + { + } +} diff --git a/.idea/fileTemplates/WebDriverTestClass.java b/.idea/fileTemplates/WebDriverTestClass.java index a117ecb0df..c90a146243 100644 --- a/.idea/fileTemplates/WebDriverTestClass.java +++ b/.idea/fileTemplates/WebDriverTestClass.java @@ -1,18 +1,3 @@ -/* - * Copyright (c) 2018-2026 LabKey Corporation - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end import org.junit.BeforeClass; diff --git a/.idea/fileTemplates/WebDriverTestComponent.java b/.idea/fileTemplates/WebDriverTestComponent.java index 0a33a905d5..29ed04c84b 100644 --- a/.idea/fileTemplates/WebDriverTestComponent.java +++ b/.idea/fileTemplates/WebDriverTestComponent.java @@ -1,18 +1,3 @@ -/* - * Copyright (c) 2018-2026 LabKey Corporation - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end import org.labkey.test.Locator; diff --git a/.idea/fileTemplates/WebDriverTestPage.java b/.idea/fileTemplates/WebDriverTestPage.java index 78439341a8..95434af013 100644 --- a/.idea/fileTemplates/WebDriverTestPage.java +++ b/.idea/fileTemplates/WebDriverTestPage.java @@ -1,18 +1,3 @@ -/* - * Copyright (c) 2018-2026 LabKey Corporation - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end import org.labkey.test.Locator;