Skip to content

Commit

Permalink
fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
codemist committed Nov 25, 2024
1 parent 38d03e1 commit cbb550b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default async function RemovalUnderMaintenance() {
(await getScanResultsWithBrokerUnderMaintenance(profileId)) ?? null;
const getNextStep = getNextGuidedStep(data, "DataBrokerManualRemoval");

if (scansWithRemovalUnderMaintenance === null) {
if (!scansWithRemovalUnderMaintenance) {
redirect(getNextStep.href);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { BreachIndexView, Props as ViewProps } from "./BreachIndexView";
import { getL10n } from "../../../../functions/l10n/storybookAndJest";
import { PublicShell } from "../PublicShell";
import { createRandomHibpListing } from "../../../../../apiMocks/mockData";
import { HibpLikeDbBreach } from "../../../../../utils/hibp";

const meta: Meta<typeof BreachIndexView> = {
title: "Pages/Public/Breach index",
Expand All @@ -25,11 +24,8 @@ type Story = StoryObj<typeof BreachIndexView>;
export const BreachIndexViewStory: Story = {
name: "Breach index",
args: {
allBreaches: faker.helpers.multiple(
createRandomHibpListing as (v: unknown, index: number) => unknown,
{
count: { min: 7, max: 200 },
},
) as unknown as HibpLikeDbBreach[],
allBreaches: faker.helpers.multiple(() => createRandomHibpListing(), {
count: { min: 7, max: 200 },
}),
},
};
2 changes: 1 addition & 1 deletion src/e2e/pages/dashBoardPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class DashboardPage {
'//button[starts-with(@class, "ExposureCard_chevron")]',
);
this.fixExposureButton = page.getByRole("link", {
name: "Fix all exposures",
name: "Resolve exposures",
});
this.removeExposuresManually = page.getByRole("link", {
name: "I’ll remove them manually",
Expand Down

0 comments on commit cbb550b

Please sign in to comment.