File tree Expand file tree Collapse file tree 3 files changed +21
-9
lines changed
Expand file tree Collapse file tree 3 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * Licensed under the Apache License, Version 2.0 (the "License");
3+ * you may not use this file except in compliance with the License.
4+ * You may obtain a copy of the License at
5+ * http://www.apache.org/licenses/LICENSE-2.0
6+ * Unless required by applicable law or agreed to in writing, software
7+ * distributed under the License is distributed on an "AS IS" BASIS,
8+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+ * See the License for the specific language governing permissions and
10+ * limitations under the License.
11+ */
12+
13+ export const E2E_TEST_FOLDER = 'E2E_TEST_FOLDER' ;
14+ export const BASE_URL = 'http://localhost:4200' ;
15+
16+ export const NOTEBOOK_PATTERNS = {
17+ URL_REGEX : / \/ n o t e b o o k \/ [ ^ \/ \? ] + / ,
18+ URL_EXTRACT_NOTEBOOK_ID_REGEX : / \/ n o t e b o o k \/ ( [ ^ \/ \? ] + ) /
19+ } as const ;
Original file line number Diff line number Diff line change 1111 */
1212
1313import { Locator , Page } from '@playwright/test' ;
14- import { E2E_TEST_FOLDER } from 'e2e/utils ' ;
14+ import { E2E_TEST_FOLDER } from '../constants ' ;
1515
1616export class BasePage {
1717 readonly page : Page ;
Original file line number Diff line number Diff line change 1313import { test , Page , TestInfo } from '@playwright/test' ;
1414import { LoginTestUtil } from './models/login-page.util' ;
1515import { NotebookUtil } from './models/notebook.util' ;
16+ import { E2E_TEST_FOLDER , NOTEBOOK_PATTERNS } from './constants' ;
1617
1718export const PAGES = {
1819 // Main App
@@ -98,14 +99,6 @@ export const PAGES = {
9899 }
99100} as const ;
100101
101- export const NOTEBOOK_PATTERNS = {
102- URL_REGEX : / \/ n o t e b o o k \/ [ ^ \/ \? ] + / ,
103- URL_EXTRACT_NOTEBOOK_ID_REGEX : / \/ n o t e b o o k \/ ( [ ^ \/ \? ] + ) /
104- } as const ;
105-
106- export const E2E_TEST_FOLDER = 'E2E_TEST_FOLDER' ;
107- export const BASE_URL = 'http://localhost:4200' ;
108-
109102export const addPageAnnotation = ( pageName : string , testInfo : TestInfo ) => {
110103 testInfo . annotations . push ( {
111104 type : 'page' ,
You can’t perform that action at this time.
0 commit comments