Skip to content

Commit

Permalink
DTSCCI-1035 Setup Folder Structure For Page Objects (#5006)
Browse files Browse the repository at this point in the history
* add exui event mixin for page objects in exui

* add ccd-case-data model

* add case filter page object

* add setup for UI page objects and UI Step objects

---------

Co-authored-by: rishikrsharma <[email protected]>
  • Loading branch information
kdaHMCTS and rishikrsharma authored Oct 30, 2024
1 parent 75969df commit b50f059
Show file tree
Hide file tree
Showing 40 changed files with 856 additions and 62 deletions.
2 changes: 1 addition & 1 deletion playwright-e2e/base/base-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export default abstract class BasePage {
}

@BoxedDetailedStep(classKey, 'text')
protected async expectSubHeading(
protected async expectSubheading(
text: string,
options: { message?: string; timeout?: number } = {},
) {
Expand Down
2 changes: 1 addition & 1 deletion playwright-e2e/base/base-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { APIRequestContext, APIResponse } from 'playwright-core';
import RequestOptions from '../models/api/request-options';
import { expect } from '../playwright-fixtures';
import { BoxedDetailedStep } from '../decorators/test-steps';
import ResponseDataType from '../enums/api/response-data-type';
import ResponseDataType from '../enums/response-data-type';
import * as responseOptions from '../models/api/response-options';

const classKey = 'BaseRequest';
Expand Down
16 changes: 16 additions & 0 deletions playwright-e2e/enums/case-events/case-events-api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
enum CaseEventsAPI {
CREATE_CLAIM = 'CREATE_CLAIM',
CREATE_CLAIM_SPEC = 'CREATE_CLAIM_SPEC',
MANAGE_CONTACT_INFORMATION = 'MANAGE_CONTACT_INFORMATION',
ADD_OR_AMEND_CLAIM_DOCUMENTS = 'ADD_OR_AMEND_CLAIM_DOCUMENTS',
NOTIFY_DEFENDANT_OF_CLAIM = 'NOTIFY_DEFENDANT_OF_CLAIM',
NOTIFY_DEFENDANT_OF_CLAIM_DETAILS = 'NOTIFY_DEFENDANT_OF_CLAIM_DETAILS',
AMEND_PARTY_DETAILS = 'AMEND_PARTY_DETAILS',
ACKNOWLEDGE_CLAIM = 'ACKNOWLEDGE_CLAIM',
INFORM_AGREED_EXTENSION_DATE = 'INFORM_AGREED_EXTENSION_DATE',
DEFENDANT_RESPONSE = 'DEFENDANT_RESPONSE',
CLAIMANT_RESPONSE = 'CLAIMANT_RESPONSE',
INITIATE_GENERAL_APPLICATION = 'INITIATE_GENERAL_APPLICATION',
}

export default CaseEventsAPI;
13 changes: 13 additions & 0 deletions playwright-e2e/enums/case-events/case-events-ui.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
enum CaseEventsUI {
CREATE_CLAIM = 'Create claim - Unspecified',
CREATE_CLAIM_SPEC = 'Create claim - Specified',
NOTIFY_DEFENDANT_OF_CLAIM = 'Notify claim',
NOTIFY_DEFENDANT_OF_CLAIM_DETAILS = 'Notify claim details',
ACKNOWLEDGE_CLAIM = 'Acknowledge claim',
INFORM_AGREED_EXTENSION_DATE = 'Inform agreed 28 day extension',
DEFENDANT_RESPONSE = 'Respond to claim',
CLAIMANT_RESPONSE = 'View and respond to defence',
INITIATE_GENERAL_APPLICATION = 'Make an application',
}

export default CaseEventsUI;
7 changes: 0 additions & 7 deletions playwright-e2e/enums/events/case-events.ts

This file was deleted.

File renamed without changes.
5 changes: 0 additions & 5 deletions playwright-e2e/models/case-data/ccd-case-data.ts

This file was deleted.

Loading

0 comments on commit b50f059

Please sign in to comment.