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

user-status tests #81

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

user-status tests #81

wants to merge 1 commit into from

Conversation

whyDontI
Copy link
Contributor

@whyDontI whyDontI commented Apr 11, 2021

Testing user-status component

  • Testing the text and button text before and after the click
  • Testing if /user-status route loads and has expected components

Assumptions

  • There will be a /user-status route
  • There will be a Button component

Closes #68

@whyDontI whyDontI self-assigned this Apr 11, 2021
@ankushdharkar ankushdharkar changed the title user-status tests [WIP] user-status tests Apr 11, 2021
@whyDontI whyDontI changed the title [WIP] user-status tests user-status tests Apr 17, 2021
Copy link
Contributor

@swarajpure swarajpure left a comment

Choose a reason for hiding this comment

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

Can we please fix the formatting issues? Also click is not being imported in a test file

setupApplicationTest(hooks);

test('Should update the status on button clicks', async function (assert) {
await visit('/user-status');
Copy link
Contributor

Choose a reason for hiding this comment

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

This page will be behind authentication, right?
How do we know that the user has logged in?

@ankushdharkar ankushdharkar added feature task A big ticket item that needs to come up as a feature tests labels Jun 21, 2022
@ankushdharkar ankushdharkar requested review from prakashchoudhary07 and removed request for SagarBajpai June 21, 2022 15:03
@ankushdharkar ankushdharkar assigned pallabez and unassigned whyDontI Jun 21, 2022
Comment on lines 23 to 50
assert.equal(
this.element.querySelector('[data-test-mainHeading]').textContent.trim(),
'Thank you for connecting your GitHub!',
'Correct Heading'
);
assert.equal(
this.element.querySelector('[data-test-subHeading]').textContent.trim(),
'Please complete the signup in order to:',
'Correct Subheading'
);
assert.equal(
this.element.querySelector('[data-test-li1]').textContent.trim(),
'Use Features',
'Correct list item'
);
assert.equal(
this.element.querySelector('[data-test-li2]').textContent.trim(),
'Display yourself on the (members) page',
'Correct list item'
);
assert.equal(
this.element
.querySelector('[data-test-signup-button]')
.textContent.trim(),
'Get Started',
'Correct button title'
);
});
Copy link
Member

Choose a reason for hiding this comment

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

Isn't checking if a specific keywords is present would be better here?

@netlify
Copy link

netlify bot commented May 18, 2023

Deploy Preview for staging-my ready!

Name Link
🔨 Latest commit 47dd4c4
🔍 Latest deploy log https://app.netlify.com/sites/staging-my/deploys/6466ab074a3b31000890469f
😎 Deploy Preview https://deploy-preview-81--staging-my.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature task A big ticket item that needs to come up as a feature tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests for setting status
6 participants