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

Adding hasTagName assertion #496

Merged
merged 4 commits into from
Oct 5, 2019
Merged

Conversation

scalvert
Copy link
Collaborator

@scalvert scalvert commented Oct 3, 2019

Implements #493.

@scalvert scalvert requested a review from Turbo87 October 3, 2019 04:14
@scalvert
Copy link
Collaborator Author

scalvert commented Oct 3, 2019

I believe I need to add an entry in the ember tests.

lib/assertions.ts Show resolved Hide resolved
lib/assertions.ts Outdated Show resolved Hide resolved
lib/assertions.ts Outdated Show resolved Hide resolved
@scalvert
Copy link
Collaborator Author

scalvert commented Oct 3, 2019

@Turbo87 I forget how to make the ember tests work. I added an assertion, but hasTagName doesn't appear to be available in the version of qunit-dom the tests are using. I remember having this issue before, but can't remember how I resolved :)

@scalvert
Copy link
Collaborator Author

scalvert commented Oct 3, 2019

I believe I figured it out. Added ember test.

@scalvert
Copy link
Collaborator Author

scalvert commented Oct 3, 2019

I think this PR should be closely followed by doesNotHaveTagName

@scalvert scalvert changed the title task(assertions): Adding hasTag assertion task(assertions): Adding hasTagName assertion Oct 3, 2019
@@ -18,6 +18,7 @@ module('Acceptance | qunit-dom', function(hooks) {
assert.dom('#title').exists();
assert.dom('#subtitle').doesNotExist();
assert.dom('#title').hasText('Welcome to Ember');
assert.dom('#title').hasTagName('h2');
Copy link
Collaborator

Choose a reason for hiding this comment

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

FWIW we don't have to add all the assertions here. this is just meant as a smoke test that the qunit-dom integration works correctly. the assertions itself are tested enough by the Jest test suite.

@Turbo87 Turbo87 changed the title task(assertions): Adding hasTagName assertion Adding hasTagName assertion Oct 5, 2019
@Turbo87 Turbo87 merged commit 91935fe into mainmatter:master Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants