Skip to content

Commit

Permalink
test: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fterra-encora committed Dec 4, 2024
1 parent 57cfe5c commit b5481b1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion frontend/cypress/e2e/pages/SubmissionReviewPage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ describe("Submission Review Page", () => {
cy.get("cds-actionable-notification")
.should("not.exist");

cy.get('.grouping-10 > :nth-child(2) > .title-group-01 > .label-01')
cy.get('.grouping-10 > :nth-child(2) > .title-group-01 > .label-02')
.should("contain", "Client number");

cy.get(".grouping-10 > :nth-child(2) > .body-compact-01")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ describe("BC Registered Staff Wizard Step", () => {
".read-only-box > cds-inline-notification#readOnlyNotification"
).should("exist");

cy.get(`.read-only-box > #legalType > .title-group-01 > .label-01`)
cy.get(`.read-only-box > #legalType > .title-group-01 > .label-02`)
.should("exist")
.and("have.text", "Type");

Expand All @@ -470,7 +470,7 @@ describe("BC Registered Staff Wizard Step", () => {
.and("have.text", scenario.type);

cy.get(
`.read-only-box > #registrationNumber > .title-group-01 > .label-01`
`.read-only-box > #registrationNumber > .title-group-01 > .label-02`
)
.should("exist")
.and("have.text", "Registration number");
Expand All @@ -493,7 +493,7 @@ describe("BC Registered Staff Wizard Step", () => {
//TODO: check the text and style maybe?!
}

cy.get(`.read-only-box > #goodStanding > .title-group-01 > .label-01`)
cy.get(`.read-only-box > #goodStanding > .title-group-01 > .label-02`)
.should("exist")
.and("have.text", "BC Registries standing");

Expand Down Expand Up @@ -577,17 +577,17 @@ describe("BC Registered Staff Wizard Step", () => {
".read-only-box > cds-inline-notification#readOnlyNotification"
).should("exist");

cy.get(".read-only-box > #legalType > .title-group-01 > .label-01")
cy.get(".read-only-box > #legalType > .title-group-01 > .label-02")
.should("exist")
.and("have.text", "Type");

cy.get(
".read-only-box > #registrationNumber > .title-group-01 > .label-01"
".read-only-box > #registrationNumber > .title-group-01 > .label-02"
)
.should("exist")
.and("have.text", "Registration number");

cy.get(".read-only-box > #goodStanding > .title-group-01 > .label-01")
cy.get(".read-only-box > #goodStanding > .title-group-01 > .label-02")
.should("exist")
.and("have.text", "BC Registries standing");

Expand All @@ -612,15 +612,15 @@ describe("BC Registered Staff Wizard Step", () => {
).should("not.exist");

cy.get(
".read-only-box > #legalType > .title-group-01 > .label-01"
".read-only-box > #legalType > .title-group-01 > .label-02"
).should("not.exist");

cy.get(
".read-only-box > #registrationNumber > .title-group-01 > .label-01"
".read-only-box > #registrationNumber > .title-group-01 > .label-02"
).should("not.exist");

cy.get(
".read-only-box > #goodStanding > .title-group-01 > .label-01"
".read-only-box > #goodStanding > .title-group-01 > .label-02"
).should("not.exist");

cy.get("#workSafeBCNumber").should("not.exist");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('ReadOnlyComponent.vue', () => {
const wrapper = mount(ReadOnlyComponent, {
props: { label: 'Test Label' }
});
expect(wrapper.find('.label-01').text()).toBe('Test Label');
expect(wrapper.find('.label-02').text()).toBe('Test Label');
});

it('renders default slot content', () => {
Expand Down

0 comments on commit b5481b1

Please sign in to comment.