|
@@ -101,17 +101,18 @@ describe('tabs', () => {
|
|
|
cy.get('.semi-tabs-bar-arrow .semi-button-primary').eq(0).should('exist');
|
|
|
});
|
|
|
|
|
|
- it('showRestInDropdown', () => {
|
|
|
- cy.visit('http://127.0.0.1:6006/iframe.html?id=tabs--show-rest-in-dropdown-demo&args=&viewMode=story');
|
|
|
-
|
|
|
- cy.get('.semi-button').eq(1).trigger('mouseover');
|
|
|
- cy.get('.semi-dropdown-content .semi-dropdown-item').should('not.exist');
|
|
|
- });
|
|
|
-
|
|
|
it.skip('activeTab is within the viewport after collapse Tabs did mount', () => {
|
|
|
cy.visit('http://127.0.0.1:6006/iframe.html?id=tabs--collapse-scroll-into-view-demo&args=&viewMode=story');
|
|
|
|
|
|
cy.wait(1000);
|
|
|
cy.get('.semi-tabs-tab').contains('Tab-9').should('exist').and('be.visible');
|
|
|
});
|
|
|
+
|
|
|
+ it('showRestInDropdown', () => {
|
|
|
+ cy.visit('http://127.0.0.1:6006/iframe.html?id=tabs--show-rest-in-dropdown-demo&args=&viewMode=story');
|
|
|
+
|
|
|
+ cy.get('.semi-button').eq(1).trigger('mouseover');
|
|
|
+ cy.get('.semi-dropdown-content .semi-dropdown-item').should('not.exist');
|
|
|
+ });
|
|
|
+
|
|
|
});
|