@@ -1753,6 +1753,7 @@ export async function isRawTableOpened() {
1753
1753
1754
1754
export async function closeRawTable ( ) {
1755
1755
await driver . find ( '.test-raw-data-close-button' ) . click ( ) ;
1756
+ await waitToPass ( async ( ) => assert . isFalse ( await driver . find ( '.test-raw-data-close-button' ) . isPresent ( ) ) ) ;
1756
1757
}
1757
1758
1758
1759
/**
@@ -3392,8 +3393,11 @@ export async function waitForAnchor() {
3392
3393
export async function copyAnchor ( ) {
3393
3394
await driver . find ( 'body' ) . sendKeys ( Key . chord ( Key . SHIFT , await modKey ( ) , 'a' ) ) ;
3394
3395
3395
- await waitToPass ( async ( ) => assert . match (
3396
- await driver . find ( '.test-tooltip' ) . getText ( ) , / L i n k c o p i e d t o c l i p b o a r d / ) , 1000 ) ;
3396
+ await waitToPass ( async ( ) => {
3397
+ assert . isTrue (
3398
+ await driver . findContentWait ( '.test-notifier-toast-message' , / L i n k c o p i e d t o c l i p b o a r d / , 100 ) . isDisplayed ( )
3399
+ )
3400
+ } ) ;
3397
3401
}
3398
3402
3399
3403
export async function getAnchor ( ) {
@@ -3416,6 +3420,7 @@ export async function getSectionTitles() {
3416
3420
export async function renameSection ( sectionTitle : string , name : string ) {
3417
3421
const renameWidget = driver . findContent ( `.test-viewsection-title` , sectionTitle ) ;
3418
3422
await renameWidget . find ( ".test-widget-title-text" ) . click ( ) ;
3423
+ await driver . findWait ( '.test-widget-title-popup' , 100 ) ;
3419
3424
await driver . find ( ".test-widget-title-section-name-input" ) . click ( ) ;
3420
3425
await selectAll ( ) ;
3421
3426
await driver . sendKeys ( name || Key . DELETE , Key . ENTER ) ;
@@ -3424,6 +3429,7 @@ export async function renameSection(sectionTitle: string, name: string) {
3424
3429
3425
3430
export async function renameActiveSection ( name : string ) {
3426
3431
await driver . find ( ".active_section .test-viewsection-title .test-widget-title-text" ) . click ( ) ;
3432
+ await driver . findWait ( '.test-widget-title-popup' , 100 ) ;
3427
3433
await driver . find ( ".test-widget-title-section-name-input" ) . click ( ) ;
3428
3434
await selectAll ( ) ;
3429
3435
await driver . sendKeys ( name || Key . DELETE , Key . ENTER ) ;
@@ -3435,6 +3441,7 @@ export async function renameActiveSection(name: string) {
3435
3441
*/
3436
3442
export async function renameActiveTable ( name : string ) {
3437
3443
await driver . find ( ".active_section .test-viewsection-title .test-widget-title-text" ) . click ( ) ;
3444
+ await driver . findWait ( '.test-widget-title-popup' , 100 ) ;
3438
3445
await driver . find ( ".test-widget-title-table-name-input" ) . click ( ) ;
3439
3446
await selectAll ( ) ;
3440
3447
await driver . sendKeys ( name , Key . ENTER ) ;
@@ -3515,6 +3522,7 @@ export async function columnBehavior() {
3515
3522
*/
3516
3523
export async function availableBehaviorOptions ( ) {
3517
3524
await driver . find ( '.test-field-behaviour' ) . click ( ) ;
3525
+ await findOpenMenu ( ) ;
3518
3526
const list = await driver . findAll ( '.grist-floating-menu li' , el => el . getText ( ) ) ;
3519
3527
await driver . sendKeys ( Key . ESCAPE ) ;
3520
3528
return list ;
0 commit comments