Skip to content

Commit

Permalink
Fix tests, run i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Sep 15, 2023
1 parent 8e25395 commit 18dcdce
Show file tree
Hide file tree
Showing 16 changed files with 103 additions and 103 deletions.
24 changes: 12 additions & 12 deletions cypress/tests/core/basic/autosave.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('createContent Tests', () => {

cy.findByRole('alert')
.get('.toast-inner-content')
.contains('Autosave found')
.contains('Autosaved content found')
.get('button.ui.icon.button.save.toast-box')
.eq(0)
.click();
Expand All @@ -65,7 +65,7 @@ describe('createContent Tests', () => {

cy.findByRole('alert')
.get('.toast-inner-content')
.contains('Autosave found')
.contains('Autosaved content found')
.get('button.ui.icon.button.save.toast-box')
.eq(0)
.click();
Expand All @@ -80,7 +80,7 @@ describe('createContent Tests', () => {
);
cy.findByRole('alert')
.get('.toast-inner-content')
.contains('Autosave found')
.contains('Autosaved content found')
.get('button.ui.icon.button.save.toast-box')
.eq(1)
.click();
Expand All @@ -90,7 +90,7 @@ describe('createContent Tests', () => {

cy.wait(1000);

cy.contains('Autosave found').should('not.exist');
cy.contains('Autosaved content found').should('not.exist');
});

it('As editor I can autosave when adding a content item', function () {
Expand All @@ -108,7 +108,7 @@ describe('createContent Tests', () => {
cy.log('test if autosaved toast shows retrieved data and click OK to load');
cy.findByRole('alert')
.get('.toast-inner-content')
.contains('Autosave found')
.contains('Autosaved content found')
.get('button.ui.icon.button.save.toast-box')
.eq(0)
.click();
Expand All @@ -131,7 +131,7 @@ describe('createContent Tests', () => {

cy.findByRole('alert')
.get('.toast-inner-content')
.contains('Autosave found')
.contains('Autosaved content found')
.get('button.ui.icon.button.save.toast-box')
.eq(0)
.click();
Expand All @@ -156,7 +156,7 @@ describe('createContent Tests', () => {

cy.wait(1000);

cy.contains('Autosave found').should('not.exist');
cy.contains('Autosaved content found').should('not.exist');
});

it('As editor I can autosave comments', function () {
Expand All @@ -170,7 +170,7 @@ describe('createContent Tests', () => {

cy.findByRole('alert')
.get('.toast-inner-content')
.contains('Autosave found')
.contains('Autosaved content found')
.get('button.ui.icon.button.save.toast-box')
.eq(0)
.click();
Expand All @@ -186,14 +186,14 @@ describe('createContent Tests', () => {

cy.findByRole('alert')
.get('.toast-inner-content')
.contains('Autosave found')
.contains('Autosaved content found')
.get('button.ui.icon.button.save.toast-box')
.eq(1)
.click();

cy.wait(1000);
cy.reload();
cy.contains('Autosave found').should('not.exist');
cy.contains('Autosaved content found').should('not.exist');

cy.log('adding another comment and save it');

Expand All @@ -205,7 +205,7 @@ describe('createContent Tests', () => {

cy.findByRole('alert')
.get('.toast-inner-content')
.contains('Autosave found')
.contains('Autosaved content found')
.get('button.ui.icon.button.save.toast-box')
.eq(0)
.click();
Expand All @@ -220,6 +220,6 @@ describe('createContent Tests', () => {

cy.wait(1000);
cy.reload();
cy.contains('Autosave found').should('not.exist');
cy.contains('Autosaved content found').should('not.exist');
});
});
12 changes: 6 additions & 6 deletions locales/ca/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,8 @@ msgid "Assignments"
msgstr ""

#: helpers/Utils/withSaveAsDraft
# defaultMessage: Autosave found
msgid "Autosave found"
# defaultMessage: Autosaved content found
msgid "Autosaved content found"
msgstr ""

#: components/manage/Controlpanels/AddonsControlpanel
Expand Down Expand Up @@ -1103,8 +1103,8 @@ msgid "Do you really want to delete this item?"
msgstr "Realment voleu suprimir aquest element?"

#: helpers/Utils/withSaveAsDraft
# defaultMessage: Do you want to load it?
msgid "Do you want to load it?"
# defaultMessage: Do you want to load the autosaved content?
msgid "Do you want to load the autosaved content?"
msgstr ""

#: components/manage/Multilingual/TranslationObject
Expand Down Expand Up @@ -3627,8 +3627,8 @@ msgid "The site configuration is outdated and needs to be upgraded."
msgstr ""

#: helpers/Utils/withSaveAsDraft
# defaultMessage: The version found is less recent than the server, do you want to load it (you can undo if you change your mind)?
msgid "The version found is less recent than the server, do you want to load it (you can undo if you change your mind)?"
# defaultMessage: The version of the autosaved content I found in your browser is older than that stored on the server. Do you want to load the autosaved content? (You can undo the autosaved content and revert to the server version.)
msgid "The version of the autosaved content I found in your browser is older than that stored on the server. Do you want to load the autosaved content? (You can undo the autosaved content and revert to the server version.)"
msgstr ""

#: components/manage/Toolbar/More
Expand Down
12 changes: 6 additions & 6 deletions locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ msgid "Assignments"
msgstr "Zuweisungen"

#: helpers/Utils/withSaveAsDraft
# defaultMessage: Autosave found
msgid "Autosave found"
# defaultMessage: Autosaved content found
msgid "Autosaved content found"
msgstr ""

#: components/manage/Controlpanels/AddonsControlpanel
Expand Down Expand Up @@ -1100,8 +1100,8 @@ msgid "Do you really want to delete this item?"
msgstr "Möchten Sie den Artikel wirklich löschen?"

#: helpers/Utils/withSaveAsDraft
# defaultMessage: Do you want to load it?
msgid "Do you want to load it?"
# defaultMessage: Do you want to load the autosaved content?
msgid "Do you want to load the autosaved content?"
msgstr ""

#: components/manage/Multilingual/TranslationObject
Expand Down Expand Up @@ -3624,8 +3624,8 @@ msgid "The site configuration is outdated and needs to be upgraded."
msgstr "Die Seitenkonfiguration ist veraltet und muss aktualisiert werden."

#: helpers/Utils/withSaveAsDraft
# defaultMessage: The version found is less recent than the server, do you want to load it (you can undo if you change your mind)?
msgid "The version found is less recent than the server, do you want to load it (you can undo if you change your mind)?"
# defaultMessage: The version of the autosaved content I found in your browser is older than that stored on the server. Do you want to load the autosaved content? (You can undo the autosaved content and revert to the server version.)
msgid "The version of the autosaved content I found in your browser is older than that stored on the server. Do you want to load the autosaved content? (You can undo the autosaved content and revert to the server version.)"
msgstr ""

#: components/manage/Toolbar/More
Expand Down
12 changes: 6 additions & 6 deletions locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ msgid "Assignments"
msgstr ""

#: helpers/Utils/withSaveAsDraft
# defaultMessage: Autosave found
msgid "Autosave found"
# defaultMessage: Autosaved content found
msgid "Autosaved content found"
msgstr ""

#: components/manage/Controlpanels/AddonsControlpanel
Expand Down Expand Up @@ -1094,8 +1094,8 @@ msgid "Do you really want to delete this item?"
msgstr ""

#: helpers/Utils/withSaveAsDraft
# defaultMessage: Do you want to load it?
msgid "Do you want to load it?"
# defaultMessage: Do you want to load the autosaved content?
msgid "Do you want to load the autosaved content?"
msgstr ""

#: components/manage/Multilingual/TranslationObject
Expand Down Expand Up @@ -3618,8 +3618,8 @@ msgid "The site configuration is outdated and needs to be upgraded."
msgstr ""

#: helpers/Utils/withSaveAsDraft
# defaultMessage: The version found is less recent than the server, do you want to load it (you can undo if you change your mind)?
msgid "The version found is less recent than the server, do you want to load it (you can undo if you change your mind)?"
# defaultMessage: The version of the autosaved content I found in your browser is older than that stored on the server. Do you want to load the autosaved content? (You can undo the autosaved content and revert to the server version.)
msgid "The version of the autosaved content I found in your browser is older than that stored on the server. Do you want to load the autosaved content? (You can undo the autosaved content and revert to the server version.)"
msgstr ""

#: components/manage/Toolbar/More
Expand Down
12 changes: 6 additions & 6 deletions locales/es/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,8 @@ msgid "Assignments"
msgstr "Tareas"

#: helpers/Utils/withSaveAsDraft
# defaultMessage: Autosave found
msgid "Autosave found"
# defaultMessage: Autosaved content found
msgid "Autosaved content found"
msgstr ""

#: components/manage/Controlpanels/AddonsControlpanel
Expand Down Expand Up @@ -1105,8 +1105,8 @@ msgid "Do you really want to delete this item?"
msgstr "¿Usted realmente quiere eliminar este elemento?"

#: helpers/Utils/withSaveAsDraft
# defaultMessage: Do you want to load it?
msgid "Do you want to load it?"
# defaultMessage: Do you want to load the autosaved content?
msgid "Do you want to load the autosaved content?"
msgstr ""

#: components/manage/Multilingual/TranslationObject
Expand Down Expand Up @@ -3629,8 +3629,8 @@ msgid "The site configuration is outdated and needs to be upgraded."
msgstr "La configuración del sitio está anticuada y debe ser actualizada."

#: helpers/Utils/withSaveAsDraft
# defaultMessage: The version found is less recent than the server, do you want to load it (you can undo if you change your mind)?
msgid "The version found is less recent than the server, do you want to load it (you can undo if you change your mind)?"
# defaultMessage: The version of the autosaved content I found in your browser is older than that stored on the server. Do you want to load the autosaved content? (You can undo the autosaved content and revert to the server version.)
msgid "The version of the autosaved content I found in your browser is older than that stored on the server. Do you want to load the autosaved content? (You can undo the autosaved content and revert to the server version.)"
msgstr ""

#: components/manage/Toolbar/More
Expand Down
12 changes: 6 additions & 6 deletions locales/eu/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,8 @@ msgid "Assignments"
msgstr "Esleipenak"

#: helpers/Utils/withSaveAsDraft
# defaultMessage: Autosave found
msgid "Autosave found"
# defaultMessage: Autosaved content found
msgid "Autosaved content found"
msgstr ""

#: components/manage/Controlpanels/AddonsControlpanel
Expand Down Expand Up @@ -1101,8 +1101,8 @@ msgid "Do you really want to delete this item?"
msgstr "Elementu hau ezabatu egin nahi duzu?"

#: helpers/Utils/withSaveAsDraft
# defaultMessage: Do you want to load it?
msgid "Do you want to load it?"
# defaultMessage: Do you want to load the autosaved content?
msgid "Do you want to load the autosaved content?"
msgstr ""

#: components/manage/Multilingual/TranslationObject
Expand Down Expand Up @@ -3625,8 +3625,8 @@ msgid "The site configuration is outdated and needs to be upgraded."
msgstr "Atariaren konfigurazioa zaharkituta dago eta eguneratu egin behar da."

#: helpers/Utils/withSaveAsDraft
# defaultMessage: The version found is less recent than the server, do you want to load it (you can undo if you change your mind)?
msgid "The version found is less recent than the server, do you want to load it (you can undo if you change your mind)?"
# defaultMessage: The version of the autosaved content I found in your browser is older than that stored on the server. Do you want to load the autosaved content? (You can undo the autosaved content and revert to the server version.)
msgid "The version of the autosaved content I found in your browser is older than that stored on the server. Do you want to load the autosaved content? (You can undo the autosaved content and revert to the server version.)"
msgstr ""

#: components/manage/Toolbar/More
Expand Down
12 changes: 6 additions & 6 deletions locales/fi/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,8 @@ msgid "Assignments"
msgstr "Tehtävät"

#: helpers/Utils/withSaveAsDraft
# defaultMessage: Autosave found
msgid "Autosave found"
# defaultMessage: Autosaved content found
msgid "Autosaved content found"
msgstr ""

#: components/manage/Controlpanels/AddonsControlpanel
Expand Down Expand Up @@ -1105,8 +1105,8 @@ msgid "Do you really want to delete this item?"
msgstr "Haluatko varmasti poistaa tämän sisällön?"

#: helpers/Utils/withSaveAsDraft
# defaultMessage: Do you want to load it?
msgid "Do you want to load it?"
# defaultMessage: Do you want to load the autosaved content?
msgid "Do you want to load the autosaved content?"
msgstr ""

#: components/manage/Multilingual/TranslationObject
Expand Down Expand Up @@ -3629,8 +3629,8 @@ msgid "The site configuration is outdated and needs to be upgraded."
msgstr "Sivuston konfiguraatio on vanhentunut ja se pitää päivittää."

#: helpers/Utils/withSaveAsDraft
# defaultMessage: The version found is less recent than the server, do you want to load it (you can undo if you change your mind)?
msgid "The version found is less recent than the server, do you want to load it (you can undo if you change your mind)?"
# defaultMessage: The version of the autosaved content I found in your browser is older than that stored on the server. Do you want to load the autosaved content? (You can undo the autosaved content and revert to the server version.)
msgid "The version of the autosaved content I found in your browser is older than that stored on the server. Do you want to load the autosaved content? (You can undo the autosaved content and revert to the server version.)"
msgstr ""

#: components/manage/Toolbar/More
Expand Down
12 changes: 6 additions & 6 deletions locales/fr/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ msgid "Assignments"
msgstr "Affectations"

#: helpers/Utils/withSaveAsDraft
# defaultMessage: Autosave found
msgid "Autosave found"
# defaultMessage: Autosaved content found
msgid "Autosaved content found"
msgstr ""

#: components/manage/Controlpanels/AddonsControlpanel
Expand Down Expand Up @@ -1111,8 +1111,8 @@ msgid "Do you really want to delete this item?"
msgstr "Voulez-vous vraiment supprimer cet élément ?"

#: helpers/Utils/withSaveAsDraft
# defaultMessage: Do you want to load it?
msgid "Do you want to load it?"
# defaultMessage: Do you want to load the autosaved content?
msgid "Do you want to load the autosaved content?"
msgstr ""

#: components/manage/Multilingual/TranslationObject
Expand Down Expand Up @@ -3635,8 +3635,8 @@ msgid "The site configuration is outdated and needs to be upgraded."
msgstr "La configuration du site nécessite une mise à niveau."

#: helpers/Utils/withSaveAsDraft
# defaultMessage: The version found is less recent than the server, do you want to load it (you can undo if you change your mind)?
msgid "The version found is less recent than the server, do you want to load it (you can undo if you change your mind)?"
# defaultMessage: The version of the autosaved content I found in your browser is older than that stored on the server. Do you want to load the autosaved content? (You can undo the autosaved content and revert to the server version.)
msgid "The version of the autosaved content I found in your browser is older than that stored on the server. Do you want to load the autosaved content? (You can undo the autosaved content and revert to the server version.)"
msgstr ""

#: components/manage/Toolbar/More
Expand Down
12 changes: 6 additions & 6 deletions locales/it/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ msgid "Assignments"
msgstr "Assegnazione"

#: helpers/Utils/withSaveAsDraft
# defaultMessage: Autosave found
msgid "Autosave found"
# defaultMessage: Autosaved content found
msgid "Autosaved content found"
msgstr ""

#: components/manage/Controlpanels/AddonsControlpanel
Expand Down Expand Up @@ -1094,8 +1094,8 @@ msgid "Do you really want to delete this item?"
msgstr "Vuoi veramente eliminare questo elemento?"

#: helpers/Utils/withSaveAsDraft
# defaultMessage: Do you want to load it?
msgid "Do you want to load it?"
# defaultMessage: Do you want to load the autosaved content?
msgid "Do you want to load the autosaved content?"
msgstr ""

#: components/manage/Multilingual/TranslationObject
Expand Down Expand Up @@ -3618,8 +3618,8 @@ msgid "The site configuration is outdated and needs to be upgraded."
msgstr "La configurazione del sito è obsoleta e deve essere aggiornata."

#: helpers/Utils/withSaveAsDraft
# defaultMessage: The version found is less recent than the server, do you want to load it (you can undo if you change your mind)?
msgid "The version found is less recent than the server, do you want to load it (you can undo if you change your mind)?"
# defaultMessage: The version of the autosaved content I found in your browser is older than that stored on the server. Do you want to load the autosaved content? (You can undo the autosaved content and revert to the server version.)
msgid "The version of the autosaved content I found in your browser is older than that stored on the server. Do you want to load the autosaved content? (You can undo the autosaved content and revert to the server version.)"
msgstr ""

#: components/manage/Toolbar/More
Expand Down
Loading

0 comments on commit 18dcdce

Please sign in to comment.