Skip to content

Commit

Permalink
Fix script-menu table-manager playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
jmthomas committed Sep 28, 2023
1 parent 8ab42dc commit f4782b4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
8 changes: 2 additions & 6 deletions playwright/tests/script-runner/script-menu.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,8 @@ test('sets metadata', async ({ page, utils }) => {
await page
.locator('[data-test="cosmos-script-runner-script-metadata"]')
.click()
await expect(
page
.getByRole('dialog')
.locator('div')
.filter({ hasText: /^Metadata$/ }),
).toBeVisible()
await utils.sleep(500)
await expect(page.getByText('MetadataSearch')).toBeVisible()
// Delete any existing metadata so we start fresh
while (true) {
if (await page.$('[data-test=delete-event]')) {
Expand Down
12 changes: 10 additions & 2 deletions playwright/tests/table-manager.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,16 @@ test('edits a binary file', async ({ page, utils }) => {
).toContainText('SAFE_MODE')

await page.locator('text=PPS_SELECTION').click()
await page.locator('text=1PRIMARY_PPS >> div').nth(4).click()
await page.locator('text=2REDUNDANT_PPS >> div').nth(4).click()
await page
.getByRole('row', { name: '1 PRIMARY_PPS' })
.getByRole('cell')
.nth(2)
.click()
await page
.getByRole('row', { name: '2 REDUNDANT_PPS' })
.getByRole('cell')
.nth(2)
.click()

await page.locator('[data-test=cosmos-table-manager-file]').click()
await page.locator('text=Save File').click()
Expand Down

0 comments on commit f4782b4

Please sign in to comment.