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

Feature 1-1: Uploading a font file displays the font name #6

Closed
masakudamatsu opened this issue Oct 28, 2019 · 3 comments
Closed

Feature 1-1: Uploading a font file displays the font name #6

masakudamatsu opened this issue Oct 28, 2019 · 3 comments

Comments

@masakudamatsu
Copy link
Owner

masakudamatsu commented Oct 28, 2019

Font files for testing are stored in /cypress/fixtures/ folder, because Cypress won't recognize files in other locations.

Subtasks

@masakudamatsu
Copy link
Owner Author

masakudamatsu commented Oct 28, 2019

The font name should be extracted from tables[name][fullName]

  • e.g. 'Open Sans Regular'

Screenshot 2019-10-28 at 16 49 08

@masakudamatsu
Copy link
Owner Author

For the second test, we use Roboto Slab Light.
Screenshot 2019-10-29 at 12 17 20

masakudamatsu pushed a commit that referenced this issue Oct 29, 2019
To see if uploading a different font file will display the corresponding different font name
@masakudamatsu
Copy link
Owner Author

Passed the test!

masakudamatsu pushed a commit that referenced this issue Nov 2, 2019
to work with react-testing-library's getByTestId
masakudamatsu pushed a commit that referenced this issue Nov 2, 2019
opentype.load() does not convert a font file into a font object, but the test code returns success.
@masakudamatsu masakudamatsu changed the title Feature 1: Uploading a font file displays the font name Feature 1-1: Uploading a font file displays the font name Nov 2, 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

No branches or pull requests

1 participant