fixed bigquery and postgres cypress test (#10450)

This commit is contained in:
Shailesh Parmar 2023-03-07 13:00:17 +05:30 committed by GitHub
parent 724a10a82f
commit f3174efc22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 12 deletions

View File

@ -52,15 +52,6 @@ describe('BigQuery Ingestion', () => {
cy.get('#root_clientId')
.scrollIntoView()
.type(Cypress.env('bigqueryClientId'));
cy.get('#root_authUri')
.scrollIntoView()
.type('https://accounts.google.com/o/oauth2/auth');
cy.get('#root_tokenUri')
.scrollIntoView()
.type('https://oauth2.googleapis.com/token');
cy.get('#root_authProviderX509CertUrl')
.scrollIntoView()
.type('https://www.googleapis.com/oauth2/v1/certs');
cy.get('#root_clientX509CertUrl')
.scrollIntoView()
.type(

View File

@ -31,7 +31,8 @@ const serviceName = `${serviceType}-ct-test-${uuid()}`;
const tableName = 'order_items';
const description = `This is ${serviceName} description`;
const filterPattern = 'sales';
const query =
const clearQuery = 'select pg_stat_statements_reset()';
const selectQuery =
'SELECT * FROM sales.order_items oi INNER JOIN sales.orders o ON oi.order_id=o.order_id';
describe('Postgres Ingestion', () => {
@ -40,7 +41,8 @@ describe('Postgres Ingestion', () => {
});
it('Trigger select query', () => {
cy.postgreSQL(query);
cy.postgreSQL(clearQuery);
cy.postgreSQL(selectQuery);
});
it('add and ingest data', () => {
@ -165,7 +167,7 @@ describe('Postgres Ingestion', () => {
// Validate that the triggered query is visible in the queries container
cy.get('[data-testid="queries-container"]')
.should('be.visible')
.should('contain', query);
.should('contain', selectQuery);
// Validate queries count is greater than 1
cy.get('[data-testid="entity-summary-details"]')
.invoke('text')