Skip to content

Commit

Permalink
Fix selector for Datalink name
Browse files Browse the repository at this point in the history
  • Loading branch information
somebody1234 committed Aug 22, 2024
1 parent 518ccf9 commit 84c8a6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/dashboard/e2e/actions/NewDataLinkModalActions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @file Actions for a "new Data Link" modal. */
import type * as test from 'playwright/test'

import { TEXT } from '../actions'
import type * as baseActions from './BaseActions'
import BaseActions from './BaseActions'
import DrivePageActions from './DrivePageActions'
Expand Down Expand Up @@ -30,7 +31,7 @@ export default class NewDataLinkModalActions extends BaseActions {
/** Interact with the "name" input - for example, to set the name using `.fill("")`. */
withNameInput(callback: baseActions.LocatorCallback) {
return this.step('Interact with "name" input', async (page) => {
const locator = locateNewDataLinkModal(page).getByLabel('Name')
const locator = locateNewDataLinkModal(page).getByPlaceholder(TEXT.datalinkNamePlaceholder)
await callback(locator)
})
}
Expand Down

0 comments on commit 84c8a6f

Please sign in to comment.