tagInput.spec.js 772 B

12345678910111213141516171819
  1. describe('tag', () => {
  2. it('tagInput with renderTagItem', () => {
  3. cy.visit('http://127.0.0.1:6006/iframe.html?id=taginput--render-tag-item&args=&viewMode=story');
  4. // focus and esc
  5. cy.get('.semi-icon-close').click();
  6. cy.get('.semi-icon-close').should('not.exist');
  7. });
  8. /*
  9. The local test succeeded, but the online test failed.
  10. The expected result of online testing is 190.640625px, ignore
  11. */
  12. // it('sortable item long text', () => {
  13. // cy.visit('http://127.0.0.1:6006/iframe.html?id=taginput--long-text-item-draggable&args=&viewMode=story');
  14. // cy.get('.semi-tagInput-wrapper').click();
  15. // cy.get('.semi-tag').eq(0).should('have.css', 'width').and('eq', '290px');
  16. // });
  17. });