-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3534: Cleaned up and applied coding standards
- Loading branch information
Showing
12 changed files
with
99 additions
and
321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"default": true, | ||
// https://github.com/DavidAnson/markdownlint/blob/main/doc/md013.md | ||
"line-length": { | ||
"line_length": 80, | ||
"code_blocks": false, | ||
"tables": false | ||
}, | ||
// https://github.com/DavidAnson/markdownlint/blob/main/doc/md024.md | ||
"no-duplicate-heading": { | ||
"siblings_only": true | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ test("Can authenticate", async ({ page }) => { | |
await page.getByRole("link", { name: "Sign out" }).click(); | ||
|
||
await expect( | ||
page.getByRole("link", { name: "Authenticate with MitID" }) | ||
page.getByRole("link", { name: "Authenticate with MitID" }), | ||
).toBeVisible(); | ||
}); | ||
|
||
|
@@ -31,7 +31,7 @@ test("Create proposal", async ({ page }) => { | |
await page.getByRole("button", { name: "Login" }).click(); | ||
|
||
await expect( | ||
page.getByText("You're currently authenticated as Anders And") | ||
page.getByText("You're currently authenticated as Anders And"), | ||
).toBeVisible(); | ||
|
||
await expect(page.getByRole("link", { name: "Sign out" })).toBeVisible(); | ||
|
@@ -61,21 +61,21 @@ test("Create proposal", async ({ page }) => { | |
expect(page).toHaveURL("/citizen_proposal/approve"); | ||
|
||
await expect( | ||
page.getByRole("button", { name: "Approve proposal" }) | ||
page.getByRole("button", { name: "Approve proposal" }), | ||
).toBeVisible(); | ||
|
||
await expect(page.getByRole("link", { name: "Edit proposal" })).toBeVisible(); | ||
|
||
await expect( | ||
page.getByRole("button", { name: "Cancel proposal" }) | ||
page.getByRole("button", { name: "Cancel proposal" }), | ||
).toBeVisible(); | ||
|
||
await expect(page.getByText("[email protected]")).toBeVisible(); | ||
|
||
await page.getByRole("link", { name: "Edit proposal" }).click(); | ||
|
||
await expect(page.getByLabel("Email", { exact: true })).toHaveValue( | ||
"[email protected]" | ||
"[email protected]", | ||
); | ||
|
||
await page.getByLabel("Email", { exact: true }).fill("[email protected]"); | ||
|
@@ -128,6 +128,6 @@ test("Cancel proposal", async ({ page }) => { | |
await page.getByRole("button", { name: "Cancel proposal" }).click(); | ||
|
||
await expect( | ||
page.getByText("Your submission has been cancelled.") | ||
page.getByText("Your submission has been cancelled."), | ||
).toBeVisible(); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.