@@ -30,7 +30,7 @@ test.describe("Visual Regression", () => {
30
30
tmpPath,
31
31
} ) => {
32
32
const notebook = "3_widget_example.ipynb" ;
33
- const namespace = 'default ' ;
33
+ const namespace = 'ui-test-namespace ' ;
34
34
await page . notebook . openByPath ( `${ tmpPath } /${ notebook } ` ) ;
35
35
await page . notebook . activate ( notebook ) ;
36
36
@@ -60,14 +60,14 @@ test.describe("Visual Regression", () => {
60
60
const image = `widgets-cell-${ i } .png` ;
61
61
62
62
if ( captures [ i ] ) {
63
- expect . soft ( captures [ i ] ) . toMatchSnapshot ( image ) ; // Compare pre-existing capture
63
+ expect . soft ( captures [ i ] ) . toMatchSnapshot ( image , { threshold : 0.7 } ) ; // Compare pre-existing capture
64
64
continue ;
65
65
}
66
66
}
67
67
68
68
// At this point, all cells have been ran, and their screenshots have been captured.
69
69
// We now interact with the widgets in the notebook.
70
- const upDownWidgetCellIndex = 3 ; // 4 on OpenShift
70
+ const upDownWidgetCellIndex = 4 ; // 4 on OpenShift
71
71
72
72
await waitForWidget ( page , upDownWidgetCellIndex , 'input[type="checkbox"]' ) ;
73
73
await waitForWidget ( page , upDownWidgetCellIndex , 'button:has-text("Cluster Down")' ) ;
@@ -122,7 +122,7 @@ test.describe("Visual Regression", () => {
122
122
expect ( successMessage ) . not . toBeNull ( ) ;
123
123
} ) ;
124
124
125
- const viewClustersCellIndex = 4 ; // 5 on OpenShift
125
+ const viewClustersCellIndex = 5 ; // 5 on OpenShift
126
126
await page . notebook . runCell ( cellCount - 2 , true ) ;
127
127
128
128
// Wait until the RayCluster status in the table updates to "Ready"
0 commit comments