Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
261 changes: 0 additions & 261 deletions e2e/tests/adminManagesLocalAuthorities_test.js

This file was deleted.

15 changes: 4 additions & 11 deletions playwright-e2e/pages/sign-in.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { BasePage } from "./base-page";

export class SignInPage extends BasePage {
readonly page: Page;
readonly url: string;
readonly mourl: string;
readonly emailInputLocator: Locator;
readonly passwordInputLocator: Locator;
Expand All @@ -18,7 +17,6 @@ export class SignInPage extends BasePage {
public constructor(page: Page) {
super(page);
this.page = page;
this.url = urlConfig.frontEndBaseURL;
this.mourl = urlConfig.manageOrgURL;
this.emailInputLocator = page.getByLabel("Email address");
this.passwordInputLocator = page.getByLabel("Password");
Expand All @@ -30,13 +28,12 @@ export class SignInPage extends BasePage {
this.hideMessage = page.getByText('Hide message');
}

async visit(url: string = this.url) {
await this.page.goto(url);

async visit() {
await this.page.goto(`${urlConfig.frontEndBaseURL}`);
}

async navigateTOCaseDetails(caseNumber: string) {
await this.page.goto(`${urlConfig.frontEndBaseURL}/case-details/${caseNumber}`);
async navigateToCaseDetails(caseNumber: string) {
await this.page.goto(`${urlConfig.frontEndBaseURL}/cases/case-details/PUBLICLAW/CARE_SUPERVISION_EPO_QM_TEST1/${caseNumber}#Summary`);
}

async login(email: string, password: string) {
Expand Down Expand Up @@ -65,8 +62,4 @@ export class SignInPage extends BasePage {
await this.signoutButton.click();
await expect(this.emailInputLocator).toBeVisible();
}

async isLoggedInMO() {
await expect(this.page.getByRole('heading', { name: 'Organisation', exact: true })).toBeVisible();
}
}
4 changes: 2 additions & 2 deletions playwright-e2e/tests/Manage-CCD-TTL.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test.describe('Manage the Retain and Dispose Config', () => {
await updateCase(caseName, caseNumber, caseData);
await signInPage.visit();
await signInPage.login(CTSCTeamLeadUser.email, CTSCTeamLeadUser.password);
await signInPage.navigateTOCaseDetails(caseNumber);
await signInPage.navigateToCaseDetails(caseNumber);
await manageTTL.gotoNextStep('Manage Case TTL');
await manageTTL.suspendTTL();
await manageTTL.clickContinue();
Expand All @@ -31,7 +31,7 @@ test.describe('Manage the Retain and Dispose Config', () => {
await updateCase(caseName, caseNumber, caseData);
await signInPage.visit();
await signInPage.login(CTSCTeamLeadUser.email, CTSCTeamLeadUser.password);
await signInPage.navigateTOCaseDetails(caseNumber);
await signInPage.navigateToCaseDetails(caseNumber);
await manageTTL.gotoNextStep('Manage Case TTL')
await manageTTL.overrideSystemTTL();
await manageTTL.clickContinue();
Expand Down
Loading