Skip to content

Commit 413bc43

Browse files
authored
Merge pull request #995 from ensdomains/fix-tests
fixed a stateful test
2 parents 6c40205 + 7b68e62 commit 413bc43

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

e2e/specs/stateful/dnsclaim.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ test.describe('Import DNSSEC name', () => {
3131
await expect(page.getByTestId('import-next-button')).toBeDisabled()
3232
})
3333

34-
// TODO: this is failing because stateful tests are still on goerli, we should switch to sepolia/holesky
35-
test.skip('should not allow the user to proceed if they have not set the correct TXT record - offchain', async ({
34+
test('should not allow the user to proceed if they have not set the correct TXT record - offchain', async ({
3635
page,
3736
login,
3837
}) => {
@@ -43,10 +42,10 @@ test.describe('Import DNSSEC name', () => {
4342
await page.getByTestId('import-next-button').click()
4443
await expect(page.getByTestId('import-heading')).toContainText('Verify Ownership')
4544
await expect(page.getByTestId('status-checker-message')).toContainText('No record found')
46-
await expect(page.getByTestId('import-next-button')).toBeDisabled()
45+
await expect(page.getByTestId('offchain-claim')).toBeDisabled()
4746
})
4847

49-
test('should not allow the use to proceed if they have not set the correct subdomain with the correct info', async ({
48+
test('should not allow the user to proceed if they have not set the correct subdomain with the correct info', async ({
5049
page,
5150
login,
5251
}) => {
@@ -60,7 +59,8 @@ test.describe('Import DNSSEC name', () => {
6059
await expect(page.getByTestId('import-next-button')).toBeDisabled()
6160
})
6261

63-
test('should resolve .pw domains', async ({ page, login }) => {
62+
test.skip('should resolve .pw domains', async ({ page, login }) => {
63+
// pw domain does not resolve on localhost
6464
await page.goto('/test.pw?chain=holesky')
6565
await login.connect()
6666

src/components/pages/import/[name]/steps/VerifyOffchainOwnership.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ export const VerifyOffchainOwnership = ({
165165
</DnsImportActionButton>
166166
{isConnected ? (
167167
<DnsImportActionButton
168+
data-testid="offchain-claim"
168169
disabled={!dnsOffchainStatus || isLoading || isRefetching || isError || !!error}
169170
onClick={() => {
170171
sendEvent('import:offchain_verify', { name: selected.name })

0 commit comments

Comments
 (0)