Skip to content

Commit

Permalink
formatted w/ prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
NoWhere-2-Go committed Oct 7, 2023
1 parent a6b0eaf commit fa1156c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 23 deletions.
37 changes: 15 additions & 22 deletions cypress/e2e/create-plan.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@ describe('Plan creation flow', () => {
cy.dataTestId('plan-name-input').type(planName);
cy.dataTestId('major-autocomplete').type('Computer');
cy.contains('Computer Science')
.should('exist')
.click()
.then(() => {
cy.get('[data-testid=major-autocomplete]')
.invoke('text')
.as('major');
});

.should('exist')
.click()
.then(() => {
cy.get('[data-testid=major-autocomplete]').invoke('text').as('major');
});

// Create plan without upload transcript
cy.task('log', 'Creating plan...');
Expand Down Expand Up @@ -67,13 +64,11 @@ describe('Plan creation flow', () => {
cy.dataTestId('plan-name-input').type(planName);
cy.dataTestId('major-autocomplete').type('Computer');
cy.contains('Computer Science')
.should('exist')
.click()
.then(() => {
cy.get('[data-testid=major-autocomplete]')
.invoke('text')
.as('major');
});
.should('exist')
.click()
.then(() => {
cy.get('[data-testid=major-autocomplete]').invoke('text').as('major');
});

// Create plan with uploading transcript
cy.task('log', 'Creating plan...');
Expand Down Expand Up @@ -117,13 +112,11 @@ describe('Plan creation flow', () => {
cy.dataTestId('plan-name-input').type(planName);
cy.dataTestId('major-autocomplete').type('Computer');
cy.contains('Computer Science')
.should('exist')
.click()
.then(() => {
cy.get('[data-testid=major-autocomplete]')
.invoke('text')
.as('major');
});
.should('exist')
.click()
.then(() => {
cy.get('[data-testid=major-autocomplete]').invoke('text').as('major');
});

// Create template plan without upload transcript
cy.task('log', 'Creating plan...');
Expand Down
1 change: 0 additions & 1 deletion cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ Cypress.Commands.add('resetDbAndLogin', () => {
});
});
});

0 comments on commit fa1156c

Please sign in to comment.