From 7e1f2d5e542bb9f23535266caef46d81c650c089 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Mon, 20 Jan 2025 19:05:57 +0530 Subject: [PATCH] fix e2e --- apps/remix-ide-e2e/src/tests/vm_state.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/vm_state.test.ts b/apps/remix-ide-e2e/src/tests/vm_state.test.ts index d22db4809cd..2c02750859e 100644 --- a/apps/remix-ide-e2e/src/tests/vm_state.test.ts +++ b/apps/remix-ide-e2e/src/tests/vm_state.test.ts @@ -65,7 +65,7 @@ const tests = { // check toaster for forked state .waitForElementVisible( { - selector: '//*[@data-shared="tooltipPopup" and contains(.,"VM state \'forkedState_1\' forked")]', + selector: '//*[@data-shared="tooltipPopup" and contains(.,"New environment \'forkedState_1\' created with forked state.")]', locateStrategy: 'xpath' } ) @@ -105,7 +105,7 @@ const tests = { .setValue('input[data-id="modalDialogForkState"]', 'forkedState_2') .modalFooterOKClick('udappNotify') .waitForElementVisible('*[data-shared="tooltipPopup"]', 10000) - .assert.textContains('*[data-shared="tooltipPopup"]', `VM state 'forkedState_2' forked and selected as current environment.`) + .assert.textContains('*[data-shared="tooltipPopup"]', `New environment 'forkedState_2' created with forked state.`) // check if 'forkedState_2' is selected as current environment .assert.elementPresent('*[data-id="selected-provider-vm-fs-forkedState_2"]') // check if 'forkedState_2' is present in environment explorer