Skip to content

Commit

Permalink
restructure timetracker tests to use promise all (#7)
Browse files Browse the repository at this point in the history
* restructure timetracker tests to use promise all

* remove unused variables & lint

---------

Co-authored-by: Gregor Vostrak <[email protected]>
  • Loading branch information
Onatcer and Gregor Vostrak authored Mar 13, 2024
1 parent aaed43b commit 7cc686f
Show file tree
Hide file tree
Showing 12 changed files with 346 additions and 318 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ services:
- sail
- reverse-proxy
playwright:
image: mcr.microsoft.com/playwright:v1.41.1-jammy
image: mcr.microsoft.com/playwright:v1.42.1-jammy
command: ['npx', 'playwright', 'test', '--ui-port=8080', '--ui-host=0.0.0.0']
working_dir: /src
extra_hosts:
Expand Down
627 changes: 334 additions & 293 deletions e2e/timetracker.spec.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defineProps<{
<template>
<div class="px-4 py-3 grid grid-cols-3">
<div class="col-span-2">
<p class="font-semibold text-white ">
<p class="font-semibold text-white">
{{ name }}
</p>
<div class="text-muted font-medium">
Expand Down
3 changes: 1 addition & 2 deletions resources/js/Components/DialogModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ const close = () => {
</div>
</div>

<div
class="flex flex-row justify-end px-6 py-4 bg-gray-100 text-end">
<div class="flex flex-row justify-end px-6 py-4 bg-gray-100 text-end">
<slot name="footer" />
</div>
</Modal>
Expand Down
3 changes: 1 addition & 2 deletions resources/js/Pages/API/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ defineProps<{
<template>
<AppLayout title="API Tokens">
<template #header>
<h2
class="font-semibold text-xl text-white leading-tight">
<h2 class="font-semibold text-xl text-white leading-tight">
API Tokens
</h2>
</template>
Expand Down
4 changes: 1 addition & 3 deletions resources/js/Pages/Auth/ForgotPassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ const submit = () => {
you to choose a new one.
</div>

<div
v-if="status"
class="mb-4 font-medium text-sm text-green-400">
<div v-if="status" class="mb-4 font-medium text-sm text-green-400">
{{ status }}
</div>

Expand Down
4 changes: 1 addition & 3 deletions resources/js/Pages/Auth/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ const submit = () => {
<AuthenticationCardLogo />
</template>

<div
v-if="status"
class="mb-4 font-medium text-sm text-green-400">
<div v-if="status" class="mb-4 font-medium text-sm text-green-400">
{{ status }}
</div>

Expand Down
2 changes: 1 addition & 1 deletion resources/js/Pages/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { Organization, User } from '@/types/models';
import { onMounted } from 'vue';
import { useProjectsStore } from '@/utils/useProjects';
import ActivityGraphCard from '@/Components/Dashboard/ActivityGraphCard.vue';
import MainContainer from "@/Pages/MainContainer.vue";
import MainContainer from '@/Pages/MainContainer.vue';
const page = usePage<{
auth: {
Expand Down
8 changes: 2 additions & 6 deletions resources/js/Pages/MainContainer.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
<script setup lang="ts">
</script>
<script setup lang="ts"></script>

<template>
<div class="sm:px-6 lg:px-8 xl:px-12 mx-auto">
<slot></slot>
</div>
</template>

<style scoped>
</style>
<style scoped></style>
3 changes: 1 addition & 2 deletions resources/js/Pages/Profile/Show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ const page = usePage<{
<template>
<AppLayout title="Profile">
<template #header>
<h2
class="font-semibold text-xl text-white leading-tight">
<h2 class="font-semibold text-xl text-white leading-tight">
Profile
</h2>
</template>
Expand Down
3 changes: 1 addition & 2 deletions resources/js/Pages/Teams/Create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import CreateTeamForm from '@/Pages/Teams/Partials/CreateTeamForm.vue';
<template>
<AppLayout title="Create Team">
<template #header>
<h2
class="font-semibold text-xl text-white leading-tight">
<h2 class="font-semibold text-xl text-white leading-tight">
Create Team
</h2>
</template>
Expand Down
3 changes: 1 addition & 2 deletions resources/js/Pages/Teams/Show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ defineProps<{
<template>
<AppLayout title="Team Settings">
<template #header>
<h2
class="font-semibold text-xl text-white leading-tight">
<h2 class="font-semibold text-xl text-white leading-tight">
Team Settings
</h2>
</template>
Expand Down

0 comments on commit 7cc686f

Please sign in to comment.