Ringtone app
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

23 行
585 B

  1. describe('ringtone', () => {
  2. beforeEach(() => {
  3. cy.visit('/my/create/ringtone')
  4. })
  5. it('should be created', () => {
  6. cy.intercept('POST', new URL('/api/ringtones', Cypress.env('API_BASE_URL')).toString()).as('request')
  7. cy
  8. .get('input[name="name"]')
  9. .type('Happy Birthday')
  10. cy
  11. .get('textarea[name="data"]')
  12. .type('8g1 8g1 4a1 4g1 4c2 2b1 8g1 8g1 4a1 4g1 4d2 2c2 8g1 8g1 4g2 4e2 8c2 8c2 4b1 4a1 8f2 8f2 4e2 4c2 4d2 2c2')
  13. cy
  14. .get('form[aria-label="Create Ringtone"]')
  15. .submit()
  16. cy.wait('@request').its('response.statusCode').should('equal', 201)
  17. })
  18. })