Skip to content

Commit

Permalink
refactor: update e2e test naming
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay committed Nov 16, 2023
1 parent 9bcb2d3 commit 8e37dd8
Show file tree
Hide file tree
Showing 77 changed files with 34 additions and 34 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const saveAndExpect = (expected) => {
Given('two unqueued jobs exist', () => {
cy.intercept(
{ pathname: /scheduler\/queueable$/ },
{ fixture: 'add-sequence/two-unqueued-jobs' }
{ fixture: 'add-queue/two-unqueued-jobs' }
)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps'
Given('a single user job exists', () => {
cy.intercept(
{ pathname: /jobConfigurations\/lnWRZN67iDU$/ },
{ fixture: 'edit-route/single-user-job' }
{ fixture: 'edit-job/single-user-job' }
)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps'
Given('a single cron scheduled user job exists', () => {
cy.intercept(
{ pathname: /jobConfigurations\/lnWRZN67iDU$/ },
{ fixture: 'edit-route/single-cron-user-job' }
{ fixture: 'edit-job/single-cron-user-job' }
)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps'
Given('a single user job exists', () => {
cy.intercept(
{ pathname: /jobConfigurations\/lnWRZN67iDU$/ },
{ fixture: 'edit-route/single-user-job' }
{ fixture: 'edit-job/single-user-job' }
)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Given, Then } from 'cypress-cucumber-preprocessor/steps'
Given('a single user job exists', () => {
cy.intercept(
{ pathname: /jobConfigurations\/lnWRZN67iDU$/ },
{ fixture: 'edit-route/single-user-job' }
{ fixture: 'edit-job/single-user-job' }
)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const saveAndExpect = (expected) => {
Given('a single user job exists', () => {
cy.intercept(
{ pathname: /jobConfigurations\/lnWRZN67iDU$/ },
{ fixture: 'edit-route/single-user-job' }
{ fixture: 'edit-job/single-user-job' }
)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const saveAndExpect = (expected) => {
Given('a single user job with parameters exists', () => {
cy.intercept(
{ pathname: /jobConfigurations\/lnWRZN67iDU$/ },
{ fixture: 'edit-route/single-user-job-with-params' }
{ fixture: 'edit-job/single-user-job-with-params' }
)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const infoHref =
Given('a single user job exists', () => {
cy.intercept(
{ pathname: /jobConfigurations\/lnWRZN67iDU$/ },
{ fixture: 'edit-route/single-user-job' }
{ fixture: 'edit-job/single-user-job' }
)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps'
Given('a sequence exists', () => {
cy.intercept(
{ pathname: /scheduler$/ },
{ fixture: 'edit-sequence/schedule-two-unqueued-jobs' }
{ fixture: 'edit-queue/schedule-two-unqueued-jobs' }
)

cy.intercept(
{ pathname: /scheduler\/queueable$/ },
{ fixture: 'edit-sequence/queueable-two-unqueued-jobs' }
{ fixture: 'edit-queue/queueable-two-unqueued-jobs' }
)

cy.intercept(
{ pathname: /scheduler\/queues\/one$/ },
{ fixture: 'edit-sequence/queue-two-unqueued-jobs' }
{ fixture: 'edit-queue/queue-two-unqueued-jobs' }
)

cy.intercept(
{ pathname: /jobConfigurations$/ },
{ fixture: 'edit-sequence/jobs-two-unqueued-jobs' }
{ fixture: 'edit-queue/jobs-two-unqueued-jobs' }
)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@ const saveAndExpect = (name, expected) => {
Given('a sequence with two unqueued jobs exists', () => {
cy.intercept(
{ pathname: /scheduler$/ },
{ fixture: 'edit-sequence/schedule-two-unqueued-jobs' }
{ fixture: 'edit-queue/schedule-two-unqueued-jobs' }
)

cy.intercept(
{ pathname: /scheduler\/queueable$/ },
{ fixture: 'edit-sequence/queueable-two-unqueued-jobs' }
{ fixture: 'edit-queue/queueable-two-unqueued-jobs' }
)

cy.intercept(
{ pathname: /scheduler\/queues\/one$/ },
{ fixture: 'edit-sequence/queue-two-unqueued-jobs' }
{ fixture: 'edit-queue/queue-two-unqueued-jobs' }
)

cy.intercept(
{ pathname: /jobConfigurations$/ },
{ fixture: 'edit-sequence/jobs-two-unqueued-jobs' }
{ fixture: 'edit-queue/jobs-two-unqueued-jobs' }
)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps'
Given('some user jobs exist', () => {
cy.intercept(
{ pathname: /scheduler$/ },
{ fixture: 'list-route/some-user-jobs' }
{ fixture: 'list/some-user-jobs' }
)
})

Given('some user and system jobs exist', () => {
cy.intercept(
{ pathname: /scheduler$/ },
{ fixture: 'list-route/some-user-and-system-jobs' }
{ fixture: 'list/some-user-and-system-jobs' }
)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps'
Given('some user jobs exist', () => {
cy.intercept(
{ pathname: /scheduler$/ },
{ fixture: 'list-route/some-user-jobs' }
{ fixture: 'list/some-user-jobs' }
)
})

Given('some user and system jobs exist', () => {
cy.intercept(
{ pathname: /scheduler$/ },
{ fixture: 'list-route/some-user-and-system-jobs' }
{ fixture: 'list/some-user-and-system-jobs' }
)
})

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps'
Given('a disabled user job exists', () => {
cy.intercept(
{ pathname: /scheduler$/ },
{ fixture: 'list-route/disabled-user-job' }
{ fixture: 'list/disabled-user-job' }
)
})

Given('an enabled user job exists', () => {
cy.intercept(
{ pathname: /scheduler$/ },
{ fixture: 'list-route/enabled-user-job' }
{ fixture: 'list/enabled-user-job' }
)
})

Expand All @@ -30,7 +30,7 @@ When('the user clicks the enabled job toggle switch', () => {
)
cy.intercept(
{ pathname: /scheduler$/ },
{ fixture: 'list-route/disabled-user-job' }
{ fixture: 'list/disabled-user-job' }
)

cy.findByRole('switch', { name: 'Toggle job' }).click()
Expand All @@ -43,7 +43,7 @@ When('the user clicks the disabled job toggle switch', () => {
)
cy.intercept(
{ pathname: /scheduler$/ },
{ fixture: 'list-route/enabled-user-job' }
{ fixture: 'list/enabled-user-job' }
)

cy.findByRole('switch', { name: 'Toggle job' }).click()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Given, Then } from 'cypress-cucumber-preprocessor/steps'

Given('there are no user jobs', () => {
cy.intercept({ pathname: /scheduler$/ }, { fixture: 'list-route/no-jobs' })
cy.intercept({ pathname: /scheduler$/ }, { fixture: 'list/no-jobs' })
})

Given('some user jobs exist', () => {
cy.intercept(
{ pathname: /scheduler$/ },
{ fixture: 'list-route/some-user-jobs' }
{ fixture: 'list/some-user-jobs' }
)
})

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps'
Given('a single system job exists', () => {
cy.intercept(
{ pathname: /scheduler$/ },
{ fixture: 'list-route/single-system-job' }
{ fixture: 'list/single-system-job' }
)

cy.intercept(
{ pathname: /jobConfigurations\/sHMedQF7VYa$/ },
{ fixture: 'list-route/single-system-job-job-configurations' }
{ fixture: 'list/single-system-job-job-configurations' }
)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps'
Given('a single user job exists', () => {
cy.intercept(
{ pathname: /scheduler$/ },
{ fixture: 'list-route/single-user-job' }
{ fixture: 'list/single-user-job' }
)

cy.intercept(
{ pathname: /jobConfigurations\/lnWRZN67iDU$/ },
{ fixture: 'list-route/single-user-job-job-configurations' }
{ fixture: 'list/single-user-job-job-configurations' }
)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Given, Then } from 'cypress-cucumber-preprocessor/steps'
Given('an unauthorized user navigates to the app', () => {
cy.intercept(
{ pathname: /me$/ },
{ fixture: 'not-authorized-route/unauthorized-user' }
{ fixture: 'not-authorized/unauthorized-user' }
)

cy.visit('/')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Given, Then } from 'cypress-cucumber-preprocessor/steps'
Given('a single system job exists', () => {
cy.intercept(
{ pathname: /jobConfigurations\/sHMedQF7VYa$/ },
{ fixture: 'view-route/single-system-job' }
{ fixture: 'view-job/single-system-job' }
)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Given, Then } from 'cypress-cucumber-preprocessor/steps'
Given('a single system job exists', () => {
cy.intercept(
{ pathname: /jobConfigurations\/sHMedQF7VYa$/ },
{ fixture: 'view-route/single-system-job' }
{ fixture: 'view-job/single-system-job' }
)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const infoHref =
Given('a single system job exists', () => {
cy.intercept(
{ pathname: /jobConfigurations\/sHMedQF7VYa$/ },
{ fixture: 'view-route/single-system-job' }
{ fixture: 'view-job/single-system-job' }
)
})

Expand Down

0 comments on commit 8e37dd8

Please sign in to comment.