Skip to content

Commit

Permalink
adding back in test
Browse files Browse the repository at this point in the history
  • Loading branch information
calldelegation committed Oct 15, 2024
1 parent 46fb918 commit 41ef9ed
Showing 1 changed file with 68 additions and 68 deletions.
136 changes: 68 additions & 68 deletions tests/test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,43 @@ import { setupFolders, startServers, stopServers } from './utils/setup';
import { useFuelWallet } from './utils/wallet';

test.describe('Guides', () => {
// test('quickstart', async ({ context, extensionId, page }) => {
// const CONTRACT_QUICKSTART_PAGE_URL = 'guides/contract-quickstart';
test('quickstart', async ({ context, extensionId, page }) => {
const CONTRACT_QUICKSTART_PAGE_URL = 'guides/contract-quickstart';

// // SETUP
// stopServers();
// await useFuelWallet(context, extensionId, page);
// await setupFolders('fuel-project');
// await startServers(page);
// SETUP
stopServers();
await useFuelWallet(context, extensionId, page);
await setupFolders('fuel-project');
await startServers(page);

// // TEST CONTRACT QUICKSTART
// await runTest(page, context, CONTRACT_QUICKSTART_PAGE_URL);
// TEST CONTRACT QUICKSTART
await runTest(page, context, CONTRACT_QUICKSTART_PAGE_URL);

// // SHUT DOWN
// stopServers();
// // context.close();
// });
// SHUT DOWN
stopServers();
// context.close();
});

// test('counter-dapp', async ({ context, extensionId, page }) => {
// const CONTRACT_PAGE_URL = 'guides/counter-dapp/building-a-smart-contract';
// const FRONTEND_PAGE_URL = 'guides/counter-dapp/building-a-frontend';
test('counter-dapp', async ({ context, extensionId, page }) => {
const CONTRACT_PAGE_URL = 'guides/counter-dapp/building-a-smart-contract';
const FRONTEND_PAGE_URL = 'guides/counter-dapp/building-a-frontend';

// // SETUP
// stopServers();
// await useFuelWallet(context, extensionId, page);
// await setupFolders('fuel-project');
// await startServers(page);
// SETUP
stopServers();
await useFuelWallet(context, extensionId, page);
await setupFolders('fuel-project');
await startServers(page);

// // TEST CONTRACT
// await runTest(page, context, CONTRACT_PAGE_URL);
// TEST CONTRACT
await runTest(page, context, CONTRACT_PAGE_URL);

// // TEST FRONTEND
// await runTest(page, context, FRONTEND_PAGE_URL);
// TEST FRONTEND
await runTest(page, context, FRONTEND_PAGE_URL);

// // SHUT DOWN
// stopServers();
// // context.close();
// });
// SHUT DOWN
stopServers();
// context.close();
});

test('intro to sway', async ({ context, extensionId, page }) => {
const PREREQUISITES_PAGE_URL = 'guides/intro-to-sway/prerequisites';
Expand Down Expand Up @@ -77,43 +77,43 @@ test.describe('Guides', () => {
// context.close();
});

// test('intro to predicates', async ({ context, extensionId, page }) => {
// const PREREQUISITES_PAGE_URL = 'guides/intro-to-predicates/prerequisites';
// const PREDICATE_ROOT_PAGE_URL = 'guides/intro-to-predicates/predicate-root';
// const IMPORTS_PAGE_URL = 'guides/intro-to-predicates/imports';
// const CONFIGURABLES_PAGE_URL = 'guides/intro-to-predicates/configurables';
// const SIGNATURE_VERIFICATION_PAGE_URL =
// 'guides/intro-to-predicates/signature-verification';
// const MAIN_PAGE_URL = 'guides/intro-to-predicates/main';
// const CHECKPOINT_PAGE_URL = 'guides/intro-to-predicates/checkpoint';
// const SCRIPT_DEBUG_PAGE_URL =
// 'guides/intro-to-predicates/debugging-with-scripts';
// const SCRIPT_LOGS_PAGE_URL =
// 'guides/intro-to-predicates/debugging-with-scripts-rust';
// const FUELS_RS_PAGE_URL = 'guides/intro-to-predicates/rust-sdk';

// // SETUP
// stopServers();
// await useFuelWallet(context, extensionId, page);
// await setupFolders('fuel-project');
// await startServers(page);

// // TEST CONTRACT
// await runTest(page, context, PREREQUISITES_PAGE_URL);
// await runTest(page, context, PREDICATE_ROOT_PAGE_URL);
// await runTest(page, context, IMPORTS_PAGE_URL);
// await runTest(page, context, CONFIGURABLES_PAGE_URL);
// await runTest(page, context, SIGNATURE_VERIFICATION_PAGE_URL);
// await runTest(page, context, MAIN_PAGE_URL);
// await runTest(page, context, CHECKPOINT_PAGE_URL);

// // TEST RUST
// await runTest(page, context, SCRIPT_DEBUG_PAGE_URL);
// await runTest(page, context, SCRIPT_LOGS_PAGE_URL);
// await runTest(page, context, FUELS_RS_PAGE_URL);

// // SHUT DOWN
// stopServers();
// // context.close();
// });
test('intro to predicates', async ({ context, extensionId, page }) => {
const PREREQUISITES_PAGE_URL = 'guides/intro-to-predicates/prerequisites';
const PREDICATE_ROOT_PAGE_URL = 'guides/intro-to-predicates/predicate-root';
const IMPORTS_PAGE_URL = 'guides/intro-to-predicates/imports';
const CONFIGURABLES_PAGE_URL = 'guides/intro-to-predicates/configurables';
const SIGNATURE_VERIFICATION_PAGE_URL =
'guides/intro-to-predicates/signature-verification';
const MAIN_PAGE_URL = 'guides/intro-to-predicates/main';
const CHECKPOINT_PAGE_URL = 'guides/intro-to-predicates/checkpoint';
const SCRIPT_DEBUG_PAGE_URL =
'guides/intro-to-predicates/debugging-with-scripts';
const SCRIPT_LOGS_PAGE_URL =
'guides/intro-to-predicates/debugging-with-scripts-rust';
const FUELS_RS_PAGE_URL = 'guides/intro-to-predicates/rust-sdk';

// SETUP
stopServers();
await useFuelWallet(context, extensionId, page);
await setupFolders('fuel-project');
await startServers(page);

// TEST CONTRACT
await runTest(page, context, PREREQUISITES_PAGE_URL);
await runTest(page, context, PREDICATE_ROOT_PAGE_URL);
await runTest(page, context, IMPORTS_PAGE_URL);
await runTest(page, context, CONFIGURABLES_PAGE_URL);
await runTest(page, context, SIGNATURE_VERIFICATION_PAGE_URL);
await runTest(page, context, MAIN_PAGE_URL);
await runTest(page, context, CHECKPOINT_PAGE_URL);

// TEST RUST
await runTest(page, context, SCRIPT_DEBUG_PAGE_URL);
await runTest(page, context, SCRIPT_LOGS_PAGE_URL);
await runTest(page, context, FUELS_RS_PAGE_URL);

// SHUT DOWN
stopServers();
// context.close();
});
});

0 comments on commit 41ef9ed

Please sign in to comment.