Skip to content

Commit

Permalink
Minor: Add ingestion tag for playwright tests (#18015)
Browse files Browse the repository at this point in the history
* Add ingestion tag for all specs that require the ingestion container to be running

* rename the ingestion dependency tag object constant name
  • Loading branch information
aniketkatkar97 authored Sep 26, 2024
1 parent 22837b6 commit 423e99f
Show file tree
Hide file tree
Showing 5 changed files with 560 additions and 510 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright 2024 Collate.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export const PLAYWRIGHT_INGESTION_TAG_OBJ = {
tag: '@ingestion',
};
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* limitations under the License.
*/
import test, { expect } from '@playwright/test';
import { PLAYWRIGHT_INGESTION_TAG_OBJ } from '../../constant/config';
import { SidebarItem } from '../../constant/sidebar';
import { TableClass } from '../../support/entity/TableClass';
import { UserClass } from '../../support/user/UserClass';
Expand Down Expand Up @@ -39,7 +40,7 @@ test.use({ storageState: 'playwright/.auth/admin.json' });

test.describe.configure({ mode: 'serial' });

test.describe('Incident Manager', () => {
test.describe('Incident Manager', PLAYWRIGHT_INGESTION_TAG_OBJ, () => {
test.beforeAll(async ({ browser }) => {
// since we need to poll for the pipeline status, we need to increase the timeout
test.setTimeout(90000);
Expand Down
Loading

0 comments on commit 423e99f

Please sign in to comment.