diff --git a/projects/js-toolkit/qa/.gradle/6.6.1/fileChanges/last-build.bin b/projects/js-toolkit/qa/.gradle/6.6.1/fileChanges/last-build.bin new file mode 100644 index 0000000000..f76dd238ad Binary files /dev/null and b/projects/js-toolkit/qa/.gradle/6.6.1/fileChanges/last-build.bin differ diff --git a/projects/js-toolkit/qa/.gradle/6.6.1/fileHashes/fileHashes.lock b/projects/js-toolkit/qa/.gradle/6.6.1/fileHashes/fileHashes.lock new file mode 100644 index 0000000000..0f6395611b Binary files /dev/null and b/projects/js-toolkit/qa/.gradle/6.6.1/fileHashes/fileHashes.lock differ diff --git a/projects/js-toolkit/qa/.gradle/6.6.1/gc.properties b/projects/js-toolkit/qa/.gradle/6.6.1/gc.properties new file mode 100644 index 0000000000..e69de29bb2 diff --git a/projects/js-toolkit/qa/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock b/projects/js-toolkit/qa/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock new file mode 100644 index 0000000000..33719ea8d0 Binary files /dev/null and b/projects/js-toolkit/qa/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock differ diff --git a/projects/js-toolkit/qa/.gradle/7.2/dependencies-accessors/gc.properties b/projects/js-toolkit/qa/.gradle/7.2/dependencies-accessors/gc.properties new file mode 100644 index 0000000000..e69de29bb2 diff --git a/projects/js-toolkit/qa/.gradle/7.2/executionHistory/executionHistory.bin b/projects/js-toolkit/qa/.gradle/7.2/executionHistory/executionHistory.bin new file mode 100644 index 0000000000..dd44a4ec2b Binary files /dev/null and b/projects/js-toolkit/qa/.gradle/7.2/executionHistory/executionHistory.bin differ diff --git a/projects/js-toolkit/qa/.gradle/7.2/executionHistory/executionHistory.lock b/projects/js-toolkit/qa/.gradle/7.2/executionHistory/executionHistory.lock new file mode 100644 index 0000000000..c8be47f55d Binary files /dev/null and b/projects/js-toolkit/qa/.gradle/7.2/executionHistory/executionHistory.lock differ diff --git a/projects/js-toolkit/qa/.gradle/7.2/fileChanges/last-build.bin b/projects/js-toolkit/qa/.gradle/7.2/fileChanges/last-build.bin new file mode 100644 index 0000000000..f76dd238ad Binary files /dev/null and b/projects/js-toolkit/qa/.gradle/7.2/fileChanges/last-build.bin differ diff --git a/projects/js-toolkit/qa/.gradle/7.2/fileHashes/fileHashes.bin b/projects/js-toolkit/qa/.gradle/7.2/fileHashes/fileHashes.bin new file mode 100644 index 0000000000..af76a3c174 Binary files /dev/null and b/projects/js-toolkit/qa/.gradle/7.2/fileHashes/fileHashes.bin differ diff --git a/projects/js-toolkit/qa/.gradle/7.2/fileHashes/fileHashes.lock b/projects/js-toolkit/qa/.gradle/7.2/fileHashes/fileHashes.lock new file mode 100644 index 0000000000..b007829c0d Binary files /dev/null and b/projects/js-toolkit/qa/.gradle/7.2/fileHashes/fileHashes.lock differ diff --git a/projects/js-toolkit/qa/.gradle/7.2/gc.properties b/projects/js-toolkit/qa/.gradle/7.2/gc.properties new file mode 100644 index 0000000000..e69de29bb2 diff --git a/projects/js-toolkit/qa/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/projects/js-toolkit/qa/.gradle/buildOutputCleanup/buildOutputCleanup.lock new file mode 100644 index 0000000000..f6392e523e Binary files /dev/null and b/projects/js-toolkit/qa/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/projects/js-toolkit/qa/.gradle/buildOutputCleanup/cache.properties b/projects/js-toolkit/qa/.gradle/buildOutputCleanup/cache.properties new file mode 100644 index 0000000000..e4ed7f42c5 --- /dev/null +++ b/projects/js-toolkit/qa/.gradle/buildOutputCleanup/cache.properties @@ -0,0 +1,2 @@ +#Thu Dec 29 09:35:58 PST 2022 +gradle.version=7.2 diff --git a/projects/js-toolkit/qa/.gradle/buildOutputCleanup/outputFiles.bin b/projects/js-toolkit/qa/.gradle/buildOutputCleanup/outputFiles.bin new file mode 100644 index 0000000000..f4b4f5c44c Binary files /dev/null and b/projects/js-toolkit/qa/.gradle/buildOutputCleanup/outputFiles.bin differ diff --git a/projects/js-toolkit/qa/.gradle/checksums/checksums.lock b/projects/js-toolkit/qa/.gradle/checksums/checksums.lock new file mode 100644 index 0000000000..ad042c30ee Binary files /dev/null and b/projects/js-toolkit/qa/.gradle/checksums/checksums.lock differ diff --git a/projects/js-toolkit/qa/.gradle/configuration-cache/gc.properties b/projects/js-toolkit/qa/.gradle/configuration-cache/gc.properties new file mode 100644 index 0000000000..e69de29bb2 diff --git a/projects/js-toolkit/qa/.gradle/vcs-1/gc.properties b/projects/js-toolkit/qa/.gradle/vcs-1/gc.properties new file mode 100644 index 0000000000..e69de29bb2 diff --git a/projects/js-toolkit/qa/build.gradle b/projects/js-toolkit/qa/build.gradle new file mode 100644 index 0000000000..94ff2755ad --- /dev/null +++ b/projects/js-toolkit/qa/build.gradle @@ -0,0 +1,7 @@ +task myTask(type:Exec) { + + workingDir '.' + + commandLine './setup.sh unzip-portal-snapshot-bundle' + +} \ No newline at end of file diff --git a/projects/js-toolkit/qa/gradle/wrapper/gradle-wrapper.jar b/projects/js-toolkit/qa/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000..7454180f2a Binary files /dev/null and b/projects/js-toolkit/qa/gradle/wrapper/gradle-wrapper.jar differ diff --git a/projects/js-toolkit/qa/gradle/wrapper/gradle-wrapper.properties b/projects/js-toolkit/qa/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000..2a91b6fa06 --- /dev/null +++ b/projects/js-toolkit/qa/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://github.com/liferay/liferay-binaries-cache-2020/raw/master/gradle-6.6.1.LIFERAY-PATCHED-1-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/projects/js-toolkit/qa/gradlew b/projects/js-toolkit/qa/gradlew new file mode 100755 index 0000000000..1b6c787337 --- /dev/null +++ b/projects/js-toolkit/qa/gradlew @@ -0,0 +1,234 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# 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 +# +# https://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. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit + +APP_NAME="Gradle" +APP_BASE_NAME=${0##*/} + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/projects/js-toolkit/qa/gradlew.bat b/projects/js-toolkit/qa/gradlew.bat new file mode 100644 index 0000000000..ac1b06f938 --- /dev/null +++ b/projects/js-toolkit/qa/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/projects/js-toolkit/qa/poshi/.gradle/6.6.1/executionHistory/executionHistory.lock b/projects/js-toolkit/qa/poshi/.gradle/6.6.1/executionHistory/executionHistory.lock new file mode 100644 index 0000000000..b7ef50a603 Binary files /dev/null and b/projects/js-toolkit/qa/poshi/.gradle/6.6.1/executionHistory/executionHistory.lock differ diff --git a/projects/js-toolkit/qa/poshi/.gradle/6.6.1/fileChanges/last-build.bin b/projects/js-toolkit/qa/poshi/.gradle/6.6.1/fileChanges/last-build.bin new file mode 100644 index 0000000000..f76dd238ad Binary files /dev/null and b/projects/js-toolkit/qa/poshi/.gradle/6.6.1/fileChanges/last-build.bin differ diff --git a/projects/js-toolkit/qa/poshi/.gradle/6.6.1/fileHashes/fileHashes.lock b/projects/js-toolkit/qa/poshi/.gradle/6.6.1/fileHashes/fileHashes.lock new file mode 100644 index 0000000000..e008a7c058 Binary files /dev/null and b/projects/js-toolkit/qa/poshi/.gradle/6.6.1/fileHashes/fileHashes.lock differ diff --git a/projects/js-toolkit/qa/poshi/.gradle/6.6.1/gc.properties b/projects/js-toolkit/qa/poshi/.gradle/6.6.1/gc.properties new file mode 100644 index 0000000000..e69de29bb2 diff --git a/projects/js-toolkit/qa/poshi/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/projects/js-toolkit/qa/poshi/.gradle/buildOutputCleanup/buildOutputCleanup.lock new file mode 100644 index 0000000000..1dd46802b1 Binary files /dev/null and b/projects/js-toolkit/qa/poshi/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/projects/js-toolkit/qa/poshi/.gradle/buildOutputCleanup/cache.properties b/projects/js-toolkit/qa/poshi/.gradle/buildOutputCleanup/cache.properties new file mode 100644 index 0000000000..22b4f3efee --- /dev/null +++ b/projects/js-toolkit/qa/poshi/.gradle/buildOutputCleanup/cache.properties @@ -0,0 +1,2 @@ +#Thu Dec 29 09:41:08 PST 2022 +gradle.version=6.6.1 diff --git a/projects/js-toolkit/qa/poshi/.gradle/checksums/checksums.lock b/projects/js-toolkit/qa/poshi/.gradle/checksums/checksums.lock new file mode 100644 index 0000000000..5e61e509f6 Binary files /dev/null and b/projects/js-toolkit/qa/poshi/.gradle/checksums/checksums.lock differ diff --git a/projects/js-toolkit/qa/poshi/.gradle/checksums/md5-checksums.bin b/projects/js-toolkit/qa/poshi/.gradle/checksums/md5-checksums.bin new file mode 100644 index 0000000000..9dc69aa3ff Binary files /dev/null and b/projects/js-toolkit/qa/poshi/.gradle/checksums/md5-checksums.bin differ diff --git a/projects/js-toolkit/qa/poshi/.gradle/checksums/sha1-checksums.bin b/projects/js-toolkit/qa/poshi/.gradle/checksums/sha1-checksums.bin new file mode 100644 index 0000000000..0fba1366ba Binary files /dev/null and b/projects/js-toolkit/qa/poshi/.gradle/checksums/sha1-checksums.bin differ diff --git a/projects/js-toolkit/qa/poshi/.gradle/configuration-cache/gc.properties b/projects/js-toolkit/qa/poshi/.gradle/configuration-cache/gc.properties new file mode 100644 index 0000000000..e69de29bb2 diff --git a/projects/js-toolkit/qa/poshi/.gradle/vcs-1/gc.properties b/projects/js-toolkit/qa/poshi/.gradle/vcs-1/gc.properties new file mode 100644 index 0000000000..e69de29bb2 diff --git a/projects/js-toolkit/qa/poshi/build.gradle b/projects/js-toolkit/qa/poshi/build.gradle new file mode 100644 index 0000000000..945381b7d4 --- /dev/null +++ b/projects/js-toolkit/qa/poshi/build.gradle @@ -0,0 +1,21 @@ +buildscript { + dependencies { + classpath group: "com.liferay", name: "com.liferay.gradle.plugins.defaults", version: "latest.release" + } + + repositories { + mavenLocal() + + maven { + url "https://repository-cdn.liferay.com/nexus/content/groups/public" + } + } +} + +apply plugin: "com.liferay.poshi.defaults" + +dependencies { + + poshiRunnerResources group: "com.liferay", name: "com.liferay.poshi.runner.resources", version: "1.0.14" + poshiRunnerResources group: "com.liferay.poshi.runner.resources", name: "portal-master", version: "20221108-c28dc7e" +} diff --git a/projects/js-toolkit/qa/poshi/poshi-ext.properties b/projects/js-toolkit/qa/poshi/poshi-ext.properties new file mode 100644 index 0000000000..e69de29bb2 diff --git a/projects/js-toolkit/qa/poshi/poshi.properties b/projects/js-toolkit/qa/poshi/poshi.properties new file mode 100644 index 0000000000..81112c59f8 --- /dev/null +++ b/projects/js-toolkit/qa/poshi/poshi.properties @@ -0,0 +1 @@ +portal.url=http://localhost:8080 diff --git a/projects/js-toolkit/qa/poshi/settings.gradle b/projects/js-toolkit/qa/poshi/settings.gradle new file mode 100644 index 0000000000..e69de29bb2 diff --git a/projects/js-toolkit/qa/poshi/testFunctional/macros/SitePages.macro b/projects/js-toolkit/qa/poshi/testFunctional/macros/SitePages.macro new file mode 100644 index 0000000000..05fb8b9e5a --- /dev/null +++ b/projects/js-toolkit/qa/poshi/testFunctional/macros/SitePages.macro @@ -0,0 +1,288 @@ +definition { + macro _addPage { + SitePages._selectPageType( + pageTemplateName = "${pageTemplateName}", + sitePageType = "${sitePageType}" + ); + + if (IsElementPresent(locator1 = "IFrame#DIALOG")) { + SelectFrame(locator1 = "IFrame#DIALOG"); + } + + PortletEntry.inputName(name = "${pageName}"); + + Button.click(button = "Save"); + + SelectFrame.selectFrameTop(); + + if ("${sitePageType}" == "Embedded") { + Type( + locator1 = "SitePagesEditPage#PAGE_TYPE_EMBEDDED_URL_FIELD", + value1 = "${pageTypeURL}" + ); + } + + if (isSet(inheritChanges)) { + Page.togglePageTemplateInheritChanges(toggleValue = "${inheritChanges}"); + } + + Button.click(button = "Save"); + + WaitForSPARefresh(); + } + + macro _configurePage { + if ("${sitePageType}" == "Embedded") { + Page._addPageTypeEmbedded(pageTypeURL = "${pageTypeURL}"); + } + else if ("${sitePageType}" == "Panel") { + Page._addPageTypePanel(componentName = "${componentName}"); + } + else if ("${sitePageType}" == "Widget Page") { + var key_columnName = "${columnName}"; + + Click(locator1 = "SitePagesEditPage#LAYOUT_CARD"); + } + else if ("${sitePageType}" == "Content Page") { + Select( + locator1 = "SitePagesEditPage#LAYOUT_PAGE_TEMPLATE_SELECT", + value1 = "${layoutPageTemplateName}" + ); + } + else if ("${sitePageType}" == "Full Page Application") { + Page._addPageTypeFullPageApplication(portlet = "${portlet}"); + } + } + + macro _selectPageType { + if (contains("${sitePageType}", "{sitePageType}")) { + var sitePageType = "Widget Page"; + } + + var rowEntry = "${sitePageType}"; + + if (!(contains("${pageTemplateName}", "{pageTemplateName}"))) { + Navigator.gotoNavNested(navNested = "Global Templates"); + + var rowEntry = "${pageTemplateName}"; + + LexiconEntry.gotoEntry(rowEntry = "${rowEntry}"); + } + else { + Card.clickSitePagesCardLink(cardName = "${rowEntry}"); + } + } + + macro addChildPage { + MouseOver( + locator1 = "SitePages#LIST_GROUP_ITEM", + key_itemName = "${parentPageName}" + ); + + Click( + locator1 = "SitePages#LIST_GROUP_ITEM_PLUS_ICON", + key_pageName = "${parentPageName}" + ); + + SitePages._addPage( + pageName = "${childPageName}", + pageTemplateName = "${pageTemplateName}", + sitePageType = "${sitePageType}" + ); + } + + macro addPrivateChildPage { + SitePages.togglePrivacy(privacy = "Private Pages"); + + SitePages.addChildPage( + childPageName = "${childPageName}", + pageTemplateName = "${pageTemplateName}", + parentPageName = "${parentPageName}", + sitePageType = "${sitePageType}" + ); + } + + macro addPrivatePage { + if ("${siteTemplate}" == "true") { + LexiconEntry.gotoAdd(); + } + else { + LexiconEntry.gotoAddMenuItem(menuItem = "Private Page"); + } + + SitePages._addPage( + pageName = "${pageName}", + pageTemplateName = "${pageTemplateName}", + sitePageType = "${sitePageType}" + ); + } + + macro addPublicChildPage { + SitePages.togglePrivacy(privacy = "Public Pages"); + + SitePages.addChildPage( + childPageName = "${childPageName}", + pageTemplateName = "${pageTemplateName}", + parentPageName = "${parentPageName}", + sitePageType = "${sitePageType}" + ); + } + + macro addPublicPage { + var key_breadcrumbName="Pages"; + + if (IsElementPresent(locator1 = "Message#EMPTY_INFO_TAGLIB")) { + SitePages.gotoAddFirstPage( + pageType = "Public Page" + ); + } + else if (IsElementPresent(locator1 = "SitePages#LIST_GROUP_ITEM", key_itemName = "Public Pages")) { + Click(locator1 = "SitePages#LIST_GROUP_ITEM", key_itemName = "Public Pages"); + + LexiconEntry.gotoAdd(); + } + else { + AssertClick( + locator1 = "Breadcrumb#BREADCRUMB_ENTRY", + value1="Pages" + ); + + LexiconEntry.gotoAddMenuItem(menuItem = "Public Page"); + } + + SitePages._addPage( + inheritChanges = "${inheritChanges}", + pageName = "${pageName}", + pageTemplateName = "${pageTemplateName}", + pageTypeURL = "${pageTypeURL}", + sitePageType = "${sitePageType}" + ); + } + + macro configureChildPage { + SitePages.gotoPageMenuItem( + menuItem = "Configure", + pageName = "${pageName}", + parentPagesHierarchy = "${parentPagesHierarchy}" + ); + + SitePages._configurePage( + columnName = "${columnName}", + componentName = "${componentName}", + layoutPageTemplateName = "${layoutPageTemplateName}", + pageTypeURL = "${pageTypeURL}", + portlet = "${portlet}", + sitePageType = "${sitePageType}" + ); + + PortletEntry.save(); + } + + macro configurePage { + ProductMenu.gotoPortlet( + category = "Build", + panel = "Site Administration", + portlet = "Pages" + ); + + SitePages.togglePrivacy(privacy = "${privacy}"); + + SitePages.gotoPageMenuItem(menuItem = "Configure", pageName = "${pageName}"); + + SitePages._configurePage( + columnName = "${columnName}", + componentName = "${componentName}", + layoutPageTemplateName = "${layoutPageTemplateName}", + pageTypeURL = "${pageTypeURL}", + portlet = "${portlet}", + sitePageType = "${sitePageType}" + ); + + PortletEntry.save(); + } + + macro deletePage { + Click( + locator1 = "SitePages#LIST_GROUP_ITEM_ELLIPSIS_ICON", + key_pageName = "${pageName}" + ); + + MenuItem.clickNoError(menuItem = "Delete"); + + AssertConfirm( + value1 = "Are you sure you want to delete this? It will be deleted immediately." + ); + + if (isSet(failure)) { + if (IsElementPresent(locator1 = "Message#ERROR_2")) { + Alert.viewRequestFailedToComplete(); + + AssertTextEquals(locator1 = "Message#ERROR_2", value1 = "${failure}"); + } + else { + AssertTextEquals(locator1 = "Message#ERROR", value1 = "${failure}"); + } + } + else { + Alert.viewSuccessMessage(); + } + } + + macro expandPageTree { + if (!(isSet(depth))) { + var depth = "1"; + } + + var count = "0"; + + while (!("${count}" == "${depth}")) { + var index = MathUtil.sum("${count}", "1"); + + Click(locator1 = "SitePages#LIST_GROUP_ITEM_CARET_ICON", key_depth = "${index}"); + + var count = MathUtil.sum("${count}", "1"); + } + } + + @summary = "Go to the page creation form through the empty-result-message taglib" + macro gotoAddFirstPage { + var key_menuItem = "${pageType}"; + + Click( + locator1 = "Dropdown#EMPTY_MESSAGE_DROPDOWN" + ); + + Click( + locator1 = "MenuItem#DROPDOWN_MENU_ITEM" + ); + } + + @summary = "Go to the pageMenuItem of a Site Page. Parent pages hierarchy is required to navigate to child pages." + macro gotoPageMenuItem { + if (isSet(parentPagesHierarchy)) { + for (var parentPage : list "${parentPagesHierarchy}") { + Click(locator1 = "SitePages#LIST_GROUP_ITEM", key_itemName = "${parentPage}"); + } + } + + Click( + locator1 = "SitePages#LIST_GROUP_ITEM_ELLIPSIS_ICON", + key_pageName = "${pageName}" + ); + + MenuItem.click(menuItem = "${menuItem}"); + } + + macro openPagesAdmin { + Navigator.openWithAppendToBaseURL( + urlAppend = "group/${siteURLKey}/~/control_panel/manage?p_p_id=com_liferay_layout_admin_web_portlet_GroupPagesPortlet" + ); + } + + macro togglePrivacy { + Click( + locator1 = "SitePages#LIST_GROUP_ITEM_CARET_ICON_SPECIFIC", + key_pageName = "${privacy}" + ); + } +} \ No newline at end of file diff --git a/projects/js-toolkit/qa/poshi/testFunctional/paths/pathlib/uielements/Dropdown.path b/projects/js-toolkit/qa/poshi/testFunctional/paths/pathlib/uielements/Dropdown.path new file mode 100644 index 0000000000..e5254a1b57 --- /dev/null +++ b/projects/js-toolkit/qa/poshi/testFunctional/paths/pathlib/uielements/Dropdown.path @@ -0,0 +1,50 @@ + + +Dropdown + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Dropdown
EMPTY_MESSAGE_DROPDOWN//div[contains(@class,'empty-result-message')]//button[contains(@class,'dropdown-toggle')]
ENTRIES//a[contains(@class,'dropdown') and contains(.,'Entries')]
RESULT//div[@class='drop-chosen']//ul//li/a[text()='${key_option}']
SELECTED_VALUE//div[@class='option-selected']
TRIGGER//a[*[name()='svg'][contains(@class,'icon-caret-double')]]
FILTER_AND_ORDER//button[*[normalize-space(text())='Filter and Order']]
+ + \ No newline at end of file diff --git a/projects/js-toolkit/qa/poshi/testFunctional/paths/pathlib/uielements/Icon.path b/projects/js-toolkit/qa/poshi/testFunctional/paths/pathlib/uielements/Icon.path new file mode 100644 index 0000000000..0f62653a23 --- /dev/null +++ b/projects/js-toolkit/qa/poshi/testFunctional/paths/pathlib/uielements/Icon.path @@ -0,0 +1,255 @@ + + +Icon + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Icon
ADD_FAVORITE//*[@data-qa-id='row'][contains(.,'${key_rowEntry}')]//a[span/*[name()='svg'][contains(@class,'lexicon-icon-star')]]
ADVANCED_SEARCH//button[contains(@class,'toggle-advanced') and span[@class='caret']] | //a[contains(@id,'searchtoggleAdvanced')]
ANGLE_LEFT_BACK//div[contains(@class,'taglib-header')]//span[contains(.,'Back')]/a | //a[span/*[name()='svg'][contains(@class,'icon-angle-left')]]
ASTERISK//span[*[name()='svg'][contains(@class,'icon-asterisk')]] | //span[contains(@class,'icon-asterisk')] | //label[*[name()='svg'][contains(@class,'icon-asterisk')] and not(contains(@class,'required-warning'))]
ASTERISK_DATE_FIELD//label[contains(.,'${key_fieldFieldLabel}')]//span[contains(@class,'icon-asterisk')]
BACK//a[span//*[name()='svg'][contains(@class,'icon-angle-left')]] | //a[contains(@class,'icon-circle-arrow-left') and contains(@class,'previous-level')] | //span[contains(@class,'icon-angle-left')]
BASIC_SEARCH//button[contains(@type,'submit')]
CLOSE//button[contains(@class,'close')] | //a[contains(@id,'closePanelAdd') and contains(@class,'close')]
COG_PAGE//li/div[contains(.,'${key_pageName}')]/..//a[*[name()='svg'][contains(@class,'icon-cog')]]
CURRENT_DISPLAY_STYLE//ul[@class='navbar-nav'][2]//li[contains(@class,'dropdown nav-item')]//button[contains(@class,'dropdown-toggle')]
CURRENT_DISPLAY_STYLE_ACTIVE//ul[@class='navbar-nav'][2]//li[contains(@class,'dropdown nav-item')]//button[*[name()='svg'][contains(@class,'${key_displayStyle}')]]
DELETE//*[*[name()='svg'][contains(@class,'icon-trash')]] | //button[@data-title='Delete' or @title='Delete'] | //*[*[name()='svg'][contains(@class,'times-circle')]] | //a[@data-title='Deactivate' or @title='Deactivate']
DETAILS//div[contains(.,'Details')]/span/a/i[@class='icon-file-alt']
DISPLAY_STYLE_ACTIVE//*[@data-qa-id='${key_displayStyle}Button' and contains(@class,'active')]/span
DISPLAY_STYLE//*[@data-qa-id='${key_displayStyle}Button']/span
CUSTOM_EDIT//a[contains(@class,'taglib-icon')]/i[contains(@class,'icon-edit')]
EDIT_PENCIL//a[span/*[name()='svg'][contains(@class,'lexicon-icon-pencil')]]
EXPIRE//button[*[name()='svg'][contains(@class,'icon-time')]]
FLAG//div[@title='Flag']//span[//*[name()='svg'][contains(@class,'lexicon-icon')]]
FACEBOOK//i[contains(@class,'icon-facebook')]
GOOGLE_PLUS//i[contains(@class,'icon-google-plus')]
INFO//*[@data-qa-id='infoButton'] | //div[contains(@class,'management-bar-default')]//a[contains(@class,'infoPanelToggler')] | //button[*[name()='svg'][contains(@class,'lexicon-icon-info')]]
INFO_ACTIVE//*[contains(@class,'active') and contains(@class,'open') and @data-qa-id='infoButton']
MARK_AS_READ//nav[contains(@class,'management-bar')]//div[contains(@class,'container-fluid')]//button[contains(@aria-label,'envelope-open')]
MARK_AS_UNREAD//nav[contains(@class,'management-bar')]//div[contains(@class,'container-fluid')]//button[contains(@aria-label,'envelope-closed')]
MOVE//*[*[name()='svg'][contains(@class,'icon-change')]]
MOVE_TO_RECYCLE_BIN//a[contains(@data-qa-id,'recycle-binButton')]/span[contains(@class,'icon-monospaced')] | //*[*[name()='svg'][contains(@class,'icon-trash')]]
OPENID_CONNECT//a[@role='menuitem']/span[contains(.,'OpenId Connect')]
PRINT//span/a[contains(.,'Print')]
SHARE//button[*[name()='svg'][contains(@class,'lexicon-icon-share')]]
STAR_UNSUBSCRIBED//a[span/*[name()='svg'][contains(@class,'icon-star-o')]]
SUBSCRIBE//a[span/*[name()='svg'][contains(@class,'icon-star')]]
TIMES//*[*[name()='svg'][contains(@class,'icon-times')]]
TOOLTIP//span[*[name()='svg'][contains(@class,'icon-question')]]
BODY_VERTICAL_ELLIPSIS//div[contains(@class,'portlet') and contains(@class,'container')]//a[span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
BODY_VERTICAL_ELLIPSIS_2xpath=(//div[contains(@class,'portlet') and contains(@class,'container')]//a[span/*[name()='svg'][contains(@class,'icon-ellipsis')]])[2]
HEADER_VERTICAL_ELLIPSIS//*[@data-qa-id='header']//a[span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
HISTORY_VERTICAL_ELLIPSIS//a[span/*[contains(@class,'lexicon-icon-ellipsis-v')]]
PAGE_CUSTOMIZATION_ELLIPSIS//*[@data-qa-id='controlMenu']//div[contains(@class,'icon-menu')]
REMOVE_FAVORITE//*[@data-qa-id='row'][contains(.,'${key_rowEntry}')]//a[contains(@onclick,'removeAddMenuFavIte')]
ROW_VERTICAL_ELLIPSIS//*[@data-qa-id='row' and contains(.,'${key_rowEntry}')]//a[span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
ROW_VERTICAL_ELLIPSIS_2xPath=(//*[@data-qa-id='row' and contains(.,'${key_rowEntry}')]//a[span/*[name()='svg'][contains(@class,'icon-ellipsis')]])[2]
ROW_VERTICAL_ELLIPSIS_Nxpath=(//*[@data-qa-id='row']//a[span/*[name()='svg'][contains(@class,'icon-ellipsis')]])[${key_rowIndexNumber}]
STAGING//a[contains(@id,'stagingBarButton')]/i
STAGING_BAR_VERTICAL_ELLIPSIS//li[contains(@class,'control-menu-nav-item')]//a[span/*[contains(@class,'lexicon-icon-ellipsis-v')]]
TOOLBAR_ELLIPSIS//ul[@class='navbar-nav']/li[contains(@class,'nav-item')]//button[*[name()='svg'][contains(@class,'icon-ellipsis-v')]]
VERTICAL_ELLIPSIS//*[@data-qa-id='rowItemContent']/div[contains(@class,'dropdown')]/a
+ + \ No newline at end of file diff --git a/projects/js-toolkit/qa/poshi/testFunctional/paths/pathlib/uielements/Message.path b/projects/js-toolkit/qa/poshi/testFunctional/paths/pathlib/uielements/Message.path new file mode 100644 index 0000000000..899f168155 --- /dev/null +++ b/projects/js-toolkit/qa/poshi/testFunctional/paths/pathlib/uielements/Message.path @@ -0,0 +1,344 @@ + + +Message + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message
ALERT_DISMISSIBLE//div[contains(@class,'alert-dismissible')]
CATEGORY_ALERT//div[contains(@id,'categorization')]/div[contains(@class,'alert-danger')]
CHECKOUT_SUCCESS//div[contains(@class,'sidenav-content')]/div[contains(@class,'alert-success')]
CUSTOMIZED_PAGE_INFO//div[contains(@class,'layout')]/span[contains(@class,'message-info')]
DRAFT_AUTO_SAVE//div/small[contains(@id,'saveStatus') and contains(.,'Draft Saved at')]
EMPTY_INFO//div[contains(@class,'sheet')]/div[contains(@class,'sheet-text')]
EMPTY_INFO_2//div[contains(@class,'panel-default')][2]//div[contains(@class,'empty-result-message')]
EMPTY_INFO_TAGLIB//div[contains(@class,'taglib-empty-result-message')]
ERROR//div[contains(@class,'alert') and (contains(@class,'alert-error') or contains(@class,'alert-danger'))]
ERROR_1xpath=(//div[contains(@class,'alert') and (contains(@class,'alert-error') or contains(@class,'alert-danger'))])[1]
ERROR_1_COLUMN_1xpath=(//div[contains(@id,'column-1')]/div[contains(@class,'alert') and (contains(@class,'alert-error') or contains(@class,'alert-danger'))])[1]
ERROR_1_COLUMN_2xpath=(//div[contains(@id,'column-2')]/div[contains(@class,'alert') and (contains(@class,'alert-error') or contains(@class,'alert-danger'))])[1]
ERROR_2xpath=(//div[contains(@class,'alert') and (contains(@class,'alert-error') or contains(@class,'alert-danger'))])[2]
ERROR_3xpath=(//div[contains(@class,'alert') and (contains(@class,'alert-warning')) and (not(contains(@id,'warningMessage')))])
ERROR_4xpath=(//div[contains(@class,'alert') and (contains(@class,'alert-danger')) and (not(contains(@id,'warningMessage')))])
ERROR_3_ALT//div[@class='alert alert-warning']
ERROR_DISMISSIBLE//div[contains(@class,'alert-danger')][contains(@class,'alert-dismissible')]
ERROR_3_LINKxpath=(//div[contains(@class,'alert') and (contains(@class,'alert-warning'))]/a)
ERROR_DELETE_USED_SITE_TEMPLATES//div[contains(@class,'alert-danger') and contains(.,'You cannot delete site templates that are used by a site')]
ERROR_EMPTY_FIELD//div[contains(@class,'alert') and (contains(@class,'alert-error') or contains(@class,'alert-danger'))]//div[contains(.,'At least one option should be set for field ${key_fieldLabel}.')]
ERROR_ENTER_VALID_CONTENT//div[contains(@class,'alert-danger') and contains(.,'Please enter valid content')]
ERROR_ENTER_A_VALID_EMAIL_ADDRESS//div[@role='alert' and contains(.,'Please enter a valid email address.')] | //span[contains(@id,'title')]//div[contains(.,'Please enter a valid email address.')]
ERROR_ENTER_A_VALID_TITLE//div[contains(@class,'alert-danger') and contains(.,'Please enter a valid title')]
ERROR_ENTER_A_VALID_URL//div[contains(@class,'alert-danger') and contains(.,'Please enter a valid URL')]
ERROR_ENTER_A_UNIQUE_FOLDER//div[contains(@class,'alert-danger') and contains(.,'Please enter a unique folder name')]
ERROR_ENTER_A_UNIQUE_TITLE//div[contains(@class,'alert-danger') and contains(.,'The URL title is already in use. Please enter a unique URL title')]
ERROR_FIELD_REQUIRED//div[@role='alert' and contains(.,'This field is required')] | //span[contains(@id,'title')]//div[contains(.,'This field is required.')]
ERROR_FORM_FIELD_REQUIRED//div[contains(@class,'has-error')]//div[contains(@class,'help-block')] | //div[contains(@class,'has-error')]//div[contains(@class,'form-feedback-indicator')]
ERROR_FORM_VALIDATION//div[contains(@class,'form-validator-stack')]
ERROR_PUBLISH_UNSUCCESSFUL_EXTENSION//div[contains(@class,'alert-danger') and contains(.,'The source file does not have the same extension as the original file')]
ERROR_SPECIFIC_FORM_FIELD_REQUIRED//div[contains(@data-fieldname,'${key_fieldName}')]/../../div[contains(@class,'has-error')]//div[contains(@class,'help-block')] | //div[contains(@data-fieldname,'${key_fieldName}')]/../../div[contains(@class,'has-error')]//div[contains(@class,'form-feedback-indicator')]
ERROR_MODAL_CONTENT//div[contains(@class,'modal-content')]//form[contains(@class,'form-feedback')]
ERROR_MOVE_DUPLICATE_CONTENT//div[contains(@class,'alert-danger') and contains(.,'The folder you selected already has an entry with this name. Please select a different folder')]
GENERIC//div[contains(@class,'alert')]
INFO//div[contains(@class,'alert alert-info') and not(contains(@class,'hide'))]
INFO_SPECIFIC//div[contains(@class,'alert alert-info') and not(contains(@class,'hide'))][contains(.,'${key_infoMessage}')]
INFO_LINK//div[contains(@class,'alert') and contains(@class,'alert-info')]/a
INFO_1//div[contains(@class,'alert') and contains(@class,'alert-info')][1]
INFO_2xpath=(//div[contains(@class,'alert') and contains(@class,'alert-info')])[2]
INFO_4xpath=(//div[contains(@class,'alert-info')]/a)[1]
INFO_ARTICLE//div[contains(@class,'alert') and contains(@class,'alert-info')]/span/span
INFO_EXPLANATION_POST//div[contains(@id,'explanationPost')]/div[@class='alert alert-info']
LOGIN_URL_SUCCESS//tr[contains(.,'Login URL')]/td//span[contains(@class,'lfr-status-success')]
LOGOUT_URL_SUCCESS//tr[contains(.,'Logout URL')]/td//span[contains(@class,'lfr-status-success')]
MAX_FILESIZE_ALERT//div[(@class='maxFileSize') and (@role='alert')]
NO_COMMENTS//div[contains(.,'No comments yet')]
NO_ENTRIES//div[contains(@id,'Empty') and contains(.,'No entries were found')]
PORTAL_LOCALIZATION//div[contains(@class,'portal-message') and contains(@class,'alert-info')]
RECYCLE_BIN_RESTORE_SUCCESS//div[contains(@class,'alert-success') and em[contains(@class,'restore')]] | //div[contains(@class,'alert-success') and contains(.,'restored')]
REQUIRED_INFO//div[contains(@class,'required') and contains(@role,'alert')]
SEE_MORE_DETAILS_LINK//a[contains(.,'See More Details')]
SERVER_URL_SUCCESS//tr[contains(.,'Server URL')]/td//span[contains(@class,'lfr-status-success')]
SUCCESS//div[contains(@class,'alert') and contains(@class,'alert-success')]
SUCCESS_1xpath=(//div[contains(@class,'alert') and contains(@class,'alert-success')])[2]
SUCCESS_2//span[contains(@class,'alert-success') and contains(@class,'message')]
SUCCESS_CONTENT//div[@class='portlet-body']/div[contains(.,'${key_assetType}')]
SUCCESS_DISMISSIBLE//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]
SUCCESS_RESTORE_LOCATION//div[@class='portlet-body']/div/em[2]/a[contains(.,'${key_assetRestoreLocation}')]
TOOLTIP//div[contains(@class,'tooltip-content')]
UNIQUE_SUCCESS//div[contains(@class,'alert') and contains(@class,'alert-success') and contains(.,'${key_uniqueSuccess}')]
URL_ERROR//code[@class='lfr-url-error']
USER_BLOCKED//div[contains(@class,'alert-block')]
WARNING_SPECIFIC//div[contains(@class,'alert') and (contains(@class,'alert-warning'))][contains(.,'${key_warningMessage}')]
WEB_CONTENT_STATUS//span[contains(@class,'workflow-status')]/span[3]
WORKFLOW_STATUS//span[contains(@class,'workflow-status')]/strong | //span[contains(@class,'workflow-status')]/span
WORKFLOW_UNAPPROVED//div[@class='portlet-body']/div[contains(@class,'alert-warning')]
+ + \ No newline at end of file diff --git a/projects/js-toolkit/qa/poshi/testFunctional/paths/portlet/sitepages/SitePages.path b/projects/js-toolkit/qa/poshi/testFunctional/paths/portlet/sitepages/SitePages.path new file mode 100644 index 0000000000..d165030fef --- /dev/null +++ b/projects/js-toolkit/qa/poshi/testFunctional/paths/portlet/sitepages/SitePages.path @@ -0,0 +1,140 @@ + + +SitePages + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SitePages
SITE_NAME//span[contains(@class,'site-name') and contains(.,'${key_siteName}')] | //div[contains(@class,'site-name') and contains(.,'${key_siteName}')]
DISPLAY_STYLE//button[@data-title='Display Style' or @title='Display Style']
DISPLAY_STYLE_ITEM//a[contains(@class,'dropdown-item') and contains(.,'${key_displayStyle}')]
DISPLAY_STYLE_ITEM_ACTIVE//a[contains(@class,'dropdown-item') and contains(@class,'active') and contains(.,'${key_displayStyle}')]
LIST_GROUP_ITEM//li[contains(@class,'list-group-item')][contains(.,'${key_itemName}')]/button
LIST_GROUP_ITEM_CARET_ICON//ul[${key_depth}]/li//*[*[name()='svg'][contains(@class,'icon-caret-right')]]
LIST_GROUP_ITEM_CARET_ICON_SPECIFIC//li[contains(.,'${key_pageName}')]//*[*[name()='svg'][contains(@class,'icon-caret-right')]]
LIST_GROUP_ITEM_ELLIPSIS_ICON//li[contains(.,'${key_pageName}')]//*[*[name()='svg'][contains(@class,'ellipsis-v')]]
LIST_GROUP_ITEM_PLUS_ICON//li[contains(.,'${key_pageName}')]//*[*[name()='svg'][contains(@class,'icon-plus')]]
LIST_GROUP_ITEM_ROW_ENTRYxpath=(//li[contains(@class,'list-group-item')])[${key_index}]
LIST_GROUP_ITEM_ROW_ELLIPSISxpath=(//li[contains(@class,'list-group-item')])[${key_index}]//button[*[name()='svg'][contains(@class,'icon-ellipsis-v')]]
DETAILS_FRIENDLY_BASE_URL//span[contains(@id,'friendlyURL')]
DETAILS_PAGE_TYPE_PANEL_COMPONENT_TREE_ARROW//div[contains(@id,'selectPortletsTree')]//span[contains(.,'${key_componentName}')]/../span[contains(@class,'tree-hitarea glyphicon-plus')]
DETAILS_PAGE_TYPE_PANEL_CHECKBOX_INPUT//li[contains(@id,'selectPortletsRootNode')]//span[contains(.,'${key_componentOrPortletName}')]/../span[contains(@class,'tree-node-checkbox')]/input
LOGO_UPLOAD_IMAGE_IFRAME//iframe[contains(@id,'changeLogo_iframe_')]
LOGO_UPLOAD_IMAGE_BUTTON//label[contains(@for,'ImageUploaderPortlet')]
JAVASCRIPT_TEXTAREA//textarea[contains(@id,'javascript')]
JAVASCRIPT_LABEL//label[contains(@for,'javascript')]
+ + \ No newline at end of file diff --git a/projects/js-toolkit/qa/poshi/testFunctional/test-ignorable-error-lines.xml b/projects/js-toolkit/qa/poshi/testFunctional/test-ignorable-error-lines.xml new file mode 100644 index 0000000000..062cdbef89 --- /dev/null +++ b/projects/js-toolkit/qa/poshi/testFunctional/test-ignorable-error-lines.xml @@ -0,0 +1,240 @@ + + + + + + Permission denied to access property 'type' + + + + mutating the [[Prototype]] of an object will cause your code to run very slowly + + + + + + + .*The web application \[.*\] appears to have started a thread.*\[Thread-[0-9]+\].* + + + + .*The web application \[.*\] appears to have started a thread.*\[TrueZIP InputStream Reader\].* + + + [antelope:post] + + + + [AWT-Windows] + .*The web application \[.*\] appears to have started a thread.* + + + [com.google.inject.internal.Finalizer] + .*The web application \[.*\] appears to have started a thread.* + + + [junit] + + + + [MultiThreadedHttpConnectionManager cleanup] + .*The web application \[.*\] appears to have started a thread.* + + + [org.python.google.common.base.internal.Finalizer] + .*The web application \[.*\] appears to have started a thread.* + + + BasicResourcePool + + + + Caused by: + + + + Do NOT use embedded Elasticsearch in production + + + + Do NOT use Hypersonic in production + + + + INFO: + + + + No theme found for specified theme id userdashboard_WAR_userdashboardtheme + + + + + .*Failed to install artifact.*com.liferay.apio.architect.impl.internal.application.ApioApplication-default.config[\s\S]* + + + Exception sending context destroyed event to listener instance of class com.liferay.portal.spring.context.PortalContextLoaderListener + + + + JBREM00200: + + + + java.util.zip.ZipException: ZipFile closed + + + + SEC5054: Certificate has expired + + + + [com.google.javascript.jscomp.Tracer.ThreadTrace] + .*The web application \[\] created a ThreadLocal with key of type.* + + + + .*The web application \[\] appears to have started a thread named \[elasticsearch\[.* + + + [org.elasticsearch.common.inject] + .*The web application \[\] created a ThreadLocal with key of type.* + + + [org.elasticsearch.index.mapper] + .*The web application \[\] created a ThreadLocal with key of type.* + + + [org.apache.axis.utils.XMLUtils.ThreadLocalDocumentBuilder] + .*The web application \[/sharepoint-hook\] created a ThreadLocal with key of type.* + + + [org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl$1] + .*The web application \[\] created a ThreadLocal with key of type.* + + + [org.apache.xmlbeans.impl.store.CharUtil$1] + .*The web application \[\] created a ThreadLocal with key of type.* + + + [org.apache.xmlbeans.impl.store.Locale$1] + .*The web application \[\] created a ThreadLocal with key of type.* + + + [org.apache.poi.extractor.ExtractorFactory$1] + .*The web application \[\] created a ThreadLocal with key of type.* + + + [org.apache.xmlbeans.XmlBeans$1] + .*The web application \[\] created a ThreadLocal with key of type.* + + + [net.sf.jasperreports.engine.fonts.FontUtil$1] + .*The web application \[/jasperreports-web\] created a ThreadLocal with key of type.* + + + + .*The web application \[/saml-portlet\] created a ThreadLocal with key of type.*\[org.apache.xml.security.algorithms.MessageDigestAlgorithm\$[0-9]+\].* + + + + .*The web application \[/saml-portlet\] created a ThreadLocal with key of type.*\[org.apache.xml.security.algorithms.SignatureAlgorithm\$[0-9]+\].* + + + + .*The web application \[/saml-portlet\] created a ThreadLocal with key of type.*\[org.apache.xml.security.utils.UnsyncBufferedOutputStream\$[0-9]+\].* + + + + .*The web application \[/saml-portlet\] created a ThreadLocal with key of type.*\[org.apache.xml.security.utils.UnsyncByteArrayOutputStream\$[0-9]+\].* + + + + .*The web application \[/agent\] appears to have started a thread.*\[http-bio.*\].* + + + + .*The web application \[/agent\] appears to have started a thread.*\[scheduler_Worker-[0-9]+\].* + + + + .*The web application \[/agent\] appears to have started a thread.*\[SocketListener.*\].* + + + The web application [/reports-portlet] appears to have started a thread named [C3P0PooledConnectionPool + + + + + .*osgi.compendium:service=.*version=1.[0-9]+.* + + + Application exception overridden by commit exception + + + + + .*Table.*does not exist.* + + + The addSearchEngineConfigurator method has thrown an exception + + + + There are no actions associated with the resource com.liferay.portal.workflow.kaleo.model.KaleoDefinitionVersion + + + + + Attempting to upgrade table .* by recreating the table [\s\S]* + + + + Successfully recreated and upgraded table .* + + + IX_CED31606 + + + + drop table if exists Kaleo + + + + There is already an index on table + + + + SQLSTATE=42710 + + + + already has the column lastPublishDate + + + + Implicit conversion from datatype 'VARCHAR' to 'DECIMAL' is not allowed. Use the CONVERT function to run this query. + + + + IX_717B97E1 + + + + Returning the default theme + + + + No binary licenses found + + + + The activate method has thrown an exception + + + + No score point assigners available + + + + \ No newline at end of file diff --git a/projects/js-toolkit/qa/poshi/testFunctional/tests/HelloPoshi.testcase b/projects/js-toolkit/qa/poshi/testFunctional/tests/HelloPoshi.testcase new file mode 100644 index 0000000000..3fdbfd3b2b --- /dev/null +++ b/projects/js-toolkit/qa/poshi/testFunctional/tests/HelloPoshi.testcase @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/projects/js-toolkit/qa/poshi/testFunctional/tests/PortalSmoke.testcase b/projects/js-toolkit/qa/poshi/testFunctional/tests/PortalSmoke.testcase new file mode 100644 index 0000000000..401edd6567 --- /dev/null +++ b/projects/js-toolkit/qa/poshi/testFunctional/tests/PortalSmoke.testcase @@ -0,0 +1,59 @@ +@component-name = "portal-smoke" +definition { + + property portal.acceptance = "true"; + property portal.release = "true"; + property portal.smoke = "true"; + property portal.upstream = "true"; + property test.assert.warning.exceptions = "true"; + property testray.main.component.name = "Smoke"; + + setUp { + Portal.TestCase.setUpPortalInstance(); + } + + tearDown { + var testPortalInstance = PropsUtil.get("test.portal.instance"); + + if ("${testPortalInstance}" == "true") { + Portal.PortalInstances.tearDownCP(); + } + else { + Portal.PagesAdmin.tearDownCP(); + + Portal.Site.tearDownCP(); + + Portal.WebContent.tearDownCP(); + } + } + + @description = "Ensure that the super admin can add pages, add portlets, navigate to the product menu, use the WYSIWYG editor, and view alert messages." + @priority = "5" + test Smoke { + property app.server.types = "jboss,tcserver,tomcat,weblogic,websphere,wildfly"; + property database.bare.enabled = "true"; + property database.types = "db2,hypersonic,mariadb,mysql,oracle,postgresql,sqlserver,sybase"; + property environment.acceptance = "true"; + property portal.acceptance = "false"; + property testray.component.names = "Training"; + + Portal.SignIn.signInTestSetup(); + + Portal.Smoke.viewWelcomeContentPage(); + + Portal.Smoke.runSmoke(); + + // Assert all bundles installed + + Default.AssertConsoleTextNotPresent(value1 = "The portal instance needs to be restarted to complete the installation"); + + // LPS-153203 Assert no warnings or errors in log4j configuration + + Default.AssertConsoleTextPresent(value1 = "Starting dynamic bundles"); + + Default.AssertConsoleTextNotPresent(value1 = "log4j:WARN"); + + Default.AssertConsoleTextNotPresent(value1 = "log4j:ERROR"); + } + +} \ No newline at end of file diff --git a/projects/js-toolkit/qa/poshi/testFunctional/tests/SampleProject.testcase b/projects/js-toolkit/qa/poshi/testFunctional/tests/SampleProject.testcase new file mode 100644 index 0000000000..bee39663ef --- /dev/null +++ b/projects/js-toolkit/qa/poshi/testFunctional/tests/SampleProject.testcase @@ -0,0 +1,70 @@ +@component-name = "portal-collaboration" +definition { + property portal.release = "true"; + property portal.upstream = "true"; + property testray.main.component.name = "Frontend Infrastructure"; + var pageName = "Samples Page"; + + setUp { + TestCase.setUpPortalInstance(); + + User.firstLoginPG(); + } + + @priority = "5" + test AddSamplePortlet { + Navigator.gotoPage(pageName = "Welcome"); + + Portlet.addPG(portletName = "angular-portlet-l10n-cfg-sample"); + + Portlet.viewTitle(portletName = "angular-portlet-l10n-cfg-sample"); + + Portlet.viewBody( + portletBody = "angular-portlet-l10n-cfg-sample", + portletName = "angular-portlet-l10n-cfg-sample" + ); + + Navigator.gotoPage(pageName = "Welcome"); + + Portlet.addPG(portletName = "angular-portlet-l10n-cfg-nosample"); + + Portlet.viewTitle(portletName = "angular-portlet-l10n-cfg-nosample"); + + Portlet.viewBody( + portletBody = "", + portletName = "angular-portlet-l10n-cfg-sample" + ); + } + + @priority = "5" + test AddAllSamplePortlets { + var fileContent = FileUtil.read("poshi/dependencies/sample_list.txt"); + + for (var sampleProjectName : list "${fileContent}") { + echo("${sampleProjectName}"); + + Navigator.gotoPage(pageName = "Welcome"); + + Portlet.addPG(portletName = "${sampleProjectName}"); + + Portlet.viewTitle(portletName = "${sampleProjectName}"); + + if (contains("${sampleProjectName}", "nosample")) { + var key_portletName = "${sampleProjectName}"; + + AssertTextNotEquals.assertNotPartialText( + locator1 = "Portlet#BODY", + value1 = "${sampleProjectName}" + ); + } + else { + Portlet.viewBody( + portletBody = "${sampleProjectName}", + portletName = "${sampleProjectName}" + ); + } + + Portlet.deletePG(portletName = "${sampleProjectName}"); + } + } +} \ No newline at end of file