-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
E2E: Add tests for copying a Stop(Place)
- Loading branch information
1 parent
4ef138a
commit feeb9f9
Showing
11 changed files
with
272 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
cypress/pageObjects/stop-registry/stop-details/CreateCopyModal.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { StopVersionForm } from './StopVersionForm'; | ||
|
||
export class CreateCopyModal { | ||
form = new StopVersionForm(); | ||
|
||
modal() { | ||
return cy.getByTestId('CopyStopModal::modal'); | ||
} | ||
|
||
names() { | ||
return cy.getByTestId('CopyStopModal::names'); | ||
} | ||
|
||
validity() { | ||
return cy.getByTestId('CopyStopModal::validity'); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
cypress/pageObjects/stop-registry/stop-details/StopVersionForm.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { PriorityForm } from '../../PriorityForm'; | ||
import { ValidityPeriodForm } from '../../ValidityPeriodForm'; | ||
|
||
export class StopVersionForm { | ||
priority = new PriorityForm(); | ||
|
||
validity = new ValidityPeriodForm(); | ||
|
||
form() { | ||
return cy.getByTestId('StopVersionForm::form'); | ||
} | ||
|
||
versionName() { | ||
return cy.getByTestId('StopVersionForm::versionName'); | ||
} | ||
|
||
versionDescription() { | ||
return cy.getByTestId('StopVersionForm::versionDescription'); | ||
} | ||
|
||
submitButton() { | ||
return cy.getByTestId('StopVersionForm::submitButton'); | ||
} | ||
|
||
cancelButton() { | ||
return cy.getByTestId('StopVersionForm::cancelButton'); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
cypress/pageObjects/stop-registry/stop-details/TitleRow.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
export class TitleRow { | ||
label() { | ||
return cy.getByTestId('StopTitleRow::label'); | ||
} | ||
|
||
names() { | ||
return cy.getByTestId('StopTitleRow::names'); | ||
} | ||
|
||
editValidityButton() { | ||
return cy.getByTestId('StopTitleRow::editValidityButton'); | ||
} | ||
|
||
openOnMapButton() { | ||
return cy.getByTestId('StopTitleRow::StopTitleRow::openOnMapButton'); | ||
} | ||
|
||
actionsMenuButton() { | ||
return cy.getByTestId('StopTitleRow::extraActions::menu'); | ||
} | ||
|
||
actionsMenuCopyButton() { | ||
return cy.getByTestId('StopTitleRow::extraActions::copy'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.