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 #267

Merged
merged 2 commits into from
Jul 24, 2024
Merged
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
9 changes: 9 additions & 0 deletions data/crc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ crc:
"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
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