Skip to content

Commit

Permalink
Remove auth automated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-elliott-nhsd committed Oct 4, 2024
1 parent 2326b7e commit c4f0b53
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 42 deletions.
3 changes: 0 additions & 3 deletions src/__tests__/app/auth/signout/page.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ jest.mock('@aws-amplify/ui-react', () => ({
},
withAuthenticator: (Component: ComponentType) => Component,
}));
jest.mock('@molecules/Redirect/Redirect', () => ({
Redirect: () => <p>redirect</p>,
}));

test('MockSignoutPage', async () => {
const container = render(<MockSignoutPage />);
Expand Down
9 changes: 0 additions & 9 deletions tests/test-team/pages/template-mgmt-base-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ export class TemplateMgmtBasePage {

readonly notifyBannerLink: Locator;

readonly loginLink: Locator;

readonly goBackLink: Locator;

readonly pageHeader: Locator;
Expand All @@ -18,9 +16,6 @@ export class TemplateMgmtBasePage {
this.notifyBannerLink = page.locator(
'[class="nhsuk-header__link nhsuk-header__link--service"]'
);
this.loginLink = page
.locator('[class="nhsuk-account__login--link"]')
.and(page.getByText('Log in'));
this.goBackLink = page
.locator('[class="nhsuk-back-link__link"]')
.and(page.getByText('Go back'));
Expand All @@ -41,10 +36,6 @@ export class TemplateMgmtBasePage {
await this.notifyBannerLink.click();
}

async clickLoginLink() {
await this.loginLink.click();
}

async clickContinueButton() {
await this.continueButton.click();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,6 @@ test.describe('Choose Template Type Page', () => {
);
});

test(
'should navigate to login page when "log in" link clicked',
{ tag: '@Update/CCM-4889' },
async ({ page, baseURL }) => {
const chooseTemplatePage = new TemplateMgmtChoosePage(page);

await chooseTemplatePage.navigateToChooseTemplatePage(
emptySessionData.id
);
await chooseTemplatePage.clickLoginLink();

await expect(page).toHaveURL(`${baseURL}/templates`);
}
);

test('should display correct radio button options', async ({ page }) => {
const chooseTemplatePage = new TemplateMgmtChoosePage(page);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,6 @@ test.describe('Start Page', () => {
);
});

test(
'should navigate to login page when "log in" link clicked',
{ tag: '@Update/CCM-4889' },
async ({ page, baseURL }) => {
const startPage = new TemplateMgmtStartPage(page);

await startPage.navigateToStartPage();
await startPage.clickLoginLink();

await expect(page).toHaveURL(`${baseURL}/templates`);

expect(await page.locator('h1').textContent()).toBe('404');
}
);

test('should not display "Go Back" link on page', async ({ page }) => {
const startPage = new TemplateMgmtStartPage(page);

Expand Down

0 comments on commit c4f0b53

Please sign in to comment.