Skip to content

Commit

Permalink
Fix wrong test name and remove redundant page visits from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomTannenbaum committed Nov 15, 2024
1 parent af2f83f commit 6091fae
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion frontend/cypress/e2e/checkIn.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ describe('OKR Check-in e2e tests', () => {
op = new CyOverviewPage();
keyresultDetailPage = new KeyresultDetailPage();
cy.loginAsUser(users.gl);
op.visitCurrentQuarter();
onlyOn('chrome');
});

Expand Down
1 change: 0 additions & 1 deletion frontend/cypress/e2e/crud.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ describe('CRUD operations', () => {
beforeEach(() => {
op = new CyOverviewPage();
cy.loginAsUser(users.gl);
cy.visit('/?quarter=2');
});

[
Expand Down
3 changes: 1 addition & 2 deletions frontend/cypress/e2e/duplicated-scoring.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ describe('e2e test for scoring adjustment on objective duplicate', () => {
op = new CyOverviewPage();
keyresultDetailPage = new KeyresultDetailPage();
cy.loginAsUser(users.gl);
op.visitCurrentQuarter();
onlyOn('chrome');
});

it('Create ordinal checkin and validate value of scoring component', () => {
it('Duplicate ordinal checkin and validate value of scoring component', () => {
op.addKeyresult('Puzzle ITC', 'Wir wollen die Kundenzufriedenheit steigern')
.fillKeyresultTitle('stretch keyresult for testing')
.withOrdinalValues('Ex. val', 'Ex. val', 'Ex. val')
Expand Down
1 change: 0 additions & 1 deletion frontend/cypress/e2e/keyresult.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ describe('OKR Overview', () => {
op = new CyOverviewPage();
keyresultDetailPage = new KeyresultDetailPage();
cy.loginAsUser(users.gl);
cy.visit('/?quarter=2');
});

it('Create new metric KeyResult', () => {
Expand Down
1 change: 0 additions & 1 deletion frontend/cypress/e2e/objective-backlog.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ describe('OKR Objective Backlog e2e tests', () => {
beforeEach(() => {
op = new CyOverviewPage();
cy.loginAsUser(users.gl);
op.visitCurrentQuarter();
});

it(`Create Objective in backlog quarter should not have save button`, () => {
Expand Down
1 change: 0 additions & 1 deletion frontend/cypress/e2e/objective.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ describe('OKR Objective e2e tests', () => {
beforeEach(() => {
op = new CyOverviewPage();
cy.loginAsUser(users.gl);
op.visitCurrentQuarter();
});

describe('tests via click', () => {
Expand Down
1 change: 0 additions & 1 deletion frontend/cypress/e2e/routing.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import TeammanagementPage from '../support/helper/pom-helper/pages/teammanagemen
describe('Routing', () => {
beforeEach(() => {
cy.loginAsUser(users.gl);
cy.visit('');
});

describe('Route via url', () => {
Expand Down
1 change: 0 additions & 1 deletion frontend/cypress/e2e/scoring.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ describe('Scoring component e2e tests', () => {
keyresultDetailPage = new KeyresultDetailPage();
cy.loginAsUser(users.gl);
onlyOn('chrome');
cy.visit('/?quarter=2');
});

[
Expand Down
1 change: 0 additions & 1 deletion frontend/cypress/e2e/tab.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ describe('Tab workflow tests', () => {
onlyOn('chrome');
cy.loginAsUser(users.gl);
overviewPage = new CyOverviewPage();
overviewPage.visitCurrentQuarter();
overviewPage.elements.logo().parent().focus();
});

Expand Down

0 comments on commit 6091fae

Please sign in to comment.