added codebase, project rules and sec audit

This commit is contained in:
2026-11-08 19:03:59 -05:00
parent 4816038d49
commit bcd424f91a
1798 changed files with 801283 additions and 0 deletions

View File

@@ -0,0 +1,74 @@
import { test, expect } from "@playwright/test";
//Log the user in
test.use({
storageState: 'tests/.auth/team_leader.json',
});
//Check that the user is logged in
test("Checking Team Leader 403", async({ page }): Promise<void> => {
await page.goto("localhost:8000");
//Make sure we are on the dashboard page
await expect(page).toHaveTitle("NearBeach Dashboard");
});
type PageArrayType = {
test: string,
url: string
}
const page_array : PageArrayType[] = [
{test:'Team Leader - 403 - Card Information 1',url :'http://localhost:8000/card_information/1/'},
{test:'Team Leader - 403 - Change Task Information 1',url :'http://localhost:8000/change_task_information/1/'},
{test:'Team Leader - 403 - Diagnostic Information',url :'http://localhost:8000/diagnostic_information/'},
{test:'Team Leader - 403 - Group Information 1',url :'http://localhost:8000/group_information/1/'},
{test:'Team Leader - 403 - Kanban Information 1',url :'http://localhost:8000/kanban_information/1/'},
{test:'Team Leader - 403 - Kanban Card Information 1',url :'http://localhost:8000/kanban_information/1/card/1/'},
{test:'Team Leader - 403 - Kanban Information Edit Board 1',url :'http://localhost:8000/kanban_information/1/edit_board/'},
{test:'Team Leader - 403 - New Group',url :'http://localhost:8000/new_group/'},
{test:'Team Leader - 403 - New Notification',url :'http://localhost:8000/new_notification/'},
{test:'Team Leader - 403 - New Permission Set',url :'http://localhost:8000/new_permission_set/'},
{test:'Team Leader - 403 - New User',url :'http://localhost:8000/new_user/'},
{test:'Team Leader - 403 - Notification Information',url :'http://localhost:8000/notification_information/1/'},
{test:'Team Leader - 403 - Object Status Editor Requirements',url :'http://localhost:8000/object_status_information/requirement/'},
{test:'Team Leader - 403 - Object Status Requirement Item',url :'http://localhost:8000/object_status_information/requirement_item/'},
{test:'Team Leader - 403 - Object Status Project',url :'http://localhost:8000/object_status_information/project/'},
{test:'Team Leader - 403 - Object Status Task',url :'http://localhost:8000/object_status_information/task/'},
{test:'Team Leader - 403 - Object Status List',url :'http://localhost:8000/object_status_list/'},
{test:'Team Leader - 403 - Permission Set Information 1',url :'http://localhost:8000/permission_set_information/1/'},
{test:'Team Leader - 403 - Project Information 1',url :'http://localhost:8000/project_information/1/'},
{test:'Team Leader - 403 - Requirement Information 1',url :'http://localhost:8000/requirement_information/1/'},
{test:'Team Leader - 403 - Requirement Item Information 1',url :'http://localhost:8000/requirement_item_information/1/'},
{test:'Team Leader - 403 - RFC Information 1',url :'http://localhost:8000/rfc_information/1/'},
{test:'Team Leader - 403 - Sprint Information',url :'http://localhost:8000/sprint_information/1/'},
{test:'Team Leader - 403 - Task Information 1',url :'http://localhost:8000/task_information/1/'},
{test:'Team Leader - 403 - User Information 1',url :'http://localhost:8000/user_information/1/'},
]
//Loop through page_array
page_array.forEach((row : PageArrayType): void => {
test(row.test, async({page}) : Promise<void> => {
//Make sure there are 403 errors
page.on("response", data => {
if (data.url() === row.url) {
if (data.ok()) {
test.info().annotations.push({
type: "Response Status is OK",
description: "User should not have any access to page",
});
}
if (data.status() !== 403) {
test.info().annotations.push({
type: "Status not 403",
description: `Url: ${data.url()} || Status: ${data.status()}`,
});
}
expect.soft(data.ok()).toBeFalsy();
}
});
//Go to url
await page.goto(row.url);
});
});

View File

@@ -0,0 +1,42 @@
import { test as setup } from '@playwright/test';
// Auth File location
// const authFile : string = "tests/.auth/user.json";
// User credentials
// const username : string = 'dark_admin';
// const password: string = 'Test1234$';
type credentialsType = {
username: string,
password: string,
authFile: string,
};
const credentials : credentialsType[] = [
{ username: 'admin', password: 'Test1234$', authFile: 'tests/.auth/admin.json' },
{ username: 'dark_admin', password: 'Test1234$', authFile: 'tests/.auth/dark_admin.json' },
{ username: 'team_leader', password: 'Test1234$', authFile: 'tests/.auth/team_leader.json' },
{ username: 'team_member', password: 'Test1234$', authFile: 'tests/.auth/team_member.json' },
{ username: 'read_only', password: 'Test1234$', authFile: 'tests/.auth/read_only.json' },
]
Promise.all(credentials.map(async (single : credentialsType) : Promise<void> => {
setup(`Authenticate the user ${single.username}`, async ({ page }) : Promise<void> => {
//Loop through the credentials list - and login
// Go to login page
await page.goto('http://localhost:8000/login');
// Type in username and password
await page.locator("#id_auth-username").fill(single.username);
await page.locator("#id_auth-password").fill(single.password);
// Sign in time
await page.getByRole('button', { name: 'Next' }).click();
// Wait for page to login and then save the cookies
await page.waitForURL('http://localhost:8000/');
await page.context().storageState({ path: single.authFile });
});
}));

View File

@@ -0,0 +1,109 @@
import { test, expect } from '@playwright/test';
//Log the user in
test.use({
storageState: 'tests/.auth/admin.json',
});
//Check that the user is logged in
test("Make sure user is logged in", async({ page }) : Promise<void> => {
await page.goto("localhost:8000");
//Make sure we are on the login page
await expect(page).toHaveTitle("NearBeach Dashboard");
});
const page_array = [
{test:'Admin - Card Information 1',url :'http://localhost:8000/card_information/1/', page_title:'Kanban Information 1',page_heading:'Kanban Admin Only',screenshot_path:'./test-results/shakeout/admin/Kanban Admin Only.jpg'},
{test:'Admin - Change Task Information 1',url :'http://localhost:8000/change_task_information/1/', page_title:'Change Task 1',page_heading:'Change Task - 1',screenshot_path:'./test-results/shakeout/admin/Change Task - 1.jpg'},
{test:'Admin - Customer Information 1',url :'http://localhost:8000/customer_information/1/', page_title:'Customer Information 1',page_heading:'Customer Information',screenshot_path:'./test-results/shakeout/admin/Customer Information.jpg'},
{test:'Admin - Diagnostic Information',url :'http://localhost:8000/diagnostic_information/', page_title:'Diagnostic Information',page_heading:'Diagnostic Information',screenshot_path:'./test-results/shakeout/admin/Diagnostic Information.jpg'},
{test:'Admin - Group Information 1',url :'http://localhost:8000/group_information/1/', page_title:'Group Information 1',page_heading:'Group Information',screenshot_path:'./test-results/shakeout/admin/Group Information.jpg'},
{test:'Admin - Kanban Information 1',url :'http://localhost:8000/kanban_information/1/', page_title:'Kanban Information 1',page_heading:'Kanban Admin Only',screenshot_path:'./test-results/shakeout/admin/Kanban Information.jpg'},
{test:'Admin - Kanban Card Information 1',url :'http://localhost:8000/kanban_information/1/card/1/', page_title:'Kanban Information 1',page_heading:'Kanban Admin Only',screenshot_path:'./test-results/shakeout/admin/Kanban Admin Only.jpg'},
{test:'Admin - Kanban Information Edit Board 1',url :'http://localhost:8000/kanban_information/1/edit_board/', page_title:'Kanban Information 1',page_heading:'Kanban Admin Only',screenshot_path:'./test-results/shakeout/admin/Kanban Edit Board.jpg'},
{test:'Admin - New Group',url :'http://localhost:8000/new_group/', page_title:'New Group',page_heading:'New Group',screenshot_path:'./test-results/shakeout/admin/New Group.jpg'},
{test:'Admin - New Kanban',url :'http://localhost:8000/new_kanban/', page_title:'New Kanban',page_heading:'New Kanban',screenshot_path:'./test-results/shakeout/admin/New Kanban.jpg'},
{test:'Admin - New Notification',url :'http://localhost:8000/new_notification/', page_title:'New Notification',page_heading:'New Notification',screenshot_path:'./test-results/shakeout/admin/New Notification.jpg'},
{test:'Admin - New Organisation',url :'http://localhost:8000/new_organisation/', page_title:'New Organisation',page_heading:'New Organisation',screenshot_path:'./test-results/shakeout/admin/New Organisation.jpg'},
{test:'Admin - New Permission Set',url :'http://localhost:8000/new_permission_set/', page_title:'New Permission Set',page_heading:'New Permission Set',screenshot_path:'./test-results/shakeout/admin/New Permission Set.jpg'},
{test:'Admin - New Project',url :'http://localhost:8000/new_project/', page_title:'New Project',page_heading:'New Project',screenshot_path:'./test-results/shakeout/admin/New Project.jpg'},
{test:'Admin - New Request for Change',url :'http://localhost:8000/new_request_for_change/', page_title:'New RFC',page_heading:'New Request for Change',screenshot_path:'./test-results/shakeout/admin/New Request for Change.jpg'},
{test:'Admin - New Requirement',url :'http://localhost:8000/new_requirement/', page_title:'New Requirements',page_heading:'New Requirement',screenshot_path:'./test-results/shakeout/admin/New Requirement.jpg'},
{test:'Admin - New Task',url :'http://localhost:8000/new_task/', page_title:'New Task',page_heading:'New Task',screenshot_path:'./test-results/shakeout/admin/New Task.jpg'},
{test:'Admin - New User',url :'http://localhost:8000/new_user/', page_title:'New User',page_heading:'New User',screenshot_path:'./test-results/shakeout/admin/New User.jpg'},
{test:'Admin - Notification Information',url :'http://localhost:8000/notification_information/1/', page_title:'Notification 1',page_heading:'Notification Information',screenshot_path:'./test-results/shakeout/admin/Notification Information.jpg'},
{test:'Admin - Object Status Editor Requirements',url :'http://localhost:8000/object_status_information/requirement/', page_title:'Requirement Status Editor',page_heading:'Requirement Status Editor',screenshot_path:'./test-results/shakeout/admin/Requirement Status Editor.jpg'},
{test:'Admin - Object Status Requirement Item',url :'http://localhost:8000/object_status_information/requirement_item/', page_title:'Requirement Item Status Editor',page_heading:'Requirement Item Status Editor',screenshot_path:'./test-results/shakeout/admin/Requirement Item Status Editor.jpg'},
{test:'Admin - Object Status Project',url :'http://localhost:8000/object_status_information/project/', page_title:'Project Status Editor',page_heading:'Project Status Editor',screenshot_path:'./test-results/shakeout/admin/Project Status Editor.jpg'},
{test:'Admin - Object Status Task',url :'http://localhost:8000/object_status_information/task/', page_title:'Task Status Editor',page_heading:'Task Status Editor',screenshot_path:'./test-results/shakeout/admin/Task Status Editor.jpg'},
{test:'Admin - Object Status List',url :'http://localhost:8000/object_status_list/', page_title:'Object Status List',page_heading:'Object Status List',screenshot_path:'./test-results/shakeout/admin/Object Status List Information.jpg'},
{test:'Admin - Organisation Information 1',url :'http://localhost:8000/organisation_information/1/', page_title:'Organisation Information 1',page_heading:'Organisation Information',screenshot_path:'./test-results/shakeout/admin/Organisation Information.jpg'},
{test:'Admin - Permission Set Information 1',url :'http://localhost:8000/permission_set_information/1/', page_title:'Permission Set 1',page_heading:'Permission Information',screenshot_path:'./test-results/shakeout/admin/Permission Set Information.jpg'},
{test:'Admin - Profile Information',url :'http://localhost:8000/profile_information/', page_title:'Profile Information',page_heading:'My Profile',screenshot_path:'./test-results/shakeout/admin/Profile Information.jpg'},
{test:'Admin - Project Information 1',url :'http://localhost:8000/project_information/1/', page_title:'Project Information 1',page_heading:'Project Information',screenshot_path:'./test-results/shakeout/admin/Project Information.jpg'},
{test:'Admin - Requirement Information 1',url :'http://localhost:8000/requirement_information/1/', page_title:'Requirement Information 1',page_heading:'Requirement Information',screenshot_path:'./test-results/shakeout/admin/Requirement Information.jpg'},
{test:'Admin - Requirement Item Information 1',url :'http://localhost:8000/requirement_item_information/1/', page_title:'Requirement Item 1',page_heading:'Requirement Item Information',screenshot_path:'./test-results/shakeout/admin/Requirement Item Information.jpg'},
{test:'Admin - RFC Information 1',url :'http://localhost:8000/rfc_information/1/', page_title:'RFC 1',page_heading:'Request for Change',screenshot_path:'./test-results/shakeout/admin/RFC Information.jpg'},
{test:'Admin - Search',url :'http://localhost:8000/search/', page_title:'Search',page_heading:'Search',screenshot_path:'./test-results/shakeout/admin/Search.jpg'},
{test:'Admin - Search Notifications',url :'http://localhost:8000/search/notification/', page_title:'Search Notifications',page_heading:'Search Notifications',screenshot_path:'./test-results/shakeout/admin/Search Notifications.jpg'},
{test:'Admin - Search Sprint',url :'http://localhost:8000/search/sprint/', page_title: "Search Sprints", page_heading: "Search Sprints", screenshot_path:'./test-results/shakeout/team-leader/Search Sprint.jpg'},
{test:'Admin - Sprint Information',url :'http://localhost:8000/sprint_information/1/', page_title: "Sprint Information 1", page_heading: "project-1 - Sprint 1 - 18 Mar 2024", screenshot_path:'./test-results/shakeout/team-leader/Sprint Information 2.jpg'},
{test:'Admin - Task Information 1',url :'http://localhost:8000/task_information/1/', page_title:'Task Information 1',page_heading:'Task Information',screenshot_path:'./test-results/shakeout/admin/Task Information.jpg'},
{test:'Admin - User Information 1',url :'http://localhost:8000/user_information/1/', page_title:'User Information 1',page_heading:'User Information',screenshot_path:'./test-results/shakeout/admin/User Information.jpg'},
{test:'Admin - Scheduled Objects',url :'http://localhost:8000/scheduled_objects/', page_title:'Scheduled Objects',page_heading:'Scheduled Objects',screenshot_path:'./test-results/shakeout/admin/Scheduled Objects.jpg'},
{test:'Admin - Scheduled Objects 1',url:'http://localhost:8000/scheduled_object_information/1/', page_title:'Scheduled Object 1',page_heading: 'Scheduled Object Information', screenshot_path: './test-results/shakeout/admin/Scheduled Objects 1.jpg'},
]
//Loop through page_array
page_array.forEach((row) => {
test(row.test, async({ page }) : Promise<void> => {
//Make sure there are no errors in the console
page.on(
"console",
message => {
if (message.type() === "error") {
test.info().annotations.push({
type: 'Console Errors',
description: message.text()
});
}
expect(message.type()).not.toBe("error");
}
);
//Make sure there are no warnings in the console
page.on(
"console",
message => {
if (message.type() === "warning") {
test.info().annotations.push({
type: 'Console Warnings',
description: message.text()
});
}
expect(message.type()).not.toBe("warning");
}
);
await page.goto(row.url);
//Make sure we are on the correct page using the title
await expect(page).toHaveTitle(row.page_title);
//Make sure the VueJS loaded
await expect(page.getByRole(
"heading",
{ name: row.page_heading, exact: true }
)).toBeVisible();
//await expect(locator).not.toContainText('error');
await expect(page.locator("#loader")).toHaveCount(0);
//Take screenshot
await page.screenshot({
path: row.screenshot_path,
fullPage: true,
});
});
});

View File

@@ -0,0 +1,74 @@
import { test, expect } from '@playwright/test';
//Log the user in
test.use({
storageState: 'tests/.auth/dark_admin.json',
});
//Check that the user is logged in
test("Checking out Dark Mode", async({ page }) : Promise<void> => {
await page.goto("localhost:8000");
//Make sure we are on the login page
await expect(page).toHaveTitle("NearBeach Dashboard");
});
type PageArrayType = {
test: string
url: string,
screenshot_path: string,
};
const page_array : PageArrayType[] = [
{test:'Dark Admin - Card Information 1',url :'http://localhost:8000/card_information/1/',screenshot_path:'./test-results/shakeout/dark-admin/Kanban Admin Only.jpg'},
{test:'Dark Admin - Change Task Information 1',url :'http://localhost:8000/change_task_information/1/',screenshot_path:'./test-results/shakeout/dark-admin/Change Task - 1.jpg'},
{test:'Dark Admin - Customer Information 1',url :'http://localhost:8000/customer_information/1/',screenshot_path:'./test-results/shakeout/dark-admin/Customer Information.jpg'},
{test:'Dark Admin - Diagnostic Information',url :'http://localhost:8000/diagnostic_information/',screenshot_path:'./test-results/shakeout/dark-admin/Diagnostic Information.jpg'},
{test:'Dark Admin - Group Information 1',url :'http://localhost:8000/group_information/1/',screenshot_path:'./test-results/shakeout/dark-admin/Group Information.jpg'},
{test:'Dark Admin - Kanban Information 1',url :'http://localhost:8000/kanban_information/1/',screenshot_path:'./test-results/shakeout/dark-admin/Kanban Information.jpg'},
{test:'Dark Admin - Kanban Card Information 1',url :'http://localhost:8000/kanban_information/1/card/1/',screenshot_path:'./test-results/shakeout/dark-admin/Kanban Admin Only.jpg'},
{test:'Dark Admin - Kanban Information Edit Board 1',url :'http://localhost:8000/kanban_information/1/edit_board/',screenshot_path:'./test-results/shakeout/dark-admin/Kanban Edit Board.jpg'},
{test:'Dark Admin - New Group',url :'http://localhost:8000/new_group/',screenshot_path:'./test-results/shakeout/dark-admin/New Group.jpg'},
{test:'Dark Admin - New Kanban',url :'http://localhost:8000/new_kanban/',screenshot_path:'./test-results/shakeout/dark-admin/New Kanban.jpg'},
{test:'Dark Admin - New Notification',url :'http://localhost:8000/new_notification/',screenshot_path:'./test-results/shakeout/dark-admin/New Notification.jpg'},
{test:'Dark Admin - New Organisation',url :'http://localhost:8000/new_organisation/',screenshot_path:'./test-results/shakeout/dark-admin/New Organisation.jpg'},
{test:'Dark Admin - New Permission Set',url :'http://localhost:8000/new_permission_set/',screenshot_path:'./test-results/shakeout/dark-admin/New Permission Set.jpg'},
{test:'Dark Admin - New Project',url :'http://localhost:8000/new_project/',screenshot_path:'./test-results/shakeout/dark-admin/New Project.jpg'},
{test:'Dark Admin - New Request for Change',url :'http://localhost:8000/new_request_for_change/',screenshot_path:'./test-results/shakeout/dark-admin/New Request for Change.jpg'},
{test:'Dark Admin - New Requirement',url :'http://localhost:8000/new_requirement/',screenshot_path:'./test-results/shakeout/dark-admin/New Requirement.jpg'},
{test:'Dark Admin - New Task',url :'http://localhost:8000/new_task/',screenshot_path:'./test-results/shakeout/dark-admin/New Task.jpg'},
{test:'Dark Admin - New User',url :'http://localhost:8000/new_user/',screenshot_path:'./test-results/shakeout/dark-admin/New User.jpg'},
{test:'Dark Admin - Notification Information',url :'http://localhost:8000/notification_information/1/',screenshot_path:'./test-results/shakeout/dark-admin/Notification Information.jpg'},
{test:'Dark Admin - Object Status Editor Requirements',url :'http://localhost:8000/object_status_information/requirement/',screenshot_path:'./test-results/shakeout/dark-admin/Requirement Status Editor.jpg'},
{test:'Dark Admin - Object Status Requirement Item',url :'http://localhost:8000/object_status_information/requirement_item/',screenshot_path:'./test-results/shakeout/dark-admin/Requirement Item Status Editor.jpg'},
{test:'Dark Admin - Object Status Project',url :'http://localhost:8000/object_status_information/project/',screenshot_path:'./test-results/shakeout/dark-admin/Project Status Editor.jpg'},
{test:'Dark Admin - Object Status Task',url :'http://localhost:8000/object_status_information/task/',screenshot_path:'./test-results/shakeout/dark-admin/Task Status Editor.jpg'},
{test:'Dark Admin - Object Status List',url :'http://localhost:8000/object_status_list/',screenshot_path:'./test-results/shakeout/dark-admin/Object Status List Information.jpg'},
{test:'Dark Admin - Organisation Information 1',url :'http://localhost:8000/organisation_information/1/',screenshot_path:'./test-results/shakeout/dark-admin/Organisation Information.jpg'},
{test:'Dark Admin - Permission Set Information 1',url :'http://localhost:8000/permission_set_information/1/', screenshot_path:'./test-results/shakeout/dark-admin/Permission Set Information.jpg'},
{test:'Dark Admin - Profile Information',url :'http://localhost:8000/profile_information/',screenshot_path:'./test-results/shakeout/dark-admin/Profile Information.jpg'},
{test:'Dark Admin - Project Information 1',url :'http://localhost:8000/project_information/1/',screenshot_path:'./test-results/shakeout/dark-admin/Project Information.jpg'},
{test:'Dark Admin - Requirement Information 1',url :'http://localhost:8000/requirement_information/1/',screenshot_path:'./test-results/shakeout/dark-admin/Requirement Information.jpg'},
{test:'Dark Admin - Requirement Item Information 1',url :'http://localhost:8000/requirement_item_information/1/',screenshot_path:'./test-results/shakeout/dark-admin/Requirement Item Information.jpg'},
{test:'Dark Admin - RFC Information 1',url :'http://localhost:8000/rfc_information/1/',screenshot_path:'./test-results/shakeout/dark-admin/RFC Information.jpg'},
{test:'Dark Admin - Search',url :'http://localhost:8000/search/',screenshot_path:'./test-results/shakeout/dark-admin/Search.jpg'},
{test:'Dark Admin - Search Notifications',url :'http://localhost:8000/search/notification/',screenshot_path:'./test-results/shakeout/dark-admin/Search Notifications.jpg'},
{test:'Dark Admin - Search Sprint',url :'http://localhost:8000/search/sprint/',screenshot_path:'./test-results/shakeout/team-leader/Search Sprint.jpg'},
{test:'Dark Admin - Sprint Information',url :'http://localhost:8000/sprint_information/1/',screenshot_path:'./test-results/shakeout/team-leader/Sprint Information 2.jpg'},
{test:'Dark Admin - Task Information 1',url :'http://localhost:8000/task_information/1/',screenshot_path:'./test-results/shakeout/dark-admin/Task Information.jpg'},
{test:'Dark Admin - User Information 1',url :'http://localhost:8000/user_information/1/',screenshot_path:'./test-results/shakeout/dark-admin/User Information.jpg'},
];
page_array.forEach((row : PageArrayType) => {
test(row.test, async({ page }) : Promise<void> => {
await page.goto(row.url);
//await expect(locator).not.toContainText('error');
await expect(page.locator("#loader")).toHaveCount(0);
//Take screenshot
await page.screenshot({
path: row.screenshot_path,
fullPage: true,
});
});
});

View File

@@ -0,0 +1,98 @@
import { test, expect } from '@playwright/test';
//Log the user in
test.use({
storageState: 'tests/.auth/team_leader.json',
});
//Check that the user is logged in
test("Checking Team Leader Shakeout", async({ page }) : Promise<void> => {
await page.goto("localhost:8000");
//Make sure we are on the dashboard page
await expect(page).toHaveTitle("NearBeach Dashboard");
});
type PageArrayType = {
test: string
url: string,
screenshot_path: string,
};
const page_array : PageArrayType[] = [
{test:'Team Leader - Card Information 2',url :'http://localhost:8000/card_information/2/',screenshot_path:'./test-results/shakeout/team-leader/Kanban Admin Only.jpg'},
{test:'Team Leader - Change Task Information 2',url :'http://localhost:8000/change_task_information/2/',screenshot_path:'./test-results/shakeout/team-leader/Change Task - 1.jpg'},
{test:'Team Leader - Customer Information 1',url :'http://localhost:8000/customer_information/1/',screenshot_path:'./test-results/shakeout/team-leader/Customer Information.jpg'},
{test:'Team Leader - Kanban Information 2',url :'http://localhost:8000/kanban_information/2/',screenshot_path:'./test-results/shakeout/team-leader/Kanban Information.jpg'},
{test:'Team Leader - Kanban Card Information 2',url :'http://localhost:8000/kanban_information/2/card/2/',screenshot_path:'./test-results/shakeout/team-leader/Kanban Admin Only.jpg'},
{test:'Team Leader - Kanban Information Edit Board 2',url :'http://localhost:8000/kanban_information/2/edit_board/',screenshot_path:'./test-results/shakeout/team-leader/Kanban Edit Board.jpg'},
{test:'Team Leader - New Kanban',url :'http://localhost:8000/new_kanban/',screenshot_path:'./test-results/shakeout/team-leader/New Kanban.jpg'},
{test:'Team Leader - New Organisation',url :'http://localhost:8000/new_organisation/',screenshot_path:'./test-results/shakeout/team-leader/New Organisation.jpg'},
{test:'Team Leader - New Project',url :'http://localhost:8000/new_project/',screenshot_path:'./test-results/shakeout/team-leader/New Project.jpg'},
{test:'Team Leader - New Request for Change',url :'http://localhost:8000/new_request_for_change/',screenshot_path:'./test-results/shakeout/team-leader/New Request for Change.jpg'},
{test:'Team Leader - New Requirement',url :'http://localhost:8000/new_requirement/',screenshot_path:'./test-results/shakeout/team-leader/New Requirement.jpg'},
{test:'Team Leader - New Task',url :'http://localhost:8000/new_task/',screenshot_path:'./test-results/shakeout/team-leader/New Task.jpg'},
{test:'Team Leader - Organisation Information 1',url :'http://localhost:8000/organisation_information/1/',screenshot_path:'./test-results/shakeout/team-leader/Organisation Information.jpg'},
{test:'Team Leader - Profile Information',url :'http://localhost:8000/profile_information/',screenshot_path:'./test-results/shakeout/team-leader/Profile Information.jpg'},
{test:'Team Leader - Project Information 2',url :'http://localhost:8000/project_information/2/',screenshot_path:'./test-results/shakeout/team-leader/Project Information.jpg'},
{test:'Team Leader - Requirement Information 2',url :'http://localhost:8000/requirement_information/2/',screenshot_path:'./test-results/shakeout/team-leader/Requirement Information.jpg'},
{test:'Team Leader - Requirement Item Information 2',url :'http://localhost:8000/requirement_item_information/2/',screenshot_path:'./test-results/shakeout/team-leader/Requirement Item Information.jpg'},
{test:'Team Leader - RFC Information 2',url :'http://localhost:8000/rfc_information/2/',screenshot_path:'./test-results/shakeout/team-leader/RFC Information.jpg'},
{test:'Team Leader - Search',url :'http://localhost:8000/search/',screenshot_path:'./test-results/shakeout/team-leader/Search.jpg'},
{test:'Team Leader - Search Sprint',url :'http://localhost:8000/search/sprint/',screenshot_path:'./test-results/shakeout/team-leader/Search Sprint.jpg'},
{test:'Team Leader - Sprint Information',url :'http://localhost:8000/sprint_information/2/',screenshot_path:'./test-results/shakeout/team-leader/Sprint Information 2.jpg'},
{test:'Team Leader - Task Information 2',url :'http://localhost:8000/task_information/2/',screenshot_path:'./test-results/shakeout/team-leader/Task Information.jpg'},
];
page_array.forEach((row : PageArrayType) => {
test(row.test, async({ page }) : Promise<void> => {
//Make sure there are no errors in the console
page.on("console", message => {
if (message.type() === "error") {
test.info().annotations.push({
type: 'Console Errors',
description: message.text()
});
}
expect.soft(message.type()).not.toBe("error");
});
//Make sure there are no warnings in the console
page.on("console", message => {
if (message.type() === "warning") {
test.info().annotations.push({
type: 'Console Warnings',
description: message.text()
});
}
expect.soft(message.type()).not.toBe("warning");
});
//RESPONSE
page.on("response", data => {
if (!data.ok()) {
test.info().annotations.push({
type: "Response Status",
description:
`Url: ${data.url()} || Status Code: ${data.status()} || Status Text: ${data.statusText()}`,
});
}
//If the status range is between 200-299, OR any of the following status 301, 302, 307
const condition1: boolean = data.ok();
const condition2: boolean = [301, 302, 307].includes(data.status())
expect.soft(condition1 || condition2).toBeTruthy();
});
//Go to the page
await page.goto(row.url);
//await expect(locator).not.toContainText('error');
await expect(page.locator("#loader")).toHaveCount(0);
//Take screenshot
await page.screenshot({
path: row.screenshot_path,
fullPage: true,
});
});
});

View File

@@ -0,0 +1,30 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import AdminAddUser from "/src/js/components/administration/AdminAddUser.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe('AdminAddUser.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(AdminAddUser, {
props: {
destination: "project",
locationId: 1,
},
global: {
plugins: [store],
mocks: {
axios,
},
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,23 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ConfirmPermissionDelete from "/src/js/components/administration/ConfirmPermissionDelete.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('ConfirmPermissionDelete.vue', () => {
//Using mount - insert data
const wrapper = mount(ConfirmPermissionDelete, {
props: {
permissionDeleteId: 0,
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,45 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import UserList from "/src/js/components/administration/UserList.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe('AdminAddUser.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(UserList, {
props: {
destination: "user",
locationId: 1,
theme: "light",
userListResults: [
{
"user_group_id":1,
"username":1,
"username__first_name":"Socks",
"username__last_name":"Fluffybutt",
"username__email":"support@nearbeach.org",
"group":1,
"group__group_name":"Administration",
"group_leader":true,
"permission_set":1,
"permission_set__permission_set_name":"Administration Permission Set"
},
],
},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,4 @@
// Vitest
import { test } from "vitest";
test('blank', () => {});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import AddUserToCard from "/src/js/components/card_information/AddUserToCard.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('AdminAddUser.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(AddUserToCard, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CardDescription from "/src/js/components/card_information/CardDescription.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('AdminAddUser.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CardDescription, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CardDetails from "/src/js/components/card_information/CardDetails.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('AdminAddUser.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CardDetails, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,29 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CardInformation from "/src/js/components/card_information/CardInformation.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe('AdminAddUser.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CardInformation, {
props: {
},
global: {
plugins: [store],
mocks: {
axios,
}
},
inject: ["nextTick"],
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CardNotes from "/src/js/components/card_information/CardNotes.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('AdminAddUser.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CardNotes, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CardUsers from "/src/js/components/card_information/CardUsers.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('AdminAddUser.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CardUsers, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,101 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ChangeTaskInformation from "/src/js/components/change_task/ChangeTaskInformation.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('AdminAddUser.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(ChangeTaskInformation, {
props: {
changeTaskResults: [
{
"model":"NearBeach.changetask",
"pk":1,
"fields":{
"request_for_change":1,
"change_task_title":"Administration - Back up - Change Task",
"change_task_description":"<p>Description is optional</p>",
"change_task_start_date":"2023-02-14T22:00:00Z",
"change_task_end_date":"2023-03-01T05:00:00Z",
"change_task_seconds":1234800000,
"change_task_assigned_user":1,
"change_task_qa_user":2,
"change_task_required_by":"Stakeholder(s)",
"change_task_status":1,
"is_downtime":false,
"date_created":"2023-02-15T09:15:34.805Z",
"date_modified":"2023-10-06T10:05:33.935Z",
"change_user":1,
"creation_user":1,
"is_deleted":false
}
},
],
destination: "change_task",
locationId: 1,
rfcStatus: "Draft",
userLevel: 4,
userList: [
{
"id":1,
"email":"support@nearbeach.org",
"first_name": "Admin",
"last_name":"User",
"username":"admin"
},
{
"id":2,
"email":"support@nearbeach.org",
"first_name":"Team",
"last_name":"Leader",
"username":"team_leader"
},
{
"id":3,
"email":"support@nearbeach.org",
"first_name":"Team",
"last_name":"Member",
"username":"team_member"
},
{
"id":4,
"email":"support@nearbeach.org",
"first_name":"Team",
"last_name":"Intern",
"username":"team_intern"
},
{
"id":5,
"email":"support@nearbeach.org",
"first_name":"Read",
"last_name":"Only",
"username":"read_only"
},
{
"id":6,
"email":"support@nearbeach.org",
"first_name":"No",
"last_name":"Group",
"username":"no_group"
},
{
"id":7,
"email":"support@nearbeach.org",
"first_name":"Dark",
"last_name":"Admin",
"username":"dark_admin"
}
],
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,24 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ChangeTaskModules from "/src/js/components/change_task/ChangeTaskModules.vue";
// VueX
import { store } from "/src/js/vuex-store";
// describe('ChangeTaskModules.vue - rendering component.', () => {
// //Using mount - insert data
// const wrapper = mount(ChangeTaskModules, {
// props: {
// },
// global: {
// plugins: [store],
// },
// });
//
// test('Empty test', () => {});
// });
test('Empty test', () => {});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import NewChangeTask from "/src/js/components/change_task/NewChangeTask.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('NewChangeTask.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(NewChangeTask, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ChangeTaskDescription from "/src/js/components/change_task/modules/ChangeTaskDescription.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('AdminAddUser.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(ChangeTaskDescription, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,24 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ChangeTaskLinkList from "/src/js/components/change_task/modules/ChangeTaskLinkList.vue";
// VueX
import { store } from "/src/js/vuex-store";
// describe('ChangeTaskLinkList.vue - rendering component', () => {
// //Using mount - insert data
// const wrapper = mount(ChangeTaskLinkList, {
// props: {
// },
// global: {
// plugins: [store],
// },
// });
//
// test('Empty test', () => {});
// });
test('Empty test', () => {});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ChangeTaskMisc from "/src/js/components/change_task/modules/ChangeTaskMisc.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('AdminAddUser.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(ChangeTaskMisc, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ConfirmChangeTaskDelete from "/src/js/components/change_task/modules/ConfirmChangeTaskDelete.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('AdminAddUser.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(ConfirmChangeTaskDelete, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import IsDowntime from "/src/js/components/change_task/modules/IsDowntime.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('AdminAddUser.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(IsDowntime, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import RequiredBy from "/src/js/components/change_task/modules/RequiredBy.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('AdminAddUser.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(RequiredBy, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,43 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CustomerInformation from "/src/js/components/customers/CustomerInformation.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('NewChangeTask.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CustomerInformation, {
props: {
customerResults: [
{
"model":"NearBeach.customer",
"pk":1,
"fields": {
"customer_title":2,
"customer_first_name":"Socks",
"customer_last_name":"Fluffy",
"customer_email":"socks@nearbeach.org",
"customer_profile_picture":null,
"organisation":1,
"date_created":"2023-02-15T08:57:03.560Z",
"date_modified":"2023-02-15T08:57:03.560Z",
"change_user":1,
"is_deleted":false
}
}
],
organisationResults: [{"model":"NearBeach.organisation","pk":1,"fields":{"organisation_name":"NearBeach Incorporate","organisation_website":"https://nearbeach.org","organisation_email":"support@nearbeach.org","organisation_profile_picture":null,"date_created":"2023-02-15T08:56:40.669Z","date_modified":"2023-02-15T08:56:40.669Z","change_user":1,"is_deleted":false}}],
titleList: [{"model":"NearBeach.listoftitle","pk":1,"fields":{"title":"Mr","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}},{"model":"NearBeach.listoftitle","pk":2,"fields":{"title":"Ms","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}},{"model":"NearBeach.listoftitle","pk":3,"fields":{"title":"Mrs","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}},{"model":"NearBeach.listoftitle","pk":4,"fields":{"title":"Mx","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}}],
userLevel: 4,
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,43 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CustomerModules from "/src/js/components/customers/CustomerModules.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('NewChangeTask.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CustomerModules, {
props: {
customerResults: [
{
"model":"NearBeach.customer",
"pk":1,
"fields": {
"customer_title":2,
"customer_first_name":"Socks",
"customer_last_name":"Fluffy",
"customer_email":"socks@nearbeach.org",
"customer_profile_picture":null,
"organisation":1,
"date_created":"2023-02-15T08:57:03.560Z",
"date_modified":"2023-02-15T08:57:03.560Z",
"change_user":1,
"is_deleted":false
}
}
],
organisationResults: [{"model":"NearBeach.organisation","pk":1,"fields":{"organisation_name":"NearBeach Incorporate","organisation_website":"https://nearbeach.org","organisation_email":"support@nearbeach.org","organisation_profile_picture":null,"date_created":"2023-02-15T08:56:40.669Z","date_modified":"2023-02-15T08:56:40.669Z","change_user":1,"is_deleted":false}}],
titleList: [{"model":"NearBeach.listoftitle","pk":1,"fields":{"title":"Mr","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}},{"model":"NearBeach.listoftitle","pk":2,"fields":{"title":"Ms","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}},{"model":"NearBeach.listoftitle","pk":3,"fields":{"title":"Mrs","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}},{"model":"NearBeach.listoftitle","pk":4,"fields":{"title":"Mx","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}}],
userLevel: 4,
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,100 @@
// Vitest
import { describe, expect, test } from "vitest";
import { mount } from "@vue/test-utils";
// Import vue component
import ListCustomers from "/src/js/components/customers/ListCustomers.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('ListCustomers.vue - list two customers', () => {
//Using mount - insert data
const wrapper = mount(ListCustomers, {
props: {
customerResults: [
{
"model":"NearBeach.customer",
"pk":1,
"fields":{
"customer_title":2,
"customer_first_name":"Socks",
"customer_last_name":"Fluffy",
"customer_email":"socks@nearbeach.org",
"customer_profile_picture":"deb6dff2-74e6-4058-b30b-d7f4d015d2f0",
"organisation":1,
"date_created":"2023-02-15T08:57:03.560Z",
"date_modified":"2023-07-15T07:16:58.841Z",
"change_user":1,
"is_deleted":false
}
},
{
"model":"NearBeach.customer",
"pk":2,
"fields":{
"customer_title":2,
"customer_first_name":"Toby",
"customer_last_name":"Tripod",
"customer_email":"toby.tripod@nearbeach.org",
"customer_profile_picture":"",
"organisation":1,
"date_created":"2023-02-15T08:57:03.560Z",
"date_modified":"2023-07-15T07:16:58.841Z",
"change_user":1,
"is_deleted":false
}
}
],
},
global: {
plugins: [store]
}
});
//Gather the list of customers rendered onto the page
const customers = wrapper.findAll('.customer-details');
test('customer 1 will have a custom profile picture', () => {
const customer_1_profile = customers[0].find('.customer-image');
//Check the image location
expect(customer_1_profile.html()).toContain('<img src="/private/deb6dff2-74e6-4058-b30b-d7f4d015d2f0');
});
test('customer 2 will have the default profile picture', () => {
const customer_2_profile = customers[1].find('.customer-image');
//Check the image location
expect(customer_2_profile.html()).toContain('<img src="/static/NearBeach/images/placeholder/product_tour.svg"');
});
test('both customer\'s names, emails, and hyperlinks are rendered out correctly', () => {
const customer_1_name = customers[0].find('.customer-name');
const customer_2_name = customers[1].find('.customer-name');
//Check names
expect(customer_1_name.text()).toEqual('Socks Fluffy');
expect(customer_2_name.text()).toEqual('Toby Tripod');
//Check hyperlinks
expect(customer_1_name.html()).toContain('<a href="/customer_information/1/">');
expect(customer_2_name.html()).toContain('<a href="/customer_information/2/">');
});
test('customer 1s email is rendered out correctly', () => {
const customer_1_email = customers[0].find('.customer-email');
const customer_2_email = customers[1].find('.customer-email');
//Check email
expect(customer_1_email.text()).toContain('socks@nearbeach.org');
expect(customer_2_email.text()).toContain('toby.tripod@nearbeach.org');
//Check hyperlinks
expect(customer_1_email.html()).toContain('<a href="mailto:socks@nearbeach.org">');
expect(customer_2_email.html()).toContain('<a href="mailto:toby.tripod@nearbeach.org">');
});
//We should also look at the "add customer" button. This should not render when the user does not have
//enough permissions.
})

View File

@@ -0,0 +1,29 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import NewCustomer from "/src/js/components/customers/NewCustomer.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require('axios');
describe('NewChangeTask.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(NewCustomer, {
props: {
titleList: [{"model":"NearBeach.listoftitle","pk":1,"fields":{"title":"Mr","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}},{"model":"NearBeach.listoftitle","pk":2,"fields":{"title":"Ms","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}},{"model":"NearBeach.listoftitle","pk":3,"fields":{"title":"Mrs","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}},{"model":"NearBeach.listoftitle","pk":4,"fields":{"title":"Mx","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}}],
},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import NewCustomerForm from "/src/js/components/customers/NewCustomerForm.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('NewChangeTask.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(NewCustomerForm, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import NewCustomerModal from "/src/js/components/customers/NewCustomerModal.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('NewChangeTask.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(NewCustomerModal, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,28 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import DashboardKanbanList from "/src/js/components/dashboard/DashboardKanbanList.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe('NewChangeTask.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(DashboardKanbanList, {
props: {
},
global: {
plugins: [store],
mocks: {
axios,
},
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,28 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import DashboardMyObjects from "/src/js/components/dashboard/DashboardMyObjects.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe('NewChangeTask.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(DashboardMyObjects, {
props: {
},
global: {
plugins: [store],
mocks: {
axios,
},
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,28 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import DashboardRfcApprovals from "/src/js/components/dashboard/DashboardRfcApprovals.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe('NewChangeTask.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(DashboardRfcApprovals, {
props: {
},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,28 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import DashboardUnassignedObjects from "/src/js/components/dashboard/DashboardUnassignedObjects.vue"
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe('NewChangeTask.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(DashboardUnassignedObjects, {
props: {
},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,30 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import DashboardUsersWithNoGroups from "/src/js/components/dashboard/DashboardUsersWithNoGroups.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe('NewChangeTask.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(DashboardUsersWithNoGroups, {
props: {
},
global: {
plugins: [store],
properties: [axios],
axios: axios,
mocks: {
axios,
}
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import BetweenDates from "/src/js/components/dates/BetweenDates.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('NewChangeTask.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(BetweenDates, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import BetweenDates from "/src/js/components/diagnostic/DiagnosticEmailTest.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('DiagnosticEmailTest.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(BetweenDates, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import BetweenDates from "/src/js/components/diagnostic/DiagnosticInformation.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('DiagnosticInformation.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(BetweenDates, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import BetweenDates from "/src/js/components/diagnostic/DiagnosticUploadTest.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('DiagnosticUploadTest.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(BetweenDates, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import BetweenDates from "/src/js/components/gantt_chart/GanttInformation.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('GanttInformation.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(BetweenDates, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import BetweenDates from "/src/js/components/gantt_chart/RenderGanttDaysHeader.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('RenderGanttDaysHeader.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(BetweenDates, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import BetweenDates from "/src/js/components/gantt_chart/RenderGanttMonthlyHeader.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('RenderGanttMonthlyHeader.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(BetweenDates, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import BetweenDates from "/src/js/components/gantt_chart/RenderGanttRow.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('RenderGanttRow.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(BetweenDates, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,28 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ConfirmGroupDelete from "/src/js/components/groups/ConfirmGroupDelete.vue";
// VueX
import { store } from "/src/js/vuex-store";
import axios from "axios";
describe('NewChangeTask.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(ConfirmGroupDelete, {
props: {
groupResults: [{"model":"NearBeach.group","pk":2,"fields":{"group_name":"QA Team","parent_group":null,"date_created":"2023-02-15T08:57:34.987Z","date_modified":"2023-02-15T08:57:34.987Z","change_user":1,"is_deleted":false}}],
parentGroupResults: [{"model":"NearBeach.group","pk":1,"fields":{"group_name":"Administration","parent_group":null,"date_created":"2023-02-15T08:56:14.216Z","date_modified":"2023-02-15T08:56:14.216Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.group","pk":2,"fields":{"group_name":"QA Team","parent_group":null,"date_created":"2023-02-15T08:57:34.987Z","date_modified":"2023-02-15T08:57:34.987Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.group","pk":3,"fields":{"group_name":"Empty Group","parent_group":null,"date_created":"2023-02-15T08:57:47.633Z","date_modified":"2023-02-15T08:57:47.633Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.group","pk":4,"fields":{"group_name":"No Group","parent_group":null,"date_created":"2023-02-15T08:57:55.934Z","date_modified":"2023-02-15T08:57:55.934Z","change_user":1,"is_deleted":false}}],
},
global: {
plugins: [store],
},
mocks: {
axios,
}
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,24 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import GroupInformation from "/src/js/components/groups/GroupInformation.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('NewChangeTask.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(GroupInformation, {
props: {
groupResults: [{"model":"NearBeach.group","pk":2,"fields":{"group_name":"QA Team","parent_group":null,"date_created":"2023-02-15T08:57:34.987Z","date_modified":"2023-02-15T08:57:34.987Z","change_user":1,"is_deleted":false}}],
parentGroupResults: [{"model":"NearBeach.group","pk":1,"fields":{"group_name":"Administration","parent_group":null,"date_created":"2023-02-15T08:56:14.216Z","date_modified":"2023-02-15T08:56:14.216Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.group","pk":2,"fields":{"group_name":"QA Team","parent_group":null,"date_created":"2023-02-15T08:57:34.987Z","date_modified":"2023-02-15T08:57:34.987Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.group","pk":3,"fields":{"group_name":"Empty Group","parent_group":null,"date_created":"2023-02-15T08:57:47.633Z","date_modified":"2023-02-15T08:57:47.633Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.group","pk":4,"fields":{"group_name":"No Group","parent_group":null,"date_created":"2023-02-15T08:57:55.934Z","date_modified":"2023-02-15T08:57:55.934Z","change_user":1,"is_deleted":false}}],
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,22 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import NewGroup from "/src/js/components/groups/NewGroup.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('NewChangeTask.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(NewGroup, {
props: {
},
global: {
plugins: [store],
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,19 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CarbonArrowUp from "/src/js/components/icons/CarbonArrowUp.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('CarbonArrowUp.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CarbonArrowUp, {
props: {
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,19 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CarbonCloseOutline from "/src/js/components/icons/CarbonCloseOutline.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('CarbonCloseOutline.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CarbonCloseOutline, {
props: {
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,19 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CarbonConnectionFlowUsage from "/src/js/components/icons/CarbonConnectionFlowUsage.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('CarbonConnectionFlowUsage.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CarbonConnectionFlowUsage, {
props: {
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,19 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CarbonDocument from "/src/js/components/icons/CarbonDocument.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('CarbonDocument.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CarbonDocument, {
props: {
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,19 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CarbonDocumentPdf from "/src/js/components/icons/CarbonDocumentPdf.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('CarbonDocumentPdf.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CarbonDocumentPdf, {
props: {
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,19 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CarbonEmail from "/src/js/components/icons/CarbonEmail.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('CarbonEmail.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CarbonEmail, {
props: {
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,19 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CarbonFolder from "/src/js/components/icons/CarbonFolder.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('CarbonFolder.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CarbonFolder, {
props: {
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,19 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CarbonImage from "/src/js/components/icons/CarbonImage.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('CarbonImage.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CarbonImage, {
props: {
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,19 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CarbonInformation from "/src/js/components/icons/CarbonInformation.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('CarbonInformation.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CarbonInformation, {
props: {
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,19 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CarbonLink from "/src/js/components/icons/CarbonLink.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('CarbonLink.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CarbonLink, {
props: {
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,19 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CarbonTrashCan from "/src/js/components/icons/CarbonTrashCan.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('CarbonTrashCan.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CarbonTrashCan, {
props: {
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,19 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import MdiMicrosoftExcel from "/src/js/components/icons/MdiMicrosoftExcel.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('MdiMicrosoftExcel.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(MdiMicrosoftExcel, {
props: {
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,19 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import MdiMicrosoftPowerPoint from "/src/js/components/icons/MdiMicrosoftPowerPoint.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('MdiMicrosoftPowerPoint.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(MdiMicrosoftPowerPoint, {
props: {
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,19 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import MdiMicrosoftWord from "/src/js/components/icons/MdiMicrosoftWord.vue";
// VueX
import { store } from "/src/js/vuex-store";
describe('MdiMicrosoftWord.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(MdiMicrosoftWord, {
props: {
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ArchiveCards from "/src/js/components/kanban/ArchiveCards.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe('ArchiveCards.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(ArchiveCards, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import BlockedNotesModal from "/src/js/components/kanban/BlockedNotesModal.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require('axios');
describe('BlockedNotesModal.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(BlockedNotesModal, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import BlockedNotesModal from "/src/js/components/kanban/BlockedNotesModal.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require('axios');
describe('BlockedNotesModal.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(BlockedNotesModal, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ConfirmKanbanBoardClosure from "/src/js/components/kanban/ConfirmKanbanBoardClosure.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require('axios');
describe('ConfirmKanbanBoardClosure.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(ConfirmKanbanBoardClosure, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ConfirmKanbanBoardReopen from "/src/js/components/kanban/ConfirmKanbanBoardReopen.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe('ConfirmKanbanBoardReopen.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(ConfirmKanbanBoardReopen, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,30 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import KanbanBoard from "/src/js/components/kanban/KanbanBoard.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require('axios');
describe('BlockedNotesModal.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(KanbanBoard, {
props: {
kanbanBoardResults: [{"model":"NearBeach.kanbanboard","pk":1,"fields":{"kanban_board_name":"Kanban Admin Only","requirement":null,"kanban_board_status":"Open","date_created":"2023-02-15T09:12:31.594Z","date_modified":"2023-02-15T09:12:31.594Z","change_user":1,"creation_user":1,"is_deleted":false}}],
newCardInfo: [],
},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,32 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import KanbanColumn from "/src/js/components/kanban/KanbanColumn.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require('axios');
describe('KanbanColumn.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(KanbanColumn, {
props: {
columnId:1,
columnProperty:"Normal",
levelId:1,
newCardInfo:[],
},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import KanbanDangerZone from "/src/js/components/kanban/KanbanDangerZone.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe('KanbanDangerZone.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(KanbanDangerZone, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,36 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import KanbanEditBoard from "/src/js/components/kanban/KanbanEditBoard.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require('axios');
describe('KanbanEditBoard.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(KanbanEditBoard, {
props: {
columnResults:[{"model":"NearBeach.kanbancolumn","pk":1,"fields":{"kanban_column_name":"Backlog","kanban_column_property":"Normal","kanban_column_sort_number":0,"kanban_board":1,"date_created":"2023-02-15T09:12:31.597Z","date_modified":"2023-02-15T09:12:31.597Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.kanbancolumn","pk":2,"fields":{"kanban_column_name":"Blocked","kanban_column_property":"Blocked","kanban_column_sort_number":1,"kanban_board":1,"date_created":"2023-02-15T09:12:31.599Z","date_modified":"2023-02-15T09:12:31.599Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.kanbancolumn","pk":3,"fields":{"kanban_column_name":"In Progress","kanban_column_property":"Normal","kanban_column_sort_number":2,"kanban_board":1,"date_created":"2023-02-15T09:12:31.600Z","date_modified":"2023-02-15T09:12:31.600Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.kanbancolumn","pk":4,"fields":{"kanban_column_name":"Review and QA","kanban_column_property":"Normal","kanban_column_sort_number":3,"kanban_board":1,"date_created":"2023-02-15T09:12:31.600Z","date_modified":"2023-02-15T09:12:31.601Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.kanbancolumn","pk":5,"fields":{"kanban_column_name":"Completed","kanban_column_property":"Closed","kanban_column_sort_number":4,"kanban_board":1,"date_created":"2023-02-15T09:12:31.601Z","date_modified":"2023-02-15T09:12:31.602Z","change_user":1,"is_deleted":false}}],
kanbanBoardResults:[{"model":"NearBeach.kanbanboard","pk":1,"fields":{"kanban_board_name":"Kanban Admin Only","requirement":null,"kanban_board_status":"Open","date_created":"2023-02-15T09:12:31.594Z","date_modified":"2023-02-15T09:12:31.594Z","change_user":1,"creation_user":1,"is_deleted":false}}],
levelResults:[{"model":"NearBeach.kanbanlevel","pk":1,"fields":{"kanban_level_name":"Sprint 1","kanban_level_sort_number":0,"kanban_board":1,"date_created":"2023-02-15T09:12:31.603Z","date_modified":"2023-02-15T09:12:31.603Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.kanbanlevel","pk":2,"fields":{"kanban_level_name":"Sprint 2","kanban_level_sort_number":1,"kanban_board":1,"date_created":"2023-02-15T09:12:31.604Z","date_modified":"2023-02-15T09:12:31.604Z","change_user":1,"is_deleted":false}}],
locationId:1,
rootUrl:"/",
staticUrl:"/static/",
theme:"dark",
userLevel:4
},
global: {
plugins: [store],
mocks: {
// axios,
}
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import KanbanGroupPermissions from "/src/js/components/kanban/KanbanGroupPermissions.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require('axios');
describe('KanbanGroupPermission.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(KanbanGroupPermissions, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
});

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,34 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import KanbanPropertyOrder from "/src/js/components/kanban/KanbanPropertyOrder.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require('axios');
describe('KanbanPropertyOrder.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(KanbanPropertyOrder, {
props: {
isDirty:false,
isNewMode:false,
kanbanBoardId:1,
propertyList:[{"id":1,"property":"Normal","title":"Backlog"},{"id":2,"property":"Blocked","title":"Blocked"},{"id":3,"property":"Normal","title":"In Progress"},{"id":4,"property":"Normal","title":"Review and QA"},{"id":5,"property":"Closed","title":"Completed"}],
propertyName:"Column",
source:"columnModel",
},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import KanbanPublicLinks from "/src/js/components/kanban/KanbanPublicLinks.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe('KanbanPublicLinks.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(KanbanPublicLinks, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import KanbanRow from "/src/js/components/kanban/KanbanRow.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require('axios');
describe('KanbanRow.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(KanbanRow, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import NewKanban from "/src/js/components/kanban/NewKanban.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require('axios');
describe(' NewKanban.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(NewKanban, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import KanbanColumnDraggable from "/src/js/components/kanban/KanbanColumnDraggable.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require('axios');
describe('KanbanColumnDraggable.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(KanbanColumnDraggable, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ParentModules from "/src/js/components/modules/ParentModules.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' ParentModules.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(ParentModules, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import AssignedSprints from "/src/js/components/modules/sub_modules/AssignedSprints.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' AssignedSprints.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(AssignedSprints, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import AssociatedObjects from "/src/js/components/modules/sub_modules/AssociatedObjects.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' AssociatedObjects.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(AssociatedObjects, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import BugsModule from "/src/js/components/modules/sub_modules/BugsModule.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' BugsModule.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(BugsModule, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ChildSprints from "/src/js/components/modules/sub_modules/ChildSprints.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' ChildSprints.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(ChildSprints, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CustomersListModule from "/src/js/components/modules/sub_modules/CustomersListModule.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' CustomersListModule.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CustomersListModule, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import CustomersModule from "/src/js/components/modules/sub_modules/CustomersModule.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' CustomersModule.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(CustomersModule, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,32 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import DocumentsModule from "/src/js/components/modules/sub_modules/DocumentsModule.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe('ChangeTaskModules.vue - rendering component.', () => {
//Using mount - insert data
const wrapper = mount(DocumentsModule, {
props: {
overrideDestination:"",
overrideLocationId:0,
readOnly:false,
},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
});

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import GroupsAndUsersModule from "/src/js/components/modules/sub_modules/GroupsAndUsersModule.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' GroupsAndUsersModule.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(GroupsAndUsersModule, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ListNotes from "/src/js/components/modules/sub_modules/ListNotes.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' ListNotes.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(ListNotes, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ListPublicLinks from "/src/js/components/modules/sub_modules/ListPublicLinks.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' ListPublicLinks.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(ListPublicLinks, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ListSprints from "/src/js/components/modules/sub_modules/ListSprints.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' ListSprints.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(ListSprints, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ListTagsModule from "/src/js/components/modules/sub_modules/ListTagsModule.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' ListTagsModule.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(ListTagsModule, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import MiscModule from "/src/js/components/modules/sub_modules/MiscModule.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' MiscModule.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(MiscModule, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import NotesModule from "/src/js/components/modules/sub_modules/NotesModule.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' NotesModules.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(NotesModule, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ObjectLinks from "/src/js/components/modules/sub_modules/ObjectLinks.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' ObjectLinks.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(ObjectLinks, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import RenderSprintCard from "/src/js/components/modules/sub_modules/RenderSprintCard.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' RenderSprintCard.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(RenderSprintCard, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import RequirementItemLinksModule from "/src/js/components/modules/sub_modules/RequirementItemLinksModule.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' RequirementItemLinksModule.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(RequirementItemLinksModule, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,30 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import RequirementItemsModule from "/src/js/components/modules/sub_modules/RequirementItemsModule.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe('RequirementItemsModule.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(RequirementItemsModule, {
props: {
destination: "project",
locationId: 1,
},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import RequirementLinksModule from "/src/js/components/modules/sub_modules/RequirementLinksModule.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' RequirementLinksModule.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(RequirementLinksModule, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import SubObjectLinks from "/src/js/components/modules/sub_modules/SubObjectLinks.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' SubObjectLinks.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(SubObjectLinks, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import AddBugWizard from "/src/js/components/modules/wizards/AddBugWizard.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe('AddBugWizard.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(AddBugWizard, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import AddCustomerWizard from "/src/js/components/modules/wizards/AddCustomerWizard.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe('AddCustomerWizard.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(AddCustomerWizard, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

View File

@@ -0,0 +1,27 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import AddFolderWizard from "/src/js/components/modules/wizards/AddFolderWizard.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe('AddFolderWizard.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(AddFolderWizard, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {});
})

Some files were not shown because too many files have changed in this diff Show More