Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
icelandld committed Jun 17, 2024
1 parent 7f69621 commit 8a08726
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ jobs:
continue-on-error: true
env:
TESTS: ${{ inputs.tests }}
with:
wait-on: 'http://localhost:8002'
wait-on-timeout: 120

- name: Archive Mochawesome report
uses: actions/upload-artifact@v4
Expand Down
10 changes: 8 additions & 2 deletions cypress/pages/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ const RoutesPage = {
import BasePage from "./base";
import ke from "../KongBase/KongElement";


export class Routes extends BasePage {
add() {
ke.fromTAId(RoutesPage["New Route"]).click();
cy.get('body').then($el => {
let $element = $el.find(`[data-testid="${RoutesPage["New Route"][1]}"]`);
if (!$element[0].hidden) {
ke.fromTAId(RoutesPage["New Route"][1]).click();
} else {
ke.fromTAId(RoutesPage["New Route"][0]).click();
}
});
}

}
Expand Down
10 changes: 9 additions & 1 deletion cypress/pages/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ import BasePage from "./base";
export class Services extends BasePage {

add() {
ke.fromTAId(ServicesPage["New Gateway Service"]).click()
// ke.fromTAId(ServicesPage["New Gateway Service"]).click()
cy.get('body').then($el => {
let $element = $el.find(`[data-testid="${ServicesPage["New Gateway Service"][1]}"]`);
if (!$element[0].hidden) {
ke.fromTAId(ServicesPage["New Gateway Service"][1]).click();
} else {
ke.fromTAId(ServicesPage["New Gateway Service"][0]).click();
}
});
}

filter(context) {
Expand Down

0 comments on commit 8a08726

Please sign in to comment.