|
|
@@ -27,10 +27,11 @@ context('Access to page by guest', () => {
|
|
|
// eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
cy.wait(2000); // wait for 2 seconds for renderer
|
|
|
|
|
|
+ cy.get('.wiki > p > span').within(() => {
|
|
|
+ cy.get('.math').should('be.visible');
|
|
|
+ }).screenshot(`${ssPrefix}-sandbox-math`);
|
|
|
// cy.get('.math').should('be.visible');
|
|
|
// cy.get('.katex-html').should('be.visible');
|
|
|
-
|
|
|
- cy.screenshot(`${ssPrefix}-sandbox-math`);
|
|
|
});
|
|
|
|
|
|
it('/Sandbox with edit is successfully loaded', () => {
|
|
|
@@ -68,13 +69,12 @@ context('Access to special pages by guest', () => {
|
|
|
it('/trash is successfully loaded', () => {
|
|
|
cy.visit('/trash', { });
|
|
|
cy.collapseSidebar(true, true);
|
|
|
- // cy.getByTestid('trash-page-list').should('be.visible');
|
|
|
+ cy.getByTestid('trash-page-list').should('be.visible');
|
|
|
cy.screenshot(`${ssPrefix}-trash`);
|
|
|
});
|
|
|
|
|
|
it('/tags is successfully loaded', () => {
|
|
|
cy.visit('/tags');
|
|
|
- cy.getByTestid('tags-page').should('be.visible');
|
|
|
|
|
|
// open sidebar
|
|
|
cy.collapseSidebar(false);
|
|
|
@@ -84,6 +84,7 @@ context('Access to special pages by guest', () => {
|
|
|
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.getByTestid('tags-page').should('be.visible');
|
|
|
cy.screenshot(`${ssPrefix}-tags`);
|
|
|
});
|
|
|
|