Skip to content
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

Add ansible, rhel, and openshift link selectors to services dropdown #266

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions data/crc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
Favorited services:
url_rules:
- /favoritedservices
data-ouia-component-id="AllServices-Dropdown-Ansible"
features:

Check failure on line 24 in data/crc.yml

View workflow job for this annotation

GitHub Actions / build (3.9)

syntax error: could not find expected ':' (syntax)
_scope: '[data-ouia-app-id="landing"]'
"Selector: Beta switcher":
selectors:
Expand All @@ -34,6 +35,15 @@
"Find an app or service":
selectors:
- '{} button:contains("Find an app or service")'
"Apps & Services Dropdown - Ansible":
selectors:
- '{} [data-ouia-component-id="AllServices-Dropdown-Ansible"]'
"Apps & Services Dropdown - RHEL":
selectors:
- '{} [data-ouia-component-id="AllServices-Dropdown-RHEL"]'
"Apps & Services Dropdown - Openshift":
selectors:
- '{} [data-ouia-component-id="AllServices-Dropdown-Openshift"]'
"Apps & Services Dropdown - Application Services: Overview":
selectors:
- '{} a:contains("Overview")[href="application-services/overview"]'
Expand Down Expand Up @@ -175,6 +185,15 @@
"Apps & Services Dropdown - Ansible Automation Platform: Overview":
selectors:
- '{} a:contains("Overview")[href="ansible/ansible-dashboard"]'
"Apps & Services Dropdown Sitewide - Ansible":
selectors:
- '{} [data-ouia-component-id="AllServices-Dropdown-Ansible"]'
"Apps & Services Dropdown Sitewide - RHEL":
selectors:
- '{} [data-ouia-component-id="AllServices-Dropdown-RHEL"]'
"Apps & Services Dropdown Sitewide - Openshift":
selectors:
- '{} [data-ouia-component-id="AllServices-Dropdown-Openshift"]'
"Apps & Services Dropdown Sitewide - Application Services: Overview":
selectors:
- 'a:contains("Overview")[href="application-services/overview"]'
Expand Down
4 changes: 2 additions & 2 deletions docs/data.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Adding Data

Each application should have their own file inside of `/data/APP.yml`. Whenever changing your selectors or pages, make sure you are upding the correct file.
Each application should have their own file inside of `/data/APP.yml`. Whenever changing your selectors or pages, make sure you are updating the correct file.

## Adding a new app

Expand Down Expand Up @@ -67,7 +67,7 @@ For `Example Feature 1`, the full selector would be:

`[data-ouia-bundle="foo"][data-ouia-app-id="bar"] .pf-c-button:contains("Wow!")`

Spacing of the `{}` is important, because without the trailing space, like in the second exmaple, there is no space after the `data-ouia-app-id`.
Spacing of the `{}` is important, because without the trailing space, like in the second example, there is no space after the `data-ouia-app-id`.

If you are testing out selectors and want to double check your work before contributing, you can do

Expand Down
Loading