Skip to content

Commit

Permalink
debug usecase test
Browse files Browse the repository at this point in the history
  • Loading branch information
framitdavid committed Feb 6, 2024
1 parent 17175c6 commit 547c3cf
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions frontend/testing/cypress/src/integration/usecase/usecase.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,34 +42,34 @@ context(
// About app page
overview.getHeader(Cypress.env('deployAppName')).should('be.visible');

// Forms editor
header.getCreateLink().click();
designer.getAddPageButton().click();
cy.wait('@postLayoutSettings').its('response.statusCode').should('eq', 200);
cy.wait('@getLayoutSettings').its('response.statusCode').should('eq', 200);
designer.getToolbarItemByText(texts['ux_editor.component_title.Input']).should('be.visible');

// Text editor
header.getTextEditorLink().should('be.visible').click();
textEditor.getNewTextButton().should('be.visible');

// Preview
header.getPreviewButton().should('be.visible').click();
cy.visit(`/preview/${Cypress.env('orgUserName')}/${Cypress.env('deployAppName')}`);
preview.getBackToEditorButton().should('be.visible').click();

// Profile
header.getProfileIcon().should('be.visible').click();

// Repos
header
.getOpenRepoLink()
.should('be.visible')
.invoke('attr', 'href')
.then((href) => {
cy.visit(href);
gitea.getRepositoryHeader().should('be.visible');
});
// // Forms editor
// header.getCreateLink().click();
// designer.getAddPageButton().click();
// cy.wait('@postLayoutSettings').its('response.statusCode').should('eq', 200);
// cy.wait('@getLayoutSettings').its('response.statusCode').should('eq', 200);
// designer.getToolbarItemByText(texts['ux_editor.component_title.Input']).should('be.visible');
//
// // Text editor
// header.getTextEditorLink().should('be.visible').click();
// textEditor.getNewTextButton().should('be.visible');
//
// // Preview
// header.getPreviewButton().should('be.visible').click();
// cy.visit(`/preview/${Cypress.env('orgUserName')}/${Cypress.env('deployAppName')}`);
// preview.getBackToEditorButton().should('be.visible').click();
//
// // Profile
// header.getProfileIcon().should('be.visible').click();
//
// // Repos
// header
// .getOpenRepoLink()
// .should('be.visible')
// .invoke('attr', 'href')
// .then((href) => {
// cy.visit(href);
// gitea.getRepositoryHeader().should('be.visible');
// });
});

// it('Gitea connection - Pull changes', () => {
Expand Down

0 comments on commit 547c3cf

Please sign in to comment.