Revision fac9cb9e
Added by Andreas Kohlbecker over 12 years ago
modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/test/java/eu/etaxonomy/dataportal/selenium/tests/palmae/Calamus_acanthospathus_TaxonProfileTest.java | ||
---|---|---|
103 | 103 |
assertEquals(blockTextFull, featureBlock.getText()); |
104 | 104 |
featureBlock.testDescriptionElementLayout(0, indent, descriptionElementFontSize, expectedCssDisplay, expectedListStyleType, expectedListStylePosition, expectedListStyleImage); |
105 | 105 |
assertEquals(2, featureBlock.getOriginalSourcesSections().size()); |
106 |
assertTrue(LinkElement.testIfLinkElement(featureBlock.getOriginalSourcesSections().get(0).getLinksInElement().get(0), "World Checklist of Monocotyledons", "http://127.0.0.1/palmae/"));
|
|
107 |
assertTrue(LinkElement.testIfLinkElement(featureBlock.getOriginalSourcesSections().get(1).getLinksInElement().get(0), "T. Evans et al. 2002", "http://127.0.0.1/palmae/?q=cdm_dataportal/reference/706c5e5e-1dac-4fb2-b849-8e99ad7d63aa"));
|
|
106 |
assertTrue(LinkElement.testIfLinkElement(featureBlock.getOriginalSourcesSections().get(0).getLinksInElement().get(0), "World Checklist of Monocotyledons", this.getContext().getBaseUri().toString()));
|
|
107 |
assertTrue(LinkElement.testIfLinkElement(featureBlock.getOriginalSourcesSections().get(1).getLinksInElement().get(0), "T. Evans et al. 2002", this.getContext().getBaseUri().toString() + "?q=cdm_dataportal/reference/706c5e5e-1dac-4fb2-b849-8e99ad7d63aa"));
|
|
108 | 108 |
|
109 | 109 |
assertNotNull("Expecting an OpenLayers map", featureBlock.getElement().findElement(By.id("openlayers_map"))); |
110 | 110 |
assertEquals("Map accurate to TDWG level 3 distributions", featureBlock.getElement().findElement(By.className("distribution_map_caption")).getText()); |
... | ... | |
123 | 123 |
assertEquals(blockTextFull, featureBlock.getText()); |
124 | 124 |
featureBlock.testDescriptionElementLayout(0, indent, descriptionElementFontSize, expectedCssDisplay, expectedListStyleType, expectedListStylePosition, expectedListStyleImage); |
125 | 125 |
assertEquals(1, featureBlock.getOriginalSourcesSections().size()); |
126 |
assertTrue(LinkElement.testIfLinkElement(featureBlock.getOriginalSourcesSections().get(0).getLinksInElement().get(0), "T. Evans et al. 2002", "http://127.0.0.1/palmae/?q=cdm_dataportal/reference/706c5e5e-1dac-4fb2-b849-8e99ad7d63aa"));
|
|
126 |
assertTrue(LinkElement.testIfLinkElement(featureBlock.getOriginalSourcesSections().get(0).getLinksInElement().get(0), "T. Evans et al. 2002", getContext().getBaseUri().toString() + "?q=cdm_dataportal/reference/706c5e5e-1dac-4fb2-b849-8e99ad7d63aa"));
|
|
127 | 127 |
|
128 | 128 |
|
129 | 129 |
/* Conservation */ |
... | ... | |
139 | 139 |
assertEquals(blockTextFull, featureBlock.getText()); |
140 | 140 |
featureBlock.testDescriptionElementLayout(0, indent, descriptionElementFontSize, expectedCssDisplay, expectedListStyleType, expectedListStylePosition, expectedListStyleImage); |
141 | 141 |
assertEquals(1, featureBlock.getOriginalSourcesSections().size()); |
142 |
assertTrue(LinkElement.testIfLinkElement(featureBlock.getOriginalSourcesSections().get(0).getLinksInElement().get(0), "T. Evans et al. 2002", "http://127.0.0.1/palmae/?q=cdm_dataportal/reference/706c5e5e-1dac-4fb2-b849-8e99ad7d63aa"));
|
|
142 |
assertTrue(LinkElement.testIfLinkElement(featureBlock.getOriginalSourcesSections().get(0).getLinksInElement().get(0), "T. Evans et al. 2002", getContext().getBaseUri().toString() + "?q=cdm_dataportal/reference/706c5e5e-1dac-4fb2-b849-8e99ad7d63aa"));
|
|
143 | 143 |
|
144 | 144 |
/* Common Name */ |
145 | 145 |
featureClass = "common_name"; |
... | ... | |
154 | 154 |
assertEquals(blockTextFull, featureBlock.getText()); |
155 | 155 |
featureBlock.testDescriptionElementLayout(0, indent, descriptionElementFontSize, expectedCssDisplay, expectedListStyleType, expectedListStylePosition, expectedListStyleImage); |
156 | 156 |
assertEquals(1, featureBlock.getOriginalSourcesSections().size()); |
157 |
assertTrue(LinkElement.testIfLinkElement(featureBlock.getOriginalSourcesSections().get(0).getLinksInElement().get(0), "T. Evans et al. 2002", "http://127.0.0.1/palmae/?q=cdm_dataportal/reference/706c5e5e-1dac-4fb2-b849-8e99ad7d63aa"));
|
|
157 |
assertTrue(LinkElement.testIfLinkElement(featureBlock.getOriginalSourcesSections().get(0).getLinksInElement().get(0), "T. Evans et al. 2002", getContext().getBaseUri().toString() + "?q=cdm_dataportal/reference/706c5e5e-1dac-4fb2-b849-8e99ad7d63aa"));
|
|
158 | 158 |
|
159 | 159 |
/* Uses */ |
160 | 160 |
featureClass = "uses"; |
... | ... | |
169 | 169 |
assertEquals(blockTextFull, featureBlock.getText()); |
170 | 170 |
featureBlock.testDescriptionElementLayout(0, indent, descriptionElementFontSize, expectedCssDisplay, expectedListStyleType, expectedListStylePosition, expectedListStyleImage); |
171 | 171 |
assertEquals(1, featureBlock.getOriginalSourcesSections().size()); |
172 |
assertTrue(LinkElement.testIfLinkElement(featureBlock.getOriginalSourcesSections().get(0).getLinksInElement().get(0), "T. Evans et al. 2002", "http://127.0.0.1/palmae/?q=cdm_dataportal/reference/706c5e5e-1dac-4fb2-b849-8e99ad7d63aa"));
|
|
172 |
assertTrue(LinkElement.testIfLinkElement(featureBlock.getOriginalSourcesSections().get(0).getLinksInElement().get(0), "T. Evans et al. 2002", getContext().getBaseUri().toString() + "?q=cdm_dataportal/reference/706c5e5e-1dac-4fb2-b849-8e99ad7d63aa"));
|
|
173 | 173 |
|
174 | 174 |
/* Discussion */ |
175 | 175 |
featureClass = "discussion"; |
... | ... | |
186 | 186 |
assertTrue(featureBlock.getText().endsWith(blockTextEnd)); |
187 | 187 |
featureBlock.testDescriptionElementLayout(0, indent, descriptionElementFontSize, expectedCssDisplay, expectedListStyleType, expectedListStylePosition, expectedListStyleImage); |
188 | 188 |
assertEquals(1, featureBlock.getOriginalSourcesSections().size()); |
189 |
assertTrue(LinkElement.testIfLinkElement(featureBlock.getOriginalSourcesSections().get(0).getLinksInElement().get(0), "T. Evans et al. 2002", "http://127.0.0.1/palmae/?q=cdm_dataportal/reference/706c5e5e-1dac-4fb2-b849-8e99ad7d63aa"));
|
|
189 |
assertTrue(LinkElement.testIfLinkElement(featureBlock.getOriginalSourcesSections().get(0).getLinksInElement().get(0), "T. Evans et al. 2002", getContext().getBaseUri().toString() + "?q=cdm_dataportal/reference/706c5e5e-1dac-4fb2-b849-8e99ad7d63aa"));
|
|
190 | 190 |
|
191 | 191 |
/* Discussion */ |
192 | 192 |
featureClass = "materials_examined"; |
... | ... | |
203 | 203 |
assertTrue(featureBlock.getText().endsWith(blockTextEnd)); |
204 | 204 |
featureBlock.testDescriptionElementLayout(0, indent, descriptionElementFontSize, expectedCssDisplay, expectedListStyleType, expectedListStylePosition, expectedListStyleImage); |
205 | 205 |
assertEquals(1, featureBlock.getOriginalSourcesSections().size()); |
206 |
assertTrue(LinkElement.testIfLinkElement(featureBlock.getOriginalSourcesSections().get(0).getLinksInElement().get(0), "T. Evans et al. 2002", "http://127.0.0.1/palmae/?q=cdm_dataportal/reference/706c5e5e-1dac-4fb2-b849-8e99ad7d63aa"));
|
|
206 |
assertTrue(LinkElement.testIfLinkElement(featureBlock.getOriginalSourcesSections().get(0).getLinksInElement().get(0), "T. Evans et al. 2002", getContext().getBaseUri().toString() + "?q=cdm_dataportal/reference/706c5e5e-1dac-4fb2-b849-8e99ad7d63aa"));
|
|
207 | 207 |
|
208 | 208 |
} |
209 | 209 |
|
Also available in: Unified diff
ulrs valid on any server