Cypress: Change Cypress browser to Chrome (#5383)

This commit is contained in:
Vivek Ratnavel Subramanian 2022-06-08 16:54:51 -07:00 committed by GitHub
parent ce8a317059
commit 84a28ea78f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,7 @@ jobs:
parallel: true
working-directory: openmetadata-ui/src/main/resources/ui/
wait-on: 'http://localhost:8585'
browser: firefox
browser: chrome
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_SNOWFLAKE_USERNAME: ${{ secrets.CYPRESS_SNOWFLAKE_USERNAME }}

View File

@ -163,6 +163,7 @@ export const goToAddNewServicePage = () => {
// Services page
cy.contains('Services').should('be.visible');
cy.wait(500);
cy.get('.activeCategory > .tw-py-px').then(($databaseServiceCount) => {
if ($databaseServiceCount.text() === '0') {
cy.get('[data-testid="add-service-button"]').should('be.visible').click();