-
-
Notifications
You must be signed in to change notification settings - Fork 9
UI tests #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
UI tests #73
Changes from 43 commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
f4db4fc
Add initial skeleton for UI Tests
bdhoine 56bf9ce
Add build for UI tests
bdhoine 004ba10
Add credentials for private container pull
bdhoine ea278ff
Use correct image
bdhoine 089b16f
Remove needs for testing
bdhoine 03f9eba
Add config for aem host
bdhoine 3395227
Test connectivity
bdhoine e68c0c1
Make sure build does not fail
bdhoine 742af20
Print docker logs
bdhoine c6a0145
Retry with new image with correct amd64 binary
bdhoine f89efe4
Try with config for package read without credentials
bdhoine e06b050
Add full build definition
bdhoine 12313db
Cache playwright binaries
bdhoine 30f3b86
Make mvn commands less verbose
bdhoine 7002d3e
Update action versions
bdhoine e0d1372
Add report as artifact
bdhoine d38e141
Use correct artifact path
bdhoine 0dcf30f
Add basic test
bdhoine 9bf395d
Add auth setup
bdhoine 22032dd
Enable typescript-eslint again
bdhoine fdad268
Add test dictionary and test to create dictionaries
bdhoine 5b098f1
Test page object models
bdhoine 7eee30a
WIP
bdhoine 5c42046
Update tests with new locators
bdhoine 8b5c633
Clear replication queue and add basic auth headers
bdhoine a2b864e
Add comments for tests
bdhoine cc580d3
Add setup step
bdhoine 38123f5
Use default 30s timeout for initial AEM slowlyness
bdhoine 85f2019
Hide product tour before starting tests
bdhoine 2653d59
Merge branch 'main' into ui-tests
bdhoine 3db711a
Add dependabot for npm packages
bdhoine 895400e
Fix reference to preferences and lower test timeout
bdhoine 08f18dd
Update dependencies and increate timeout for login
bdhoine 60aa6dd
Add logs as artifact
bdhoine d142aea
Update artifact upload steps config
bdhoine f5f6b42
Remove volume config
bdhoine d703e1d
Add name for workflow call
bdhoine 0904130
Use consistent syntax
bdhoine ba264d1
Format
bdhoine eea9359
Make sure github actions also stay up to date
bdhoine 26aa3d6
Rework test setup
bdhoine b09d03d
Make minimal runtime requirements more clear
bdhoine 11a25e1
Add tests for publication and managing entries
bdhoine 77d5af3
Update translations for dutch
bdhoine 770aca9
use vanity for tool urls and create helper url object
bdhoine 78d73f8
Exclude generated sources for linting
bdhoine aee6c29
Remove tracking attributes
bdhoine b35d870
Use non admin user for UI tests
bdhoine 071f785
Update screenshots
bdhoine 843fd9c
Retry queue check
bdhoine 1e50bfc
Increase timeout to avoid flaky tests
bdhoine e9aa26e
Add tests for editing entries
bdhoine a92ebc8
Add report with github action
bdhoine 4357e81
Only run on pull requests and merges to main branch
bdhoine 47b091a
Also comment to pull request and annotate failed tests
bdhoine 9f682d7
Wait on POST on key creation
bdhoine 86ce2c5
Update docs
bdhoine 86399bf
Update IT test content
bdhoine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,19 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "maven" | ||
| directory: "/" # Location of package manifests | ||
| directory: "/" | ||
| schedule: | ||
| interval: "daily" | ||
| interval: "weekly" | ||
| ignore: | ||
| - dependency-name: "io.wcm.maven:io.wcm.maven.aem-dependencies" | ||
| versions: [ "[6.5.17,)" ] | ||
| - dependency-name: "biz.aQute.bnd:bnd-maven-plugin" | ||
| update-types: [ "version-update:semver-major" ] | ||
| - package-ecosystem: "npm" | ||
| directory: "/ui.tests" | ||
| schedule: | ||
| interval: "weekly" | ||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| <component name="ProjectRunConfigurationManager"> | ||
| <configuration default="false" name="[author] aemsync it.content" type="MavenRunConfiguration" factoryName="Maven"> | ||
| <MavenSettings> | ||
| <option name="myGeneralSettings" /> | ||
| <option name="myRunnerSettings" /> | ||
| <option name="myRunnerParameters"> | ||
| <MavenRunnerParameters> | ||
| <option name="cmdOptions" /> | ||
| <option name="profiles"> | ||
| <set /> | ||
| </option> | ||
| <option name="goals"> | ||
| <list> | ||
| <option value="verify" /> | ||
| </list> | ||
| </option> | ||
| <option name="multimoduleDir" /> | ||
| <option name="pomFileName" value="pom.xml" /> | ||
| <option name="profilesMap"> | ||
| <map> | ||
| <entry key="aemsync" value="true" /> | ||
| </map> | ||
| </option> | ||
| <option name="projectsCmdOptionValues"> | ||
| <list /> | ||
| </option> | ||
| <option name="resolveToWorkspace" value="false" /> | ||
| <option name="workingDirPath" value="$PROJECT_DIR$/it.content" /> | ||
| </MavenRunnerParameters> | ||
| </option> | ||
| </MavenSettings> | ||
| <method v="2" /> | ||
| </configuration> | ||
| </component> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| <component name="ProjectRunConfigurationManager"> | ||
| <configuration default="false" name="[author] aemsync ui.apps" type="MavenRunConfiguration" factoryName="Maven"> | ||
| <MavenSettings> | ||
| <option name="myGeneralSettings" /> | ||
| <option name="myRunnerSettings" /> | ||
| <option name="myRunnerParameters"> | ||
| <MavenRunnerParameters> | ||
| <option name="cmdOptions" /> | ||
| <option name="profiles"> | ||
| <set /> | ||
| </option> | ||
| <option name="goals"> | ||
| <list> | ||
| <option value="verify" /> | ||
| </list> | ||
| </option> | ||
| <option name="multimoduleDir" /> | ||
| <option name="pomFileName" value="pom.xml" /> | ||
| <option name="profilesMap"> | ||
| <map> | ||
| <entry key="aemsync" value="true" /> | ||
| </map> | ||
| </option> | ||
| <option name="projectsCmdOptionValues"> | ||
| <list /> | ||
| </option> | ||
| <option name="resolveToWorkspace" value="false" /> | ||
| <option name="workingDirPath" value="$PROJECT_DIR$/ui.apps" /> | ||
| </MavenRunnerParameters> | ||
| </option> | ||
| </MavenSettings> | ||
| <method v="2" /> | ||
| </configuration> | ||
| </component> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| <component name="ProjectRunConfigurationManager"> | ||
| <configuration default="false" name="[author] install it.content" type="MavenRunConfiguration" factoryName="Maven"> | ||
| <MavenSettings> | ||
| <option name="myGeneralSettings" /> | ||
| <option name="myRunnerSettings" /> | ||
| <option name="myRunnerParameters"> | ||
| <MavenRunnerParameters> | ||
| <option name="cmdOptions" /> | ||
| <option name="profiles"> | ||
| <set /> | ||
| </option> | ||
| <option name="goals"> | ||
| <list> | ||
| <option value="clean" /> | ||
| <option value="install" /> | ||
| </list> | ||
| </option> | ||
| <option name="multimoduleDir" /> | ||
| <option name="pomFileName" value="pom.xml" /> | ||
| <option name="profilesMap"> | ||
| <map> | ||
| <entry key="autoInstallPackage" value="true" /> | ||
| </map> | ||
| </option> | ||
| <option name="projectsCmdOptionValues"> | ||
| <list /> | ||
| </option> | ||
| <option name="resolveToWorkspace" value="false" /> | ||
| <option name="workingDirPath" value="$PROJECT_DIR$/it.content" /> | ||
| </MavenRunnerParameters> | ||
| </option> | ||
| </MavenSettings> | ||
| <method v="2" /> | ||
| </configuration> | ||
| </component> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| <component name="ProjectRunConfigurationManager"> | ||
| <configuration default="false" name="[author] run ui.tests" type="MavenRunConfiguration" factoryName="Maven"> | ||
| <MavenSettings> | ||
| <option name="myGeneralSettings" /> | ||
| <option name="myRunnerSettings" /> | ||
| <option name="myRunnerParameters"> | ||
| <MavenRunnerParameters> | ||
| <option name="cmdOptions" /> | ||
| <option name="profiles"> | ||
| <set /> | ||
| </option> | ||
| <option name="goals"> | ||
| <list> | ||
| <option value="clean" /> | ||
| <option value="test" /> | ||
| <option value="-DskipTests=false" /> | ||
| </list> | ||
| </option> | ||
| <option name="multimoduleDir" /> | ||
| <option name="pomFileName" value="pom.xml" /> | ||
| <option name="profilesMap"> | ||
| <map /> | ||
| </option> | ||
| <option name="projectsCmdOptionValues"> | ||
| <list /> | ||
| </option> | ||
| <option name="resolveToWorkspace" value="false" /> | ||
| <option name="workingDirPath" value="$PROJECT_DIR$/ui.tests" /> | ||
| </MavenRunnerParameters> | ||
| </option> | ||
| </MavenSettings> | ||
| <method v="2" /> | ||
| </configuration> | ||
| </component> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
|
|
||
| <parent> | ||
| <groupId>be.orbinson.aem</groupId> | ||
| <artifactId>aem-dictionary-translator</artifactId> | ||
| <version>1.3.0-SNAPSHOT</version> | ||
| <relativePath>../pom.xml</relativePath> | ||
| </parent> | ||
|
|
||
| <artifactId>aem-dictionary-translator.it.content</artifactId> | ||
| <packaging>content-package</packaging> | ||
| <name>IT Content</name> | ||
| <description>IT Content package for the Dictionary Translator</description> | ||
|
|
||
| <profiles> | ||
| <profile> | ||
| <id>autoInstallPackage</id> | ||
|
|
||
| <build> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>io.wcm.maven.plugins</groupId> | ||
| <artifactId>wcmio-content-package-maven-plugin</artifactId> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
| </profile> | ||
| </profiles> | ||
|
|
||
| <build> | ||
| <sourceDirectory>src/main/content/jcr_root</sourceDirectory> | ||
|
|
||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.jackrabbit</groupId> | ||
| <artifactId>filevault-package-maven-plugin</artifactId> | ||
| <configuration> | ||
| <properties> | ||
| <cloudManagerTarget>none</cloudManagerTarget> | ||
| </properties> | ||
| <packageType>mixed</packageType> | ||
| <showImportPackageReport>false</showImportPackageReport> | ||
| <repositoryStructurePackages> | ||
| <repositoryStructurePackage> | ||
| <groupId>be.orbinson.aem</groupId> | ||
| <artifactId>aem-dictionary-translator.ui.apps.structure</artifactId> | ||
| </repositoryStructurePackage> | ||
| </repositoryStructurePackages> | ||
| </configuration> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
|
|
||
| <dependencies> | ||
| <dependency> | ||
| <groupId>be.orbinson.aem</groupId> | ||
| <artifactId>aem-dictionary-translator.ui.apps.structure</artifactId> | ||
| <version>${project.version}</version> | ||
| <type>zip</type> | ||
| </dependency> | ||
| </dependencies> | ||
| </project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <workspaceFilter version="1.0"> | ||
| <filter root="/apps/aem-dictionary-translator/osgiconfig/config/org.apache.sling.jcr.repoinit.RepositoryInitializer~dictionary-translator-it-content.config"/> | ||
|
bdhoine marked this conversation as resolved.
Outdated
|
||
| <filter root="/apps/wcm/core/resources/languages"/> | ||
| <filter root="/content/dictionaries"/> | ||
| <filter root="/etc/replication/agents.author/publish"/> | ||
| <filter root="/etc/replication/agents.author/preview"/> | ||
| </workspaceFilter> | ||
13 changes: 13 additions & 0 deletions
13
...g.apache.sling.jcr.repoinit.RepositoryInitializer~dictionary-translator-it-content.config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| scripts=[" | ||
| create group dictionary-user | ||
| add dictionary-user to group contributor | ||
|
|
||
| create user test-user-dictionary-user with password test-password-dictionary-user | ||
| add test-user-dictionary-user to group dictionary-user | ||
|
|
||
| set ACL for dictionary-user | ||
| allow jcr:read,jcr:nodeTypeManagement,jcr:write,crx:replicate on /content/dictionaries | ||
| allow jcr:read on /libs/cq/i18n/translator | ||
| allow jcr:read on /libs/cq/i18n/gui/translator | ||
| end | ||
| "] |
4 changes: 4 additions & 0 deletions
4
it.content/src/main/content/jcr_root/apps/wcm/core/resources/.content.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" | ||
| xmlns:jcr="http://www.jcp.org/jcr/1.0" | ||
| jcr:primaryType="sling:Folder"/> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.