Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions apps/demo-wallet/e2e/connect.spec.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
import { config } from 'dotenv';
import type { TestInfo } from '@playwright/test';
import { expect } from '@playwright/test';
import { allureId, owner } from 'allure-js-commons';

import { testWithDemoWalletFixture } from './demo-wallet';
import type { TestFixture } from './qa';
import { AllureApiClient, createAllureConfig, getTestCaseData, extractAllureId } from './utils';
config();

// const feature = {
// jsBridge: Boolean(process.env.E2E_JS_BRIDGE),
// };
const test = testWithDemoWalletFixture({
appUrl: process.env.DAPP_URL ?? 'https://allure-test-runner.vercel.app/e2e',
});
const { expect } = test;

let allureClient: AllureApiClient;

Expand Down
6 changes: 1 addition & 5 deletions apps/demo-wallet/e2e/signData.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { config } from 'dotenv';
import { allureId, owner } from 'allure-js-commons';
config();
import { expect } from '@playwright/test';
import type { TestInfo } from '@playwright/test';

import { AllureApiClient, createAllureConfig, getTestCaseData, extractAllureId } from './utils';
Expand All @@ -11,6 +8,7 @@ import type { TestFixture } from './qa';
const test = testWithDemoWalletFixture({
appUrl: process.env.DAPP_URL ?? 'https://allure-test-runner.vercel.app/e2e',
});
const { expect } = test;

let allureClient: AllureApiClient;

Expand All @@ -36,14 +34,12 @@ async function runSignDataTest(
}
let precondition: string = '';
let expectedResult: string = '';
// let isPositiveCase: boolean = true;

if (testAllureId && allureClient) {
try {
const testCaseData = await getTestCaseData(allureClient, testAllureId);
precondition = testCaseData.precondition;
expectedResult = testCaseData.expectedResult;
//isPositiveCase = testCaseData.isPositiveCase; will use it for negative cases later
} catch (error) {
// eslint-disable-next-line no-console
console.error('Error getting test case data:', error);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import { config } from 'dotenv';
import { expect } from '@playwright/test';
import { allureId, owner } from 'allure-js-commons';
import type { TestInfo } from '@playwright/test';

import { AllureApiClient, createAllureConfig, getTestCaseData, extractAllureId } from '../utils';
import { testWithDemoWalletFixture } from '../demo-wallet';
import type { TestFixture } from '../qa';
config();

const test = testWithDemoWalletFixture({
appUrl: process.env.DAPP_URL ?? 'https://allure-test-runner.vercel.app/e2e',
});
const { expect } = test;

// Global variable for storing the Allure client
let allureClient: AllureApiClient;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import { config } from 'dotenv';
import { expect } from '@playwright/test';
import { allureId, owner } from 'allure-js-commons';
import type { TestInfo } from '@playwright/test';

import { AllureApiClient, createAllureConfig, getTestCaseData, extractAllureId } from '../utils';
import { testWithDemoWalletFixture } from '../demo-wallet';
import type { TestFixture } from '../qa';
config();

const test = testWithDemoWalletFixture({
appUrl: process.env.DAPP_URL ?? 'https://allure-test-runner.vercel.app/e2e',
});
const { expect } = test;

// Global variable for storing the Allure client
let allureClient: AllureApiClient;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import { config } from 'dotenv';
import { expect } from '@playwright/test';
import { allureId, owner } from 'allure-js-commons';
import type { TestInfo } from '@playwright/test';

import { AllureApiClient, createAllureConfig, getTestCaseData, extractAllureId } from '../utils';
import { testWithDemoWalletFixture } from '../demo-wallet';
import type { TestFixture } from '../qa';
config();

const test = testWithDemoWalletFixture({
appUrl: process.env.DAPP_URL ?? 'https://allure-test-runner.vercel.app/e2e',
});
const { expect } = test;

// Global variable for storing the Allure client
let allureClient: AllureApiClient;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import { config } from 'dotenv';
import { expect } from '@playwright/test';
import { allureId, owner } from 'allure-js-commons';
import type { TestInfo } from '@playwright/test';

import { AllureApiClient, createAllureConfig, getTestCaseData, extractAllureId } from '../utils';
import { testWithDemoWalletFixture } from '../demo-wallet';
import type { TestFixture } from '../qa';
config();

const test = testWithDemoWalletFixture({
appUrl: process.env.DAPP_URL ?? 'https://allure-test-runner.vercel.app/e2e',
});
const { expect } = test;
// Global variable for storing the Allure client
let allureClient: AllureApiClient;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import { config } from 'dotenv';
import { expect } from '@playwright/test';
import { allureId, owner } from 'allure-js-commons';
import type { TestInfo } from '@playwright/test';

import { AllureApiClient, createAllureConfig, getTestCaseData, extractAllureId } from '../utils';
import { testWithDemoWalletFixture } from '../demo-wallet';
import type { TestFixture } from '../qa';
config();

const test = testWithDemoWalletFixture({
appUrl: process.env.DAPP_URL ?? 'https://allure-test-runner.vercel.app/e2e',
});
const { expect } = test;
// Global variable for storing the Allure client
let allureClient: AllureApiClient;

Expand Down
7 changes: 1 addition & 6 deletions apps/demo-wallet/e2e/smoke.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import { config } from 'dotenv';
//import * as allure from 'allure-js-commons';
import { allure } from 'allure-playwright';

// Загружаем переменные окружения
config();
import * as allure from 'allure-js-commons';

import { testWithDemoWalletFixture } from './demo-wallet';

Expand Down
Loading