Skip to content

Commit

Permalink
Merge pull request #36 from DEFRA/483148-update-team-page-grid-part-II
Browse files Browse the repository at this point in the history
Update title expect
  • Loading branch information
feedmypixel authored Dec 28, 2024
2 parents f16a89a + f9e9e39 commit 6ad07d1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/specs/secrets.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('Secrets feature', () => {
it('Should be a tab on a "Service" page', async () => {
await expect(await ServicesPage.navIsActive()).toBe(true)
await expect(PageHeadingComponent.caption('Service')).toExist()
await expect(PageHeadingComponent.title()).toHaveText(tenantService)
await expect(PageHeadingComponent.title(tenantService)).toExist()

await expect(TabsComponent.activeTab()).toHaveText('About')
await expect(TabsComponent.secondTab()).toHaveText('Secrets')
Expand All @@ -51,7 +51,7 @@ describe('Secrets feature', () => {
await SecretsPage.open(tenantService)

await expect(PageHeadingComponent.caption('Secrets')).toExist()
await expect(PageHeadingComponent.title()).toHaveText(tenantService)
await expect(PageHeadingComponent.title(tenantService)).toExist()

await expect(TabsComponent.activeTab()).toHaveText('Secrets')
})
Expand All @@ -62,7 +62,7 @@ describe('Secrets feature', () => {
await TabsComponent.secondTab().click()

await expect(PageHeadingComponent.caption('Secrets')).toExist()
await expect(PageHeadingComponent.title()).toHaveText(tenantService)
await expect(PageHeadingComponent.title(tenantService)).toExist()

await expect(TabsComponent.activeTab()).toHaveText('Secrets')
})
Expand All @@ -73,7 +73,7 @@ describe('Secrets feature', () => {
await SecretsPage.open(tenantService, 'management')

await expect(PageHeadingComponent.caption('Secrets')).toExist()
await expect(PageHeadingComponent.title()).toHaveText(tenantService)
await expect(PageHeadingComponent.title(tenantService)).toExist()

await expect(SecretsPage.environmentHeader()).toHaveText(
'Management secrets'
Expand All @@ -90,7 +90,7 @@ describe('Secrets feature', () => {
await SplitPaneComponent.subNavItemLink('management').click()

await expect(PageHeadingComponent.caption('Secrets')).toExist()
await expect(PageHeadingComponent.title()).toHaveText(tenantService)
await expect(PageHeadingComponent.title(tenantService)).toExist()

await expect(SecretsPage.environmentHeader()).toHaveText(
'Management secrets'
Expand Down Expand Up @@ -128,7 +128,7 @@ describe('Secrets feature', () => {
await SecretsPage.open(tenantService, 'management')

await expect(PageHeadingComponent.caption('Secrets')).toExist()
await expect(PageHeadingComponent.title()).toHaveText(tenantService)
await expect(PageHeadingComponent.title(tenantService)).toExist()

await SecretsPage.createSecretName().setValue(keyName)
await SecretsPage.createSecretValue().setValue('test-value')
Expand All @@ -141,7 +141,7 @@ describe('Secrets feature', () => {
await SecretsPage.secretAction(keyName).click()

await expect(PageHeadingComponent.caption('Update Secret')).toExist()
await expect(PageHeadingComponent.title()).toHaveText(tenantService)
await expect(PageHeadingComponent.title(tenantService)).toExist()

await SecretsPage.updateHeader().waitForExist()
await SecretsPage.updateSecretValue().setValue('test-updated-value')
Expand Down

0 comments on commit 6ad07d1

Please sign in to comment.