Skip to content

Commit

Permalink
Merge pull request #2065 from alphagov/fix-acceptance-tests-for-commo…
Browse files Browse the repository at this point in the history
…n-templates

Fix tests as common templates dist-tags have lost version 1.0.0
  • Loading branch information
BenSurgisonGDS authored Mar 27, 2023
2 parents e7c2043 + 5376983 commit ed4c765
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ const panelCompleteQuery = '[aria-live="polite"] #panel-complete'

async function installPluginTests ({ plugin, templates, version }) {
describe(plugin, () => {
before(() => {
uninstallPlugin(plugin)
})

it(`The ${plugin} plugin templates are not available`, () => {
uninstallPlugin(plugin)
loadTemplatesPage()
cy.get(`[data-plugin-package-name="${plugin}"]`).should('not.exist')
})
Expand Down Expand Up @@ -64,7 +61,7 @@ async function installPluginTests ({ plugin, templates, version }) {
describe('Plugin tests', () => {
installPluginTests({
plugin: '@govuk-prototype-kit/common-templates',
version: '1.0.0',
version: '1.1.1',
templates: [
{ name: 'Blank GOV.UK', filename: 'blank-govuk.html' },
{ name: 'Blank unbranded', filename: 'blank-unbranded.html' },
Expand Down

0 comments on commit ed4c765

Please sign in to comment.