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

feat: add watcher fixtures #24

Merged
merged 2 commits into from
Sep 6, 2023
Merged

feat: add watcher fixtures #24

merged 2 commits into from
Sep 6, 2023

Conversation

Zidious
Copy link
Contributor

@Zidious Zidious commented Sep 1, 2023

Please see referenced ticket

Comment on lines +10 to +36
<div style="margin-bottom: 5em">
<h2>Test Case 1 - Button Click</h2>

<div id="color-block">This isn't readable is it...</div>
<button onclick="updateColour()">Click me</button>

<style>
#color-block {
background-color: white;
color: white;
width: 100px;
height: 100px;
margin-bottom: 1em;
display: none;
}
</style>

<script>
function updateColour() {
const colorBlock = document.getElementById("color-block");
colorBlock.style.backgroundColor = "gray";
colorBlock.style.display = "block";

document.title = "Watcher - Test Case 1 - Button Click";
}
</script>
</div>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decided to put script and style tags within each div "test block". Can merge them all necessary, this reads easier but no strong opinion here.

@straker
Copy link
Contributor

straker commented Sep 5, 2023

Is this the right place for this test fixture? We've been using this strictly for all the apis to have tests, watcher is outside that scope. Is there a reason this doesn't belong in the watcher repo?

straker
straker previously requested changes Sep 5, 2023
Copy link
Contributor

@straker straker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should use this repo as a place to gather any fixtures we need shared across multiple repos. We should limit the scope of this repo to test cases and fixtures that are needed by axe-core APIs

@Zidious
Copy link
Contributor Author

Zidious commented Sep 5, 2023

I don't think we should use this repo as a place to gather any fixtures we need shared across multiple repos. We should limit the scope of this repo to test cases and fixtures that are needed by axe-core APIs

Clarification for readers: discussed during standup - watcher related fixtures will have a home here under /fixtures/watcher

@Zidious Zidious merged commit 3efe1a9 into v1 Sep 6, 2023
@Zidious Zidious deleted the chore-add-watcher-fixtures branch September 6, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants