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

Finish tests for dialog datepicker and fix bugs #1096

Closed
wants to merge 5 commits into from

Conversation

spectranaut
Copy link
Contributor

This adds the rest of the tests for the dialog datepicker.

It also fixes two tiny bugs:

  • The "data-date" is written as 2019-01-9 for all of the "ninth" days of the month. This was a simple off-by-one error.
  • The keyboard shortcuts "PAGE UP", "PAGE DOWN", "SHIFT+PAGE UP" and "SHIFT+PAGE DOWN" didn't re-set the tab index after the calendar was update to the new month/year.

There is another bug that I'll make a followup issue for related to the SPACE button -- but I can only replicate it in webdriver not manually, so it's not urgent.

@spectranaut spectranaut requested review from jongund and mcking65 July 15, 2019 20:14
Copy link
Contributor

@jongund jongund left a comment

Choose a reason for hiding this comment

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

@spectranaut @mcking65

Valerie, Thank you for finding the bugs and finishing the the tests.

'After selected next month button, then next year button date, then previous month button, then previous year button, date should be ' + day.toISOString().split('T')[0] + ' but found: ' + dayInFocus
);

// TODO: Test SPACE
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it better to do t.skip instead of a comment? Or does that cause weirdness with the coverage scripts

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm I dug into it more yesterday thinking it might have been a webdriver bug (because I couldn't replicate it) -- but then I realized it's a firefox only bug. I added a commit with the failing tests and made a issue: #1098

@mcking65
Copy link
Contributor

Darn, I wish I would have merged this before #1100 .
@jongund, could you resolve the conflict?

@mcking65
Copy link
Contributor

If I did this correctly, the changes in this PR are now in a branch named bocoup-dialog-datepicker-tests. To be sure, going to change the base branch for this PR to that branch.

@mcking65
Copy link
Contributor

Interesting, Github says it is changing the base branch to bocoup-dialog-datepicker-tests but then does not do it. Maybe that means it is identical so they can't be merged. I'll just open a new PR for that branch and we can compare it to this one.

@mcking65
Copy link
Contributor

Closing; changes merged in PR #1141

@mcking65 mcking65 closed this Aug 27, 2019
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.

4 participants