Skip to content

Commit

Permalink
[sc-8060] Adapt e2e tests to the new dashboard home page (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpellerin42 authored Dec 19, 2023
1 parent 0ae9eca commit 3699f4c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/0-user/auth.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('User Login', () => {
cy.get(`[data-cy="password"] input[type="password"]`).type(`${user.password}{enter}`,{ log: false });
cy.get('a').contains('permanent').click();
cy.location('pathname').should('equal', '/at/testing/europe-1/permanent');
cy.get(`.knowledge-box-home .endpoint-container`).should('contain', 'NucliaDB API endpoint')
cy.get(`.kb-details .title-xxs`).should('contain', 'NucliaDB API endpoint')

// logout
cy.get('[data-cy="user-menu"]').click();
Expand Down
1 change: 0 additions & 1 deletion cypress/e2e/1-basic/kb-creation-flow.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ describe('KB creation flow', () => {
cy.get(`[data-cy="${KB_NAME}-link"]`).click();
cy.location('pathname').should('equal', `/at/testing/europe-1/${KB_NAME}`);
cy.get('app-kb-switch').should('contain', KB_NAME);
cy.get('.state-container .title-s').should('contain', 'private');
});

it('should allow to delete the kb', () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/1-basic/resources.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('Resources', () => {

it('should display status', () => {
cy.login();
cy.get('.total-resources').should('contain', '2');
cy.get('.kb-metrics .title-m:first-of-type').should('contain', '2');
});

describe('Resources list', () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function login(kbName = 'permanent') {
}
});
cy.contains(kbName).click();
cy.get(`.knowledge-box-home .endpoint-container`).should('contain', 'NucliaDB API endpoint')
cy.get(`.kb-details .title-xxs`).should('contain', 'NucliaDB API endpoint')
}

// -- This is a parent command --
Expand Down

0 comments on commit 3699f4c

Please sign in to comment.