mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-03 14:13:06 +00:00
Cy: skip the teams spec test and removed * from search API call (#9803)
This commit is contained in:
parent
b0058bdb65
commit
0a85464e09
@ -77,7 +77,8 @@ describe('Teams flow should work properly', () => {
|
|||||||
updateOwner(true);
|
updateOwner(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Add user to created team', () => {
|
// Todo:- Enable this once the issue is fixed -> https://github.com/open-metadata/OpenMetadata/issues/9801
|
||||||
|
it.skip('Add user to created team', () => {
|
||||||
interceptURL(
|
interceptURL(
|
||||||
'GET',
|
'GET',
|
||||||
`/api/v1/users?fields=teams,roles&team=${TEAM_DETAILS.name}&limit=15`,
|
`/api/v1/users?fields=teams,roles&team=${TEAM_DETAILS.name}&limit=15`,
|
||||||
@ -146,7 +147,8 @@ describe('Teams flow should work properly', () => {
|
|||||||
cy.get('.ant-table-row').should('contain', TEAM_DETAILS.username);
|
cy.get('.ant-table-row').should('contain', TEAM_DETAILS.username);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Remove added user from created team', () => {
|
// Todo:- Enable this once the issue is fixed -> https://github.com/open-metadata/OpenMetadata/issues/9801
|
||||||
|
it.skip('Remove added user from created team', () => {
|
||||||
interceptURL(
|
interceptURL(
|
||||||
'GET',
|
'GET',
|
||||||
`/api/v1/users?fields=*&team=${TEAM_DETAILS.name}&limit=15`,
|
`/api/v1/users?fields=*&team=${TEAM_DETAILS.name}&limit=15`,
|
||||||
|
@ -27,11 +27,7 @@ export const getSearchAPIQueryParams = (
|
|||||||
trackTotalHits = false
|
trackTotalHits = false
|
||||||
): Record<string, string | boolean | number | string[]> => {
|
): Record<string, string | boolean | number | string[]> => {
|
||||||
const start = (from - 1) * size;
|
const start = (from - 1) * size;
|
||||||
const query = queryString
|
const query = queryString ? queryString : WILD_CARD_CHAR;
|
||||||
? queryString.includes(':')
|
|
||||||
? queryString
|
|
||||||
: `*${queryString}*`
|
|
||||||
: WILD_CARD_CHAR;
|
|
||||||
|
|
||||||
const params: Record<string, string | boolean | number | string[]> = {
|
const params: Record<string, string | boolean | number | string[]> = {
|
||||||
q: query + (filters ? ` AND ${filters}` : ''),
|
q: query + (filters ? ` AND ${filters}` : ''),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user