-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
319 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Locator, Page } from '@playwright/test'; | ||
|
||
export default class ModalLocators { | ||
static getProfileModal(page: Page) : Locator { | ||
return page.locator('.profile-popup'); | ||
} | ||
|
||
static getCloseBtn (modal: Locator) : Locator { | ||
return modal.locator('.modal-close'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Locator, Page } from '@playwright/test'; | ||
|
||
export default class RecordsetLocators { | ||
static async waitForRecordsetPageReady(page: Page) { | ||
await RecordsetLocators.getRecordSetTable(page).waitFor({ state: 'visible' }); | ||
} | ||
|
||
static async waitForAggregates(page: Page) { | ||
page.locator('.table-column-spinner').waitFor({ state: 'hidden' }); | ||
} | ||
|
||
static getRecordSetTable(page: Page): Locator { | ||
return page.locator('.recordset-table'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { resolve } from 'path'; | ||
|
||
export const ERMREST_URL = process.env.ERMREST_URL; | ||
|
||
/** | ||
* return the catalog created for tests | ||
* (populated during setup) | ||
*/ | ||
export const getCatalogID = () : string => { | ||
return process.env.CATALOG_ID!; | ||
} | ||
|
||
|
||
/** | ||
* This is where we're writing the entities to. | ||
* | ||
* There are some system generated columns that we might want to know the value of, | ||
* entities will have those. The problem is that we cannot just attach this variable | ||
* to `global` since we might run test specs in multiple threads via sharding. | ||
* Therefore we are writing these data this file, and then removing the file | ||
* | ||
* TODO is this limitation true with playwright? | ||
*/ | ||
export const ENTITIES_PATH = 'entities.json'; | ||
|
||
|
||
/** | ||
* return the session object for the main user (catalog owner). | ||
* (populated during setup) | ||
*/ | ||
export const getMainUserSessionObject = () => { | ||
return JSON.parse(process.env.WEBAUTHN_SESSION!); | ||
} | ||
|
||
|
||
/** | ||
* the file that contains the logged in browser state | ||
*/ | ||
export const STORAGE_STATE = resolve(__dirname, '../.auth/user.json'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.