Skip to content

Commit

Permalink
Update to e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
Zasa-san committed May 26, 2021
1 parent 7ef1ea3 commit 6938879
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions e2e/helpers/entityViewPageFixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ export const contents = `<h1>My entity view</h1>
<p className="raw-creation-date"><Value path="entityRaw.creationDate" /></p>;
<h4 className="envio-title"><Value path="template.properties.4.label" /></p></h4>
<p className="envio-content"><Value path="entity.metadata.4.value.0.value" /></p>
<p className="envio-content"><Value path="entity.metadata.env_o_a_la_corte.value.0.value" /></p>
<h4 className="descripcion-title"><Value path="template.properties.0.label" /></p></h4>
<p className="descripcion-content"><Value path="entity.metadata.0.value" /></p>;
<h4 className="descripcion-title"><Value path="entity.metadata.resumen.label" /></p></h4>
<p className="descripcion-content"><Value path="entity.metadata.resumen.value" /></p>;
<h4 className="descriptores-title"><Value path="template.properties.3.label" /></p></h4>
<p className="descriptores-content"><Value path="entity.metadata.3.value.0.value" /></p>`;
<h4 className="descriptores-title"><Value path="entity.metadata.descriptores.label" /></p></h4>
<p className="descriptores-content"><Value path="entity.metadata.descriptores.value.0.value" /></p>`;
6 changes: 3 additions & 3 deletions e2e/suites/entity-view-page.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ describe('Entities', () => {
await expect(page).toMatchElement('.envio-title', {
text: 'Envío a la corte',
});
});

it('should display with formated values', async () => {
await expect(page).toMatchElement('.descripcion-title', {
text: 'Resumen',
});
await expect(page).toMatchElement('.descriptores-title', {
text: 'Descriptores',
});
});

it('should display with formated values', async () => {
await expect(page).toMatchElement('.envio-content', {
text: 'Dec 19, 2011',
});
Expand Down

0 comments on commit 6938879

Please sign in to comment.