|
|
@@ -113,11 +113,11 @@ context('Access to special pages', () => {
|
|
|
cy.collapseSidebar(true);
|
|
|
});
|
|
|
|
|
|
- it('/trash is successfully loaded', () => {
|
|
|
- cy.visit('/trash', { });
|
|
|
- cy.getByTestid('trash-page-list').should('be.visible');
|
|
|
- cy.screenshot(`${ssPrefix}-trash`);
|
|
|
- });
|
|
|
+ // it('/trash is successfully loaded', () => {
|
|
|
+ // cy.visit('/trash', { });
|
|
|
+ // cy.getByTestid('trash-page-list').should('be.visible');
|
|
|
+ // cy.screenshot(`${ssPrefix}-trash`);
|
|
|
+ // });
|
|
|
|
|
|
it('/tags is successfully loaded', () => {
|
|
|
|
|
|
@@ -127,11 +127,20 @@ context('Access to special pages', () => {
|
|
|
cy.visit('/tags');
|
|
|
// select tags
|
|
|
cy.getByTestid('grw-sidebar-nav-primary-tags').click();
|
|
|
- cy.getByTestid('grw-sidebar-content-tags').should('be.visible');
|
|
|
- cy.getByTestid('grw-tags-list').should('be.visible');
|
|
|
- cy.getByTestid('grw-tags-list').contains('You have no tag, You can set tags on pages');
|
|
|
+ cy.waitUntilSpinnerDisappear();
|
|
|
+
|
|
|
+ const text = 'You have no tag, You can set tags on pages'
|
|
|
+
|
|
|
+ cy.getByTestid('grw-sidebar-content-tags').within(() => {
|
|
|
+ cy.getByTestid('grw-tags-list').should('be.visible');
|
|
|
+ cy.getByTestid('grw-tags-list').contains(text);
|
|
|
+ })
|
|
|
+
|
|
|
+ cy.getByTestid('tags-page').within(() => {
|
|
|
+ cy.getByTestid('grw-tags-list').should('be.visible');
|
|
|
+ cy.getByTestid('grw-tags-list').contains(text);
|
|
|
+ });
|
|
|
|
|
|
- cy.getByTestid('tags-page').should('be.visible');
|
|
|
cy.screenshot(`${ssPrefix}-tags`);
|
|
|
});
|
|
|
|