1- import { test } from ' ./utils/fixtures' ;
2- import { runTest } from ' ./utils/runTest' ;
3- import { setupFolders , startServers , stopServers } from ' ./utils/setup' ;
4- import { useFuelWallet } from ' ./utils/wallet' ;
1+ import { test } from " ./utils/fixtures" ;
2+ import { runTest } from " ./utils/runTest" ;
3+ import { setupFolders , startServers , stopServers } from " ./utils/setup" ;
4+ import { useFuelWallet } from " ./utils/wallet" ;
55
6- test . describe ( 'Guides' , ( ) => {
7- test ( 'counter-dapp' , async ( { context, extensionId, page } ) => {
8- const CONTRACT_PAGE_URL = 'guides/counter-dapp/building-a-smart-contract' ;
9- const FRONTEND_PAGE_URL = 'guides/counter-dapp/building-a-frontend' ;
6+ test . describe ( "Guides" , ( ) => {
7+ test ( "quickstart" , async ( { context, extensionId, page } ) => {
8+ const CONTRACT_QUICKSTART_PAGE_URL = "guides/contract-quickstart" ;
109
1110 // SETUP
1211 stopServers ( ) ;
1312 await useFuelWallet ( context , extensionId , page ) ;
14- await setupFolders ( 'fuel-project' ) ;
13+ await setupFolders ( "fuel-project" ) ;
14+ await startServers ( page ) ;
15+
16+ // TEST CONTRACT QUICKSTART
17+ await runTest ( page , context , CONTRACT_QUICKSTART_PAGE_URL ) ;
18+
19+ // SHUT DOWN
20+ stopServers ( ) ;
21+ // context.close();
22+ } ) ;
23+
24+ test ( "counter-dapp" , async ( { context, extensionId, page } ) => {
25+ const CONTRACT_PAGE_URL = "guides/counter-dapp/building-a-smart-contract" ;
26+ const FRONTEND_PAGE_URL = "guides/counter-dapp/building-a-frontend" ;
27+
28+ // SETUP
29+ stopServers ( ) ;
30+ await useFuelWallet ( context , extensionId , page ) ;
31+ await setupFolders ( "fuel-project" ) ;
1532 await startServers ( page ) ;
1633
1734 // TEST CONTRACT
@@ -25,22 +42,22 @@ test.describe('Guides', () => {
2542 // context.close();
2643 } ) ;
2744
28- test ( ' intro to sway' , async ( { context, extensionId, page } ) => {
29- const PREREQUISITES_PAGE_URL = ' guides/intro-to-sway/prerequisites' ;
30- const IMPORTS_PAGE_URL = ' guides/intro-to-sway/contract-imports' ;
31- const STRUCTS_PAGE_URL = ' guides/intro-to-sway/contract-structs' ;
32- const ABI_PAGE_URL = ' guides/intro-to-sway/contract-abi' ;
33- const STORAGE_PAGE_URL = ' guides/intro-to-sway/contract-storage' ;
34- const ERRORS_PAGE_URL = ' guides/intro-to-sway/contract-errors' ;
35- const FUNCTIONS_PAGE_URL = ' guides/intro-to-sway/contract-functions' ;
36- const CHECKPOINT_PAGE_URL = ' guides/intro-to-sway/checkpoint' ;
37- const FUELS_RS_PAGE_URL = ' guides/intro-to-sway/rust-sdk' ;
38- const FUELS_TS_PAGE_URL = ' guides/intro-to-sway/typescript-sdk' ;
45+ test ( " intro to sway" , async ( { context, extensionId, page } ) => {
46+ const PREREQUISITES_PAGE_URL = " guides/intro-to-sway/prerequisites" ;
47+ const IMPORTS_PAGE_URL = " guides/intro-to-sway/contract-imports" ;
48+ const STRUCTS_PAGE_URL = " guides/intro-to-sway/contract-structs" ;
49+ const ABI_PAGE_URL = " guides/intro-to-sway/contract-abi" ;
50+ const STORAGE_PAGE_URL = " guides/intro-to-sway/contract-storage" ;
51+ const ERRORS_PAGE_URL = " guides/intro-to-sway/contract-errors" ;
52+ const FUNCTIONS_PAGE_URL = " guides/intro-to-sway/contract-functions" ;
53+ const CHECKPOINT_PAGE_URL = " guides/intro-to-sway/checkpoint" ;
54+ const FUELS_RS_PAGE_URL = " guides/intro-to-sway/rust-sdk" ;
55+ const FUELS_TS_PAGE_URL = " guides/intro-to-sway/typescript-sdk" ;
3956
4057 // SETUP
4158 stopServers ( ) ;
4259 await useFuelWallet ( context , extensionId , page ) ;
43- await setupFolders ( ' fuel-project' ) ;
60+ await setupFolders ( " fuel-project" ) ;
4461 await startServers ( page ) ;
4562
4663 // TEST CONTRACT
@@ -60,25 +77,25 @@ test.describe('Guides', () => {
6077 // context.close();
6178 } ) ;
6279
63- test ( ' intro to predicates' , async ( { context, extensionId, page } ) => {
64- const PREREQUISITES_PAGE_URL = ' guides/intro-to-predicates/prerequisites' ;
65- const PREDICATE_ROOT_PAGE_URL = ' guides/intro-to-predicates/predicate-root' ;
66- const IMPORTS_PAGE_URL = ' guides/intro-to-predicates/imports' ;
67- const CONFIGURABLES_PAGE_URL = ' guides/intro-to-predicates/configurables' ;
80+ test ( " intro to predicates" , async ( { context, extensionId, page } ) => {
81+ const PREREQUISITES_PAGE_URL = " guides/intro-to-predicates/prerequisites" ;
82+ const PREDICATE_ROOT_PAGE_URL = " guides/intro-to-predicates/predicate-root" ;
83+ const IMPORTS_PAGE_URL = " guides/intro-to-predicates/imports" ;
84+ const CONFIGURABLES_PAGE_URL = " guides/intro-to-predicates/configurables" ;
6885 const SIGNATURE_VERIFICATION_PAGE_URL =
69- ' guides/intro-to-predicates/signature-verification' ;
70- const MAIN_PAGE_URL = ' guides/intro-to-predicates/main' ;
71- const CHECKPOINT_PAGE_URL = ' guides/intro-to-predicates/checkpoint' ;
86+ " guides/intro-to-predicates/signature-verification" ;
87+ const MAIN_PAGE_URL = " guides/intro-to-predicates/main" ;
88+ const CHECKPOINT_PAGE_URL = " guides/intro-to-predicates/checkpoint" ;
7289 const SCRIPT_DEBUG_PAGE_URL =
73- ' guides/intro-to-predicates/debugging-with-scripts' ;
90+ " guides/intro-to-predicates/debugging-with-scripts" ;
7491 const SCRIPT_LOGS_PAGE_URL =
75- ' guides/intro-to-predicates/debugging-with-scripts-rust' ;
76- const FUELS_RS_PAGE_URL = ' guides/intro-to-predicates/rust-sdk' ;
92+ " guides/intro-to-predicates/debugging-with-scripts-rust" ;
93+ const FUELS_RS_PAGE_URL = " guides/intro-to-predicates/rust-sdk" ;
7794
7895 // SETUP
7996 stopServers ( ) ;
8097 await useFuelWallet ( context , extensionId , page ) ;
81- await setupFolders ( ' fuel-project' ) ;
98+ await setupFolders ( " fuel-project" ) ;
8299 await startServers ( page ) ;
83100
84101 // TEST CONTRACT
0 commit comments