File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ // @ts -nocheck
2+ import assert from "node:assert/strict" ;
3+ import { readFileSync } from "node:fs" ;
4+ import test from "node:test" ;
5+
6+ const source = readFileSync ( new URL ( "./interaction-hotfix.ts" , import . meta. url ) , "utf8" ) ;
7+ const index = readFileSync ( new URL ( "../../index.html" , import . meta. url ) , "utf8" ) ;
8+
9+ test ( "critical packaged actions use delegated handling" , ( ) => {
10+ assert . match ( source , / d a t a - c o n n e c t o r - c o n n e c t / ) ;
11+ assert . match ( source , / # r t k - i n s t a l l / ) ;
12+ assert . match ( source , / # a u t o p i l o t - s t a r t / ) ;
13+ assert . match ( source , / s t o p I m m e d i a t e P r o p a g a t i o n / ) ;
14+ } ) ;
15+
16+ test ( "action progress and failures stay visible" , ( ) => {
17+ assert . match ( source , / p e r s i s t e n t - a c t i o n - s t a t u s / ) ;
18+ assert . match ( source , / A c t i o n f a i l e d : / ) ;
19+ } ) ;
20+
21+ test ( "saved connector state is reconciled before hydration" , ( ) => {
22+ assert . match ( source , / t o k e n - s a v e r \. w o r k s p a c e \. v 1 / ) ;
23+ assert . ok ( index . indexOf ( "interaction-hotfix.ts" ) < index . indexOf ( "main.ts" ) ) ;
24+ } ) ;
You can’t perform that action at this time.
0 commit comments