forked from trent_larson/crowd-funder-for-time-pwa
fix linting, add to the 10-project timeout
This commit is contained in:
@@ -19,9 +19,7 @@
|
|||||||
<span v-if="R.isEmpty(visibleToDids)">
|
<span v-if="R.isEmpty(visibleToDids)">
|
||||||
The {{ roleName }} is not visible to you or any of your contacts.
|
The {{ roleName }} is not visible to you or any of your contacts.
|
||||||
</span>
|
</span>
|
||||||
<span v-else>
|
<span v-else> The {{ roleName }} is not visible to you. </span>
|
||||||
The {{ roleName }} is not visible to you.
|
|
||||||
</span>
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div v-if="R.isEmpty(visibleToDids)">
|
<div v-if="R.isEmpty(visibleToDids)">
|
||||||
@@ -50,7 +48,11 @@
|
|||||||
<span>
|
<span>
|
||||||
{{ didInfo(visDid) }}
|
{{ didInfo(visDid) }}
|
||||||
<span v-if="!serverUtil.isEmptyOrHiddenDid(visDid)">
|
<span v-if="!serverUtil.isEmptyOrHiddenDid(visDid)">
|
||||||
<a :href="`/did/${visDid}`" target="_blank" class="text-blue-500">
|
<a
|
||||||
|
:href="`/did/${visDid}`"
|
||||||
|
target="_blank"
|
||||||
|
class="text-blue-500"
|
||||||
|
>
|
||||||
<fa icon="arrow-up-right-from-square" class="fa-fw" />
|
<fa icon="arrow-up-right-from-square" class="fa-fw" />
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -74,8 +76,8 @@
|
|||||||
<a
|
<a
|
||||||
@click="copyToClipboard('A link to this page', windowLocation)"
|
@click="copyToClipboard('A link to this page', windowLocation)"
|
||||||
class="text-blue-500"
|
class="text-blue-500"
|
||||||
>click here to copy this page, paste it into a message, and ask
|
>click here to copy this page, paste it into a message, and ask if
|
||||||
if they'll tell you more about the {{ roleName }}.</a
|
they'll tell you more about the {{ roleName }}.</a
|
||||||
>
|
>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -124,7 +126,13 @@ export default class HiddenDidDialog extends Vue {
|
|||||||
this.canShare = !!navigator.share;
|
this.canShare = !!navigator.share;
|
||||||
}
|
}
|
||||||
|
|
||||||
open(roleName: string, visibleToDids: string[], allContacts: Array<Contact>, activeDid: string, allMyDids: Array<string>) {
|
open(
|
||||||
|
roleName: string,
|
||||||
|
visibleToDids: string[],
|
||||||
|
allContacts: Array<Contact>,
|
||||||
|
activeDid: string,
|
||||||
|
allMyDids: Array<string>,
|
||||||
|
) {
|
||||||
this.roleName = roleName;
|
this.roleName = roleName;
|
||||||
this.visibleToDids = visibleToDids;
|
this.visibleToDids = visibleToDids;
|
||||||
this.allContacts = allContacts;
|
this.allContacts = allContacts;
|
||||||
|
|||||||
@@ -270,7 +270,11 @@
|
|||||||
<div class="text-sm">
|
<div class="text-sm">
|
||||||
{{ didInfo(confirmerId) }}
|
{{ didInfo(confirmerId) }}
|
||||||
<span v-if="!serverUtil.isEmptyOrHiddenDid(confirmerId)">
|
<span v-if="!serverUtil.isEmptyOrHiddenDid(confirmerId)">
|
||||||
<a :href="`/did/${confirmerId}`" target="_blank" class="text-blue-500">
|
<a
|
||||||
|
:href="`/did/${confirmerId}`"
|
||||||
|
target="_blank"
|
||||||
|
class="text-blue-500"
|
||||||
|
>
|
||||||
<fa icon="arrow-up-right-from-square" class="fa-fw" />
|
<fa icon="arrow-up-right-from-square" class="fa-fw" />
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -304,7 +308,11 @@
|
|||||||
<div class="text-sm">
|
<div class="text-sm">
|
||||||
{{ didInfo(confsVisibleTo) }}
|
{{ didInfo(confsVisibleTo) }}
|
||||||
<span v-if="!serverUtil.isEmptyOrHiddenDid(confsVisibleTo)">
|
<span v-if="!serverUtil.isEmptyOrHiddenDid(confsVisibleTo)">
|
||||||
<a :href="`/did/${confsVisibleTo}`" target="_blank" class="text-blue-500">
|
<a
|
||||||
|
:href="`/did/${confsVisibleTo}`"
|
||||||
|
target="_blank"
|
||||||
|
class="text-blue-500"
|
||||||
|
>
|
||||||
<fa icon="arrow-up-right-from-square" class="fa-fw" />
|
<fa icon="arrow-up-right-from-square" class="fa-fw" />
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -413,7 +421,11 @@
|
|||||||
<span>
|
<span>
|
||||||
{{ didInfo(visDid) }}
|
{{ didInfo(visDid) }}
|
||||||
<span v-if="!serverUtil.isEmptyOrHiddenDid(visDid)">
|
<span v-if="!serverUtil.isEmptyOrHiddenDid(visDid)">
|
||||||
<a :href="`/did/${visDid}`" target="_blank" class="text-blue-500">
|
<a
|
||||||
|
:href="`/did/${visDid}`"
|
||||||
|
target="_blank"
|
||||||
|
class="text-blue-500"
|
||||||
|
>
|
||||||
<fa icon="arrow-up-right-from-square" class="fa-fw" />
|
<fa icon="arrow-up-right-from-square" class="fa-fw" />
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -310,9 +310,7 @@
|
|||||||
<span v-else>
|
<span v-else>
|
||||||
If you'd like an introduction,
|
If you'd like an introduction,
|
||||||
<a
|
<a
|
||||||
@click="
|
@click="copyToClipboard('A link to this page', windowLocation)"
|
||||||
copyToClipboard('A link to this page', windowLocation)
|
|
||||||
"
|
|
||||||
class="text-blue-500"
|
class="text-blue-500"
|
||||||
>share this page with them and ask if they'll tell you more about
|
>share this page with them and ask if they'll tell you more about
|
||||||
about the participants.</a
|
about the participants.</a
|
||||||
|
|||||||
@@ -51,12 +51,20 @@
|
|||||||
<fa icon="user" class="fa-fw text-slate-400"></fa>
|
<fa icon="user" class="fa-fw text-slate-400"></fa>
|
||||||
{{ issuerInfoObject?.displayName }}
|
{{ issuerInfoObject?.displayName }}
|
||||||
<span v-if="!serverUtil.isEmptyOrHiddenDid(issuer)">
|
<span v-if="!serverUtil.isEmptyOrHiddenDid(issuer)">
|
||||||
<a :href="`/did/${issuer}`" target="_blank" class="text-blue-500">
|
<a
|
||||||
|
:href="`/did/${issuer}`"
|
||||||
|
target="_blank"
|
||||||
|
class="text-blue-500"
|
||||||
|
>
|
||||||
<fa icon="arrow-up-right-from-square" class="fa-fw" />
|
<fa icon="arrow-up-right-from-square" class="fa-fw" />
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<span v-else-if="serverUtil.isHiddenDid(issuer)">
|
<span v-else-if="serverUtil.isHiddenDid(issuer)">
|
||||||
<fa icon="info-circle" class="fa-fw text-blue-500 cursor-pointer" @click="openHiddenDidDialog()" />
|
<fa
|
||||||
|
icon="info-circle"
|
||||||
|
class="fa-fw text-blue-500 cursor-pointer"
|
||||||
|
@click="openHiddenDidDialog()"
|
||||||
|
/>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="startTime">
|
<div v-if="startTime">
|
||||||
@@ -70,12 +78,19 @@
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
class="underline text-blue-500"
|
class="underline text-blue-500"
|
||||||
>Map View
|
>Map View
|
||||||
<fa icon="arrow-up-right-from-square" class="fa-fw text-blue-500" />
|
<fa
|
||||||
|
icon="arrow-up-right-from-square"
|
||||||
|
class="fa-fw text-blue-500"
|
||||||
|
/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="url">
|
<div v-if="url">
|
||||||
<fa icon="globe" class="fa-fw text-slate-400"></fa>
|
<fa icon="globe" class="fa-fw text-slate-400"></fa>
|
||||||
<a :href="addScheme(url)" target="_blank" class="underline text-blue-500">
|
<a
|
||||||
|
:href="addScheme(url)"
|
||||||
|
target="_blank"
|
||||||
|
class="underline text-blue-500"
|
||||||
|
>
|
||||||
{{ domainForWebsite(this.url) }}
|
{{ domainForWebsite(this.url) }}
|
||||||
<fa icon="arrow-up-right-from-square" class="fa-fw" />
|
<fa icon="arrow-up-right-from-square" class="fa-fw" />
|
||||||
</a>
|
</a>
|
||||||
@@ -537,7 +552,11 @@ export default class ProjectViewView extends Vue {
|
|||||||
imageUrl = "";
|
imageUrl = "";
|
||||||
isRegistered = false;
|
isRegistered = false;
|
||||||
issuer = "";
|
issuer = "";
|
||||||
issuerInfoObject: { known: boolean; displayName: string; profileImageUrl?: string } | null = null;
|
issuerInfoObject: {
|
||||||
|
known: boolean;
|
||||||
|
displayName: string;
|
||||||
|
profileImageUrl?: string;
|
||||||
|
} | null = null;
|
||||||
issuerVisibleToDids: Array<string> = [];
|
issuerVisibleToDids: Array<string> = [];
|
||||||
latitude = 0;
|
latitude = 0;
|
||||||
longitude = 0;
|
longitude = 0;
|
||||||
@@ -623,7 +642,8 @@ export default class ProjectViewView extends Vue {
|
|||||||
startDateTime.toLocaleTimeString();
|
startDateTime.toLocaleTimeString();
|
||||||
}
|
}
|
||||||
this.agentDid = resp.data.claim?.agent?.identifier;
|
this.agentDid = resp.data.claim?.agent?.identifier;
|
||||||
this.agentDidVisibleToDids = resp.data.claim?.agent?.identifierVisibleToDids || [];
|
this.agentDidVisibleToDids =
|
||||||
|
resp.data.claim?.agent?.identifierVisibleToDids || [];
|
||||||
this.imageUrl = resp.data.claim?.image;
|
this.imageUrl = resp.data.claim?.image;
|
||||||
this.issuer = resp.data.issuer;
|
this.issuer = resp.data.issuer;
|
||||||
this.issuerInfoObject = serverUtil.didInfoObject(
|
this.issuerInfoObject = serverUtil.didInfoObject(
|
||||||
@@ -1171,7 +1191,7 @@ export default class ProjectViewView extends Vue {
|
|||||||
this.issuerVisibleToDids,
|
this.issuerVisibleToDids,
|
||||||
this.allContacts,
|
this.allContacts,
|
||||||
this.activeDid,
|
this.activeDid,
|
||||||
this.allMyDids
|
this.allMyDids,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ import { test, expect } from '@playwright/test';
|
|||||||
import { importUser, createUniqueStringsArray } from './testUtils';
|
import { importUser, createUniqueStringsArray } from './testUtils';
|
||||||
|
|
||||||
test('Create 10 new projects', async ({ page }) => {
|
test('Create 10 new projects', async ({ page }) => {
|
||||||
|
test.setTimeout(40000); // Set timeout longer since it often fails at 30 seconds
|
||||||
|
|
||||||
const projectCount = 10;
|
const projectCount = 10;
|
||||||
|
|
||||||
// Standard texts
|
// Standard texts
|
||||||
|
|||||||
Reference in New Issue
Block a user