Skip to content

Commit

Permalink
Merge branch 'master' into bugfix/prefix-filters
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 authored Nov 11, 2023
2 parents ab27711 + 4931ea4 commit e76617b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
@update:search="getFilteredData()"
chips
closable-chips
clearable
item-title="name"
item-value="id"
hide-selected
Expand Down
2 changes: 1 addition & 1 deletion tests/static/e2e/pages/report-incident-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class ReportIncidentPage {
}

async resetPageView() {
await this.pageBorder.click()
// await this.pageBorder.click()
}

async pageObjectModel(
Expand Down
14 changes: 7 additions & 7 deletions tests/static/e2e/report-submission.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ test.describe("Authenticated Dispatch App", () => {

await reportIncidentPage.reportIncident(title, description, project, type, priority, tags)
// Soft validate that we get redirected to the incident submission form
await expect
.soft(page)
.toHaveURL(
encodeURI(
`./default/incidents/report?project=${project}&incident_priority=${priority}&incident_type=${type}&title=${title}&description=${description}` + tags.map((tag) => "&tag=" + tag).join("")
)
)
let expectedURL = encodeURI(
`/default/incidents/report?project=${project}&incident_priority=${priority}&incident_type=${type}&title=${title}&description=${description}` + tags.map((tag) => "&tag=" + tag).join("")
)
// replace + with %20
let pageURL = page.url().replace(/\+/g, "%20")

await expect.soft(pageURL).toContain(expectedURL)

// Soft validate that we recieve the report form.
await expect
Expand Down

0 comments on commit e76617b

Please sign in to comment.