From b546df784d6907169aa923c761cef538818334b5 Mon Sep 17 00:00:00 2001 From: damies13 Date: Sat, 23 Mar 2024 13:14:35 +1000 Subject: [PATCH] xpath for unique id of Delete button Also try again files needed for Browser Library Webkit --- .github/workflows/Regression_Tests.yaml | 3 ++- Regression_Tests/TestDataTable-GUI_Browser_chromium.robot | 2 +- Regression_Tests/TestDataTable-GUI_Browser_firefox.robot | 2 +- Regression_Tests/TestDataTable-GUI_Browser_webkit.robot | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Regression_Tests.yaml b/.github/workflows/Regression_Tests.yaml index 3058f86..e6ac3bc 100644 --- a/.github/workflows/Regression_Tests.yaml +++ b/.github/workflows/Regression_Tests.yaml @@ -30,7 +30,8 @@ jobs: run: | sudo apt install -y scrot fluxbox # files needed for Browser Library Webkit - sudo apt install -y gstreamer1.0-libav libnss3-tools libatk-bridge2.0-0 libcups2-dev libxkbcommon-x11-0 libxcomposite-dev libxrandr2 libgbm-dev libgtk-3-0 + # sudo apt install -y gstreamer1.0-libav libnss3-tools libatk-bridge2.0-0 libcups2-dev libxkbcommon-x11-0 libxcomposite-dev libxrandr2 libgbm-dev libgtk-3-0 + sudo apt install libgtk-3-0 libnss3 libasound2 libgbm-dev sudo apt list --installed - name: "Ubuntu Xvfb" if: ${{ matrix.platform == 'ubuntu-latest' }} diff --git a/Regression_Tests/TestDataTable-GUI_Browser_chromium.robot b/Regression_Tests/TestDataTable-GUI_Browser_chromium.robot index 35d8258..929fb22 100644 --- a/Regression_Tests/TestDataTable-GUI_Browser_chromium.robot +++ b/Regression_Tests/TestDataTable-GUI_Browser_chromium.robot @@ -302,7 +302,7 @@ Remove Table Click //a[text()='${TABLENAME}']/../span Wait For Elements State //span[contains(@class, 'ui-dialog-title') and contains(text(), 'Delete table')] enabled Take Screenshot - Click "Delete" + Click //div[@aria-describedby='dialog-delete-table']//button[text()='Delete'] Wait For Elements State //span[contains(@class, 'ui-tabs-anchor') and contains(text(), '${TABLENAME}')] detached diff --git a/Regression_Tests/TestDataTable-GUI_Browser_firefox.robot b/Regression_Tests/TestDataTable-GUI_Browser_firefox.robot index 6e2ea2a..493d57a 100644 --- a/Regression_Tests/TestDataTable-GUI_Browser_firefox.robot +++ b/Regression_Tests/TestDataTable-GUI_Browser_firefox.robot @@ -302,7 +302,7 @@ Remove Table Click //a[text()='${TABLENAME}']/../span Wait For Elements State //span[contains(@class, 'ui-dialog-title') and contains(text(), 'Delete table')] enabled Take Screenshot - Click "Delete" + Click //div[@aria-describedby='dialog-delete-table']//button[text()='Delete'] Wait For Elements State //span[contains(@class, 'ui-tabs-anchor') and contains(text(), '${TABLENAME}')] detached diff --git a/Regression_Tests/TestDataTable-GUI_Browser_webkit.robot b/Regression_Tests/TestDataTable-GUI_Browser_webkit.robot index 067936b..9d755e0 100644 --- a/Regression_Tests/TestDataTable-GUI_Browser_webkit.robot +++ b/Regression_Tests/TestDataTable-GUI_Browser_webkit.robot @@ -302,7 +302,7 @@ Remove Table Click //a[text()='${TABLENAME}']/../span Wait For Elements State //span[contains(@class, 'ui-dialog-title') and contains(text(), 'Delete table')] enabled Take Screenshot - Click "Delete" + Click //div[@aria-describedby='dialog-delete-table']//button[text()='Delete'] Wait For Elements State //span[contains(@class, 'ui-tabs-anchor') and contains(text(), '${TABLENAME}')] detached