Skip to content

Commit

Permalink
Refine tests: enable search within default/non-default teams
Browse files Browse the repository at this point in the history
  • Loading branch information
gruvix committed Jan 31, 2024
1 parent f61ba8d commit d3fbd9d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cypress/e2e/spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ describe('test the team editor page with the first team', () => {
cy.intercept('POST', LOGIN_PATH).as('login');
cy.get('#username').type(TEST_USER).get('#enter-page-button').click();
cy.wait('@login');
cy.get('.edit').first().click();
cy.get('#search-options-button').click();
cy.get('#search-options').contains('Default teams').click();
cy.get('.card').filter(':visible').find('.edit').first()
.click();
});

it('updates all team parameters with a random string', () => {
Expand All @@ -104,7 +107,7 @@ describe('test the team editor page with the first team', () => {
});
});

it('edits and then resets a team', () => {
it('edits and then resets a default team', () => {
const randomString = generateRandomString();
cy.get('#team-table .edit').first().click();
cy.get('#team-table input').first().type(randomString).get('#team-table .apply')
Expand Down Expand Up @@ -215,6 +218,8 @@ describe('test add team', () => {
cy.intercept('POST', LOGIN_PATH).as('login');
cy.get('#username').type(TEST_USER).get('#enter-page-button').click();
cy.wait('@login');
cy.get('#search-options-button').click();
cy.get('#search-options').contains('Custom teams').click();
cy.get('#add-team-button').click();
});

Expand Down

0 comments on commit d3fbd9d

Please sign in to comment.