Skip to content

Commit

Permalink
Remove parallel execution
Browse files Browse the repository at this point in the history
  • Loading branch information
mika-robots committed Oct 12, 2023
1 parent 38165ee commit 4856b05
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cypress_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
headed: true
browser: chrome
record: true
parallel: true
parallel: false
group: "UI - Chrome"

- name: Archive backend logs
Expand Down
20 changes: 10 additions & 10 deletions packages/end-to-end/cypress/e2e/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ describe('Tasks', () => {

after(() => {});

it('CheckTasksNavigation', () => {
// Add a crop variety
cy.get('[data-cy=navbar-hamburger]').should('exist').click();
cy.contains(translation['SLIDE_MENU']['TASKS']).should('exist').click();
cy.contains(translation['TASK']['ADD_TASK']).should('exist').and('not.be.disabled');
cy.visit('/');
// it('CheckTasksNavigation', () => {
// // Add a crop variety
// cy.get('[data-cy=navbar-hamburger]').should('exist').click();
// cy.contains(translation['SLIDE_MENU']['TASKS']).should('exist').click();
// cy.contains(translation['TASK']['ADD_TASK']).should('exist').and('not.be.disabled');
// cy.visit('/');

cy.get('[data-cy=home-taskButton]').should('exist').and('not.be.disabled').click();
// cy.get('[data-cy=home-taskButton]').should('exist').and('not.be.disabled').click();

cy.contains(translation['TASK']['ADD_TASK']).should('exist').and('not.be.disabled');
cy.visit('/');
});
// cy.contains(translation['TASK']['ADD_TASK']).should('exist').and('not.be.disabled');
// cy.visit('/');
// });

it('CreateCleanTask', () => {
cy.get('[data-cy=navbar-hamburger]').should('exist').click();
Expand Down
14 changes: 12 additions & 2 deletions packages/end-to-end/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ Cypress.Commands.add('createFirstLocation', () => {
cy.get('[data-cy=spotlight-next]').should('exist').and('not.be.disabled').click();
cy.get('[data-cy=map-addFeature]').should('exist').and('not.be.disabled').click();

// Find the 5th + which is a field
cy.contains(':nth-child(5)', '+').click();
// Find the 6th + which is a field
cy.contains(':nth-child(6)', '+').click();

cy.get('[data-cy="map-selection"]').should('be.visible');
cy.get('[data-cy=mapTutorial-continue]').should('exist').and('not.be.disabled').click();
Expand Down Expand Up @@ -189,6 +189,16 @@ Cypress.Commands.add('createFirstLocation', () => {
cy.get('div[data-cy="snackBar"]').find('[class*="button"]:first').click();

cy.waitForReact();

// Confirm that location exists
cy.visit('/');
cy.get('[data-cy=home-farmButton]').should('exist').and('not.be.disabled').click({ force: true });
cy.get('[data-cy=navbar-option]')
.eq(1)
.should('exist')
.and('not.be.disabled')
.click({ force: true });
cy.contains('First Field').should('be.visible');
});

Cypress.Commands.add('acceptSlideMenuSpotlights', (crop_menu_name) => {
Expand Down

0 comments on commit 4856b05

Please sign in to comment.