forked from trent_larson/crowd-funder-for-time-pwa
fix image server references for tests (2 tests failing: missing function & looking for registration prompt for unregistered user)
This commit is contained in:
@@ -50,6 +50,14 @@ import path from 'path';
|
||||
import { test, expect } from '@playwright/test';
|
||||
import { importUser } from './testUtils';
|
||||
|
||||
/**
|
||||
* Note: by default, this test uses the test image API server.
|
||||
*
|
||||
* If you want to use your own image API server, you can set the
|
||||
* VITE_DEFAULT_IMAGE_API_SERVER environment variable to your server's URL
|
||||
* in the playwright.config-local.ts file.
|
||||
*
|
||||
*/
|
||||
test('Record item given from image-share', async ({ page }) => {
|
||||
|
||||
let randomString = Math.random().toString(36).substring(2, 8);
|
||||
|
||||
@@ -300,7 +300,7 @@ test('Copy contact to clipboard, then import ', async ({ page, context }, testIn
|
||||
return;
|
||||
}
|
||||
|
||||
console.log("Running test that copies contact details to clipboard.");
|
||||
// console.log("Running test that copies contact details to clipboard.");
|
||||
await page.getByTestId('copySelectedContactsButtonTop').click();
|
||||
const clipboardText = await page.evaluate(async () => {
|
||||
return navigator.clipboard.readText();
|
||||
|
||||
Reference in New Issue
Block a user