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

refactor: Moving from using title text to using apparently-unique class names to identify SourcePoint buttons #667

Merged
merged 4 commits into from
Oct 4, 2022

Conversation

sookburt
Copy link
Contributor

@sookburt sookburt commented Sep 27, 2022

What does this change?

Alters the monitoring test to use class names to identify the buttons within Sourcepoint's CMP in the absence of HTML element ids.

Why?

This fixes the issue that ab tests often change the text of the button which we were previously relying on. It makes the monitoring tests slightly less fragile until we can persuade Sourcepoint to add ids into their code. (we hope).

Sue Burt and Akinsola Lawanson

sookburt and others added 3 commits September 26, 2022 16:59
This should make the test more robust when doing ab tests that change the text on the button - at least until Sourcepoint add an id to the button
this makes the test more stable during ab testing
Updated test for Interacting with CMPbanner in CCPA
@sookburt sookburt changed the title test: Moving from using title text to using apparently-unique class names to identify SourcePoint buttons refactor: Moving from using title text to using apparently-unique class names to identify SourcePoint buttons Sep 28, 2022
@sookburt sookburt marked this pull request as ready for review September 28, 2022 10:33
@kenoir kenoir self-requested a review September 29, 2022 11:58
@sookburt sookburt merged commit 5b4b189 into main Oct 4, 2022
@sookburt sookburt deleted the skb_cmp_second_layer_monitoring branch October 4, 2022 09:54
@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2022

🎉 This PR is included in version 11.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants