We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 820e446 commit a3f21e3Copy full SHA for a3f21e3
cypress/e2e/content/headTags.spec.js
@@ -1,11 +1,21 @@
1
// assumes no Head Tags as starting state
2
describe("Head Tags", () => {
3
+ before(() => {
4
+ cy.task("seed:content", "fixtures/item.json").then(
5
+ ({ model, fields, items }) => {
6
+ Cypress.env("modelZUID", model?.ZUID);
7
+ Cypress.env("itemZUID", items[0]?.meta?.ZUID);
8
+ }
9
+ );
10
+ });
11
it("creates and deletes new head tag", () => {
12
cy.waitOn("/v1/content/models*", () => {
- cy.visit("/content/6-556370-8sh47g/7-b939a4-457q19/head");
13
+ cy.visit(
14
+ `/content/${Cypress.env("modelZUID")}/${Cypress.env("itemZUID")}/head`
15
16
});
17
- cy.contains("Create Head Tag", { timeout: 10000 }).click();
18
+ cy.contains("Create Head Tag").click();
19
20
cy.get("[data-cy=newTagCard]")
21
.last()
0 commit comments