Skip to content

Commit

Permalink
#6 Red: Replace data-test with data-testid to select elements
Browse files Browse the repository at this point in the history
to work with react-testing-library's getByTestId
  • Loading branch information
mkudamatsu committed Oct 30, 2019
1 parent 08b660e commit ef2fc58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/integration/uploadFontFile.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('Uploading a font file', () => {
cy.fixture(fontFileName, 'binary')
.then(Cypress.Blob.binaryStringToBlob)
.then((fontFile) => {
cy.get('[data-test=FontFileUploader]').upload({
cy.get('[data-testid=FontFileUploader]').upload({
fileContent: fontFile,
fileName: fontFileName,
mimeType: 'font/ttf',
Expand All @@ -31,7 +31,7 @@ describe('Uploading a font file', () => {
cy.fixture(fontFileName, 'binary')
.then(Cypress.Blob.binaryStringToBlob)
.then((fontFile) => {
cy.get('[data-test=FontFileUploader]').upload({
cy.get('[data-testid=FontFileUploader]').upload({
fileContent: fontFile,
fileName: fontFileName,
mimeType: 'font/ttf',
Expand Down

0 comments on commit ef2fc58

Please sign in to comment.